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 / tarun
instead of arrayList use HashTable
and create one bindingsourse
BindingSource bs=new BindingSource();
HashTable hs=new HashTable();
hs.Add("Value","Key");
bs.dataSource=hs;
dropdowndisplya.datasource=bs;
dropdowndisplay.databind();
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of response redirect in asp.net?
Explain about the .NET framework?
What are session state modes?
What is custom attribute? How to create?
What are the various session state management options provided by asp.net?
What is authorization in asp.net?
How can we apply themes to an asp.net application?
How you will improve web application performance?
Is session server side or client side?
Explain the asp.net page life cycle.
Explain about asp.net 2.0 themes?
What is the difference between GridView and Repeater controls in ASP.NET?
Any disadvantages in Dataset and in reflection ?
Explain the concept of MVC Scaffolding?
Is it possible to migrate visual interdev design-time controls to asp.net?