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
Define view state.
Explain asp.net mvc request life cycle? : asp.net mvc
What happens if an ASP.NET server control with event-handling routines is missing from its definition?
Explain form level validation and field level validation?
Why asp.net is better than php?
What is DataGrid wheater its a Server Control or something else ?
What is considered a service provider?
Where is asp.net session stored?
Define viewstate in .net?
Explain the difference between or and orelse?
Why does my asp.net file have multiple tag with runat=server?
How can you send an email message from an asp.net web page?
What is data reader in asp.net?
Explain Session state management options in ASP.NET.
Explain about the Class view window?