HI Friends,
On button_click(postback), my dropdownlist of gridview is getting blank, so i m getting error of "Object Reference...." on the line "ddl.selecteditem.value"
Also, dropdownlists selectedindexchanged event is fired on button click(Page Postback), which is making dropdownlist to go blank. AutoPostBack of dropdownlist is set as False, still the event is fired
Pls help

SUNIL GUTTARank #1,831 · 810 reputationPosted Apr 30, 2013, 10:21 AM EDT
AutoPostback of dropdownlist is nothing to do with button postback :)
well once try Page.Isvalid property ..!
It can be better u can explain ur senario u using them ?
Regards
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted May 11, 2013, 1:15 AM EDT
Can you please put your code here.
selva kumarRank #2,987 · 483 reputationPosted May 11, 2013, 1:34 AM EDT
here is sample:
public void bind()
{
//Ur Code //
}
private void button1_Click(...)
{
//ur code//
bind();
}
selected index changed(..)
{
//ur code//
bind();
}
also bind page load like this;
if(!ISPOSTBACK)
{
bind();
}
try this...this will be helpful......