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 are the advantages and limitations of query string?
What is synchronous and Asynchronous post back ?
What are client activated objects?
What is server side session management?
How can you register a custom server control to a web page?
Can any body provide me the sample web application in asp.net
Which is the best institute to learn Microsoft Technologies and the faculty if you Know?
What is applicatio domain?
Explain exception handling in .net.
Which two new properties are added in asp.net 4.0 page class?
What is a runtime version?
witch is the best insistute in sharpoint course.what abt future of share point course.
What are assemblies and namespaces and explain the difference between them ?
How you can stop the validation of ASP.NET controls from client side?
How do we implement bundling in MVC?