Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



When a dropdownlist has been added by some records and it has been binded why it is not executing i..

Answer / rajesh

make sure that dropdownlist is there in the webform

Is This Answer Correct ?    2 Yes 0 No

When a dropdownlist has been added by some records and it has been binded why it is not executing i..

Answer / sujit biswas

if (!IsPostBack)
{
ArrayList books=new ArrayList();
books.Add("gone with the wind");
books.Add("rahulsriramprakash");
books.Add("vishal");
dropdowndisplay.DataSource = books;
dropdowndisplay.DataBind();
}

Is This Answer Correct ?    3 Yes 1 No

When a dropdownlist has been added by some records and it has been binded why it is not executing i..

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

When a dropdownlist has been added by some records and it has been binded why it is not executing i..

Answer / rahul

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

Is This Answer Correct ?    0 Yes 0 No

When a dropdownlist has been added by some records and it has been binded why it is not executing i..

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

More ASP.NET Interview Questions

Dategrid filtering and sorting How can we sort all the fields at once?

3 Answers   Satyam,


Authentication and Authorization

2 Answers   Syntel,


why we should use more than one web.config files in our application? I have two web.config files in my application. One in the root directory and another one inside a sub folder. When the application runs which web.config file will run? why?

1 Answers  


What is the use of the tag in the web.config file?

0 Answers   MindCracker,


Write a code for sending an email from asp.net application.

0 Answers  


Is object a value type or referenced type?

2 Answers  


How many types of cookies are there in asp.net?

0 Answers  


Explain the asp.net mvc request life cycle? : asp.net mvc

0 Answers  


1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

0 Answers   TCS,


how can u create the forms authentication?and what is the difference between forms authentication and windows authentication?

2 Answers   IBM,


How can we prevent an aspx page get refreshed when any information fetch from the database ?

2 Answers   Minecode,


Which control would you use if you needed to make sure the values in two different controls matched?

2 Answers  


Categories