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
I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?
What is data reader in asp.net?
What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
witch is the best insistute in sharpoint course.what abt future of share point course.
What is query string with example?
How does asp page work?
How may clustered index we can create in table?
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?
Are cookies stored on server or client?
How do I use a proxy server when invoking a web service?
Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?
Can you change a master page dynamically at runtime? How?
Which browsers support the xmlhttprequest object?
Is it possible to migrate visual interdev design-time controls to asp.net?
How to disable cut, copy and paste in TextBox using jQuery in asp.net?