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
What is cross page posting? How is it done?
How can I open ashx file in mobile?
What do you mean by caching in asp.net?
What’s the catch?
What is a master page and what does it do?
Explain different types of validators in asp.net?
Differentiate globalization and localization.
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
Are cookies stored on server or client?
What is query string with example?
What does mvc represent in asp.net? : asp.net mvc
Is session stored in browser?
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
Why session management is required?
Do you know caching feature?