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

How is session id generated?

457


State differences between MVC and WebAPI

611


What is loop in asp.net?

587


What are server objects?

521


How does asp.net page work?

531






What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

557


What is the use of session state and application state and difference between them?

482


What is tracing? Where is it used?

557


What is the file through which you can customize your asp.net application?

550


Explain the difference between asp and asp.net?

514


What is the differences between a primary key and a unique key in sql server?

540


What are the security types in asp.net?

583


What is a page life cycle?

571


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

560


Why Unload event of MasterPage Calls first in ASP.net ?

588