943,928 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 783
  • ASP.NET RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Jul 4th, 2009
0

Re: Dropdownlist

You can handle this error

ASP.NET Syntax (Toggle Plain Text)
  1. drpcompname.SelectedValue = drd.GetValue(0).ToString();

Replace the above statement with the following code

ASP.NET Syntax (Toggle Plain Text)
  1. ListItem item = drpcompname.Items.FindByValue(drd.GetValue(0).ToString());
  2. if (item != null)
  3. item.Selected = true;
Reputation Points: 165
Solved Threads: 113
Posting Pro
Ramesh S is offline Offline
580 posts
since Jun 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: a little help with Paypal...
Next Thread in ASP.NET Forum Timeline: gridview





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC