c# - Calling a function in Aspx.cs with change in dropdownbox -


I have a page where the change in value from drop down box will pass this text in the drop-down box. To get value from the database.

  & amp; Asp: dropdown list id = "dropid" runat = "server" OnChange = "getvaluesfromaspx"> & Lt; / Asp: DropDownList & gt;   

I want the function called "Getvaluesfromaspx" to call from aspx file in aspx.cs. help please.

Use the "on-selected index change" event instead of the "Onchange" event.

Also set AutoPostBack property value to true.

  & lt; ASP: Dropdown List ID = "DropDayed" Autopostback = "True" Run = "Server" On-Select Index-Changed = "Getleus Framespax" & gt; & Lt; / Asp: DropDownList & gt;   

and in the rear code

  protected zero gatewaylosphromaspex (object sender, eventArgse E) {//}    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -