Help needed(getting the html drop down list value in c# servercode)

R

Raghu Raman

hi,

in my aspx page ,i am creating a html select(dropdown list) in runtime
and assigning the datasource to it.The control is displayed nice.the
control is created in the Infragistics Grid cell*


But i need to get the value selected from this html drop down list also
thru my server side event.

Herewith i 've given the code snippet for your glance.

''----------------------------------------------------------------------
-----
Application[Appsid] = "";
while(dr1.Read())
{

Application[Appsid] = Application[Appsid] +
"<option Value=''" + dr1[0] + "''>" +
dr1[1] + "</option>";
//Coltype="<asp:dropdownlist ID='lstSelItem' visible='true'
height=100px DataTextField=''" + dr1[0] + " DataValueField=''" + dr1[1]
+ " pkgID width =150px runat='server'></asp:dropdownlist>";
}
Coltype="<Select name='" + Appsid + "' ID='" + Appsid + "'
OnServerChange='drbchanged_ServerChanged' runat='server' style='WIDTH:
100px; HEIGHT: 32px top=14'> " + Application[Appsid] + " </select>";
//Coltype="<Select ID='" + Appsid + "' runat='server' onblur='var
h=document.getElementById('Hdc'); h=document.forms[0]." + Appsid +
".options[document.forms[0]." + Appsid +
".selectedIndex].text;style='WIDTH: 100px; HEIGHT: 32px top=14'> " +
Application[Appsid] + " </select>";


ug.Rows.Cells[Col].Text=Coltype;
''----------------------------------------------------------------------
------




Regards
Raghu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top