It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
In ASP.NET, I have a dropdown and a button. If I select a value from the dropdown and click the button, I want it to redirect to another page and pass the selected value from the dropdown to this new page.
If anyone has an idea then please help me.
Try this on button click event
string strddlValue=Convert.ToString(DropdownList1.SelectedValue);
Response.Redirect("YourPage.aspx?Value=" + strddlValue);
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
What does the following line of code do
SqlDataSource DataSource =(SqlDataSource)CreateUserWizardStep1.
ContentTemplateContainer.FindControl("InsertExtraInfo");
MSDN can tell you:
http://msdn.microsoft.com/en-us/library/system.web.ui.control.findcontrol.aspx
It will find the control that is a child of ContentTemplateContainer, with the ID of InsertExtraInfo, and then cast it to SqlDataSource.
It simply says: "It uses FindControl to get the SqlDataSource then bind it to CreateUserWizard".
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I was wondering how to do this. I am trying to learn how to make a Metro-style app for Windows Store.
Attach an Click event to the source button
In event handler mark `button2.Visibility = Visibility.Visible;'
As simple as that.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
When the user right clicks a DataGridView cell in my windows application it clears and fills the CheckedListBox with column header text. Then it shows a popup. Now how can I sort the items using what is checked? I want to sort on the same right click.
To sort the listbox, you need to write your own small code, which "tells" the program how to sort your data.
Please refer this tutorial
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I am fetching data from database and i am showing it in multiple select box but i want to show location 1,3,5 items should be selected by default. How?
Bind the Listbox to the datasource. A google search will probably be helpful.
If you mean "how do I select specific items", then this so question will help.
In WPF, you can use the ListBox control.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Hai,
Am using DevExpress Tree List in C#.NET application .I want to add checkbox control in DevExpress XtraTree List.Please help
Thank you.
You should set the column's ColumnEdit property to an instance of the RepositoryItemCheckEdit class. For more details, please refer to
http://documentation.devexpress.com/#WindowsForms/CustomDocument5632
http://documentation.devexpress.com/#WindowsForms/CustomDocument5633