c# - Step by Step dropdown selection -


If there is any idea on autopostback in ASP.NET using C #, please help me

I have 4

If I select the first dropdown list then it enables 2 dropdown list

and after the selection, the third dropdown list enables the list in the second dropdown list.

And after selecting

Please tell me to do this ...

Please help me < P>

Try it: -

ASPX

  & asp: dropdown list id = "dropdown list 1" runat = "server" autopstack = "true" on-select Gone index changed = "dropdown list 1 sealed inducted switch" & gt; & Lt; Asp: ListItem enabled = "true" text = "select value" value = "- 1" & gt; & Lt; / Asp: ListItem & gt; & Lt; Asp: ListItem text = "Value1" value = "1" & gt; & Lt; / Asp: ListItem & gt; & Lt; Asp: ListItem text = "Value2" value = "2" & gt; & Lt; / Asp: ListItem & gt; & Lt; / ASP: DropDownList & gt; & Lt; ASP: Dropdown list id = "dropdown list 2" runat = "server" autostebback = "true" changed indices changed = "dropdown list 2 sealed connected face switch" & gt; & Lt; Asp: ListItem Enabled = "true" text = "select value" value = "- 1" & gt; & Lt; / Asp: ListItem & gt; & Lt; Asp: ListItem text = "Value1" value = "1" & gt; & Lt; / Asp: ListItem & gt; & Lt; asp: ListItem text = "Value2" value = "2" & gt; & Lt; / Asp: ListItem & gt; & Lt; / ASP: DropDownList & gt; & Lt; ASP: Dropdown List ID = "Dropdown List 3" Runat = "Server" AutoPostback = "True" On-Select Index Change = "Dropdown List 3 Sequified Index Change" & gt; & Lt; Asp: ListItem enabled = "true" text = "select value" value = "- 1" & gt; & Lt; / Asp: ListItem & gt; & Lt; asp: ListItem text = "Value1" value = "1" & gt; & Lt; / Asp: ListItem & gt; & Lt; asp: ListItem text = "Value2" value = "2" & gt; & Lt; / Asp: ListItem & gt; & Lt; / ASP: DropDownList & gt; & Lt; ASP: Dropdown List ID = "Dropdown List 4" Runat = "Server" Autopostback = "True" On-Select Index Change = "Dropdown List 4 Select Indies Change" & gt; & Lt; Asp: ListItem enabled = "true" text = "select value" value = "- 1" & gt; & Lt; / Asp: ListItem & gt; & Lt; asp: ListItem text = "Value1" value = "1" & gt; & Lt; / Asp: ListItem & gt; & Lt; asp: ListItem text = "Value2" value = "2" & gt; & Lt; / Asp: ListItem & gt; & Lt; / ASP: DropDownList & gt;   

ASPX CS

  Protected Zero Page_load (Object Sender, EventArgse E) {if (! IPhonebackback) {DropDownList1.Enabled = true; DropDownList2.Enabled = false; DropDownList3.Enabled = false; DropDownList4.Enabled = false; }} Protected Zero Blank Dropdown List 1 Selected Andx Based (Object Sender, EventEurge E) {DropDownList2.Enabled = true; } Secure Zero Blank Dropdown List 2 Selected Index (Object Sender, EventAGRS E) {DropDownList3.Enabled = true; } Secure Zero Dropdown List 3 Sealed Intex (Object Sender, EventEurge E) {DropDownList4.Enabled = true; }    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -