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 / rahul

Even i tried with that even it's saying the same error.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between asp.net and mvc?

586


Define web.config in .net?

643


Explain server control extensibility with reference to asp.net 2.0 ?

550


What is the difference between abstract class vs interface? Can give me the real time examples?

492


What is razor? : asp.net mvc

562






What is the use of ASP.NET routing?

562


How many types of validation are there?

529


How to disable validator control by client side JavaScript?

575


Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

517


How to handle errors in Web API?

628


How does session work?

513


What is a master page and what does it do?

539


What are validator? Name the validation controls in asp.net?

509


What is meant by web application?

550


What is data binding in asp net?

594