When a dropdownlist has been added by some records and it
has been binded why it is not executing i'm facing this
error pls help me ?
if (is!pageposback)
{
arraylist books = new arraylist;
books.add ("gone with the wind");
books.add ("rahulsriramprakash");
books.add ("vishal");
dropdowndisplay.datasource=books;
dropdowndisplay.databind();
}
The error is :
1) The dropdowndisplay does not exist.
Answer Posted / sujit biswas
if (!IsPostBack)
{
ArrayList books=new ArrayList();
books.Add("gone with the wind");
books.Add("rahulsriramprakash");
books.Add("vishal");
dropdowndisplay.DataSource = books;
dropdowndisplay.DataBind();
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
How ViewstateMac works?
What is a global postback url?
Define data caching?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
What is a web based system?
Which dll handles the request of .aspx page?
Explain the different types of assemblies?
How you can access the values from the Repeater control in ASP.NET?
Which validator control you use if you need to make sure the values in two different controls matched?
Is it possible to apply themes to an asp.net application? If yes, then how?
Explain the difference between response.redirect vs server.transfer
How do you handle server controls?
Explain form level validation and field level validation?
What does uri mean?