Ask a Question related to ASP.NET General, Design and Development.
-
Mira Vizjak #1
Binded DropDown list
Hi
I'm using a datagrid with a dropdown list in it. The dropdown list is filled
with values from SQL database, it's autopostback property is set to true and
when I select another item in it, the SelectedIndexChanged event fires
properly, but I can't the index or value of the selected item. SelectedValue
and SelectedItem is Nothing, Request.Params("DropDown1") is empty as well.
Thanks for your help!
Jure
Mira Vizjak Guest
-
Dropdown list
I would like to display 15 items (lines) in the dropdown list, but by default the list displays only 11 lines. How can I have all the 15 items... -
DataGrid with Dropdown list
Any Help is appreciated! I have a datagrid with Drop down list and a remove hyperlink as two columns. When I remove the row of the datagrid by... -
Refresh dropdown list
On a cfform I have a cfselect dropdown . The situtation is that when an option isn't listed I have a "Add button" next to the drop down that... -
Dropdown Property List??
I'm writing an aspx server control and I need to have a property that displays a dropdown list of things I have in an arraylist. I'm trying to do... -
Tool Tip for DropDown list
Hi, I have a dropwnlist of fixed width. The item names in the dropdown list are quite big. The Tooltip property for a dropdownlist control... -
Anatoly #2
Re: Binded DropDown list
Please post some code snippet.
Probably you fill dropdown every time, use IsPostBack property to fill it
only first time you enter the page.
Also check if EnableViewState of dropdown and page is set to true.
"Mira Vizjak" <mira.vizjak1@guest.arnes.si> wrote in message
news:bf1qbl$jf9$1@planja.arnes.si...filled> Hi
> I'm using a datagrid with a dropdown list in it. The dropdown list isand> with values from SQL database, it's autopostback property is set to trueSelectedValue> when I select another item in it, the SelectedIndexChanged event fires
> properly, but I can't the index or value of the selected item.> and SelectedItem is Nothing, Request.Params("DropDown1") is empty as well.
> Thanks for your help!
>
> Jure
>
>
Anatoly Guest
-
Anatoly #3
Re: Binded DropDown list
Sorry, can not see any connection between refill dropdown and empty Datagrid
???
Please explain.
"Mira Vizjak" <mira.vizjak1@guest.arnes.si> wrote in message
news:bf2t75$hda$1@planja.arnes.si...> Yes, I do fill drop down every time on PageLoad, otherwise the datagrid is
> empty on postback.
>
>
Anatoly Guest
-
Mira Vizjak #4
Re: Binded DropDown list
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Security.IsInRoles("Admins") = False Then
Response.Redirect("default.aspx")
End If
If Page.IsPostBack=False then
BindGrid()
End If
End Sub
In this case when I select an item from ddl control the datagrid on the page
posted back is empty.
If Security.IsInRoles("Admins") = False Then
Response.Redirect("default.aspx")
End If
BindGrid()
End Sub
In this case when I select an item from ddl control the datagrid on the page
posted back is full.
Mira Vizjak Guest
-
Anatoly #5
Re: Binded DropDown list
I can't see from code you post where do you fill the dropdown.
Fill it once when Not IsPostBack.
"Mira Vizjak" <mira.vizjak1@guest.arnes.si> wrote in message
news:bf33em$me0$1@planja.arnes.si...page> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
> If Security.IsInRoles("Admins") = False Then
> Response.Redirect("default.aspx")
> End If
> If Page.IsPostBack=False then
> BindGrid()
> End If
> End Sub
> In this case when I select an item from ddl control the datagrid on thepage> posted back is empty.
>
> If Security.IsInRoles("Admins") = False Then
> Response.Redirect("default.aspx")
> End If
> BindGrid()
> End Sub
> In this case when I select an item from ddl control the datagrid on the> posted back is full.
>
>
Anatoly Guest



Reply With Quote

