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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -