On thing you could try is to have a function that runs your 'page load' code
and have it called from the 'SelectedIndexChanged' event on the dropdown.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
' Do nothing.
End Sub
Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
DropDownList1.SelectedIndexChanged
Response.Write("DD 1 Called!")
Call MyPageLoad(sender, e)
End Sub
Private Sub DropDownList2_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
DropDownList2.SelectedIndexChanged
Response.Write("DD 2 Called!")
Call MyPageLoad(sender, e)
End Sub
Private Sub MyPageLoad(ByVal sender As System.Object, ByVal e As
System.EventArgs)
' Handle page loading stuff
End Sub
- Paul Duncan
"Noor" <no**********@hotmail.com> wrote in message
news:bc**************************@posting.google.c om...
I have two dropdownList controls with AutoPostBack property set to
"True". Everything works fine but I need to find out at the Page_Load
Postback event which dropdownlist control posted the form? Is this
possible with ASP.Net? I searched on the web for this without any
luck.
Any help will be appreciated..
Thanks!