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

make sure that dropdownlist is there in the webform

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the best practices to follow to secure connection strings in an ASP.NET web application?

552


What is the significance of finalize method in .net?

550


What are httphandlers and httpmodules and difference between them?

517


What is the main differences between asp and asp.net?

519


List the types of authentication supported by asp.net?

523






If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

598


How to comment out asp.net tags?

627


What is Pre-Render event in ASP.NET?

588


Define transparent caching with aop?

530


How to implement globalization and localization in the use interface in .net.

528


Define reflection in .net?

556


What are the parts of an http response?

492


How can we pass info between 2 asp.net pages?

558


What is autopostback in asp net?

583


What is session start?

518