TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mathieusgirl2002
NA
5
0
Help on setting index of dropdownlist.
Sep 21 2004 4:36 PM
I am missing something in this private void DataGridUserManagementID_ItemDataBound(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) The index is not set approprately in my dropdownlist. Can someone help me with the coding. string strStore ListItemType oType = ((ListItemType)e.Item.ItemType); if ((oType == ListItemType.EditItem)) { Response.Write("The ItemDataBound Command has been fired"); DropDownList listStore = ((DropDownList) e.Item.FindControl("ddlStores")); strStore = ((DropDownList)(e.Item.FindControl("ddlStores"))).SelectedItem.Text; Response.Write (strStore); // listStore.SelectedIndex = Convert.ToInt32(strStore); listStore.Items.IndexOf(listStore.Items.FindByText(strStore)); Response.Write(listStore.Items.IndexOf(listStore.Items.FindByText(strStore))); } You can feel free to email me at
[email protected]
if you need more information. Thank you Sincerely, Matt and MacsGirl
Reply
Answers (
1
)
Easy problem...help anyone?
help regarding error to ODBC connection!!