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 / vyas pyk

though u have the control in the web form some times is
shows like that onle,
the solutions is u better delete the control and add it
again u will get it

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is asp.net so popular?

588


Explain the use of resource manager class in .net.

598


Define application state variable and session state variable?

655


Explain the difference between asp.net mvc and asp.net webforms

681


Who creates jsessionid?

678






What is paging in context of Memory?

752


what is a .xap file? Explain with an example.

675


Can we have a web application running without web.config file?

624


How can you debug your.net application?

640


What is %20 in a url?

614


How can we prevent browser from caching an aspx page?

608


Web API uses which library for JSON serialization?

653


Is post back in asp.net?

602


How dataadapter.fill works?

653


What is meant by ispostback in asp net?

629