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
How ASP.NET page works?
Explain how dot net compiled code will become platform independent?
Explain the use of fragment caching.
What is the difference between Session and response.Redirect?
Explain difference between dataset and datareader?
How can we call webservices in Banking Applications? and where we are using it?
Does google crawl redirects?
Why SessionID changes in every request in asp.net?
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
What is AutoPostback?
Define the types of configuration files.
Describe the diffeerence between inline and code behind?
What are the advantages and disadvantages of session?
What do you mean by role-based security?
What is global.asax file used for?