Ask a Question related to ASP.NET Building Controls, Design and Development.
-
jonefer #1
Working with a 2 column Dropdown
I know how to fill a dropdown list and use it's selected value as a parameter.
How can I setup 2 columns, hide one column but use the hidden column (a key)
as the parameter
For example:
Prov, ProvID (hidden column)
=====
..SelectedValue.column()....?
jonefer Guest
-
working with dropdown lists
I appologize for what is probably a very novice question. I am creating dropdown lists for an online store. The purpose of the list is to choose a... -
How can i trap the SelectedIndexChanged event on a dropdown within a Datagrids EditItemTemplate column
I have a datagrid with two edititemtemplate columns that contain dropdownlists, these are 1)lists manufacturers of cars, 2)lists car models for a... -
Edit Mode - How do I populate dropdown in edittemplate from dropdown in another column?
I have a datagrid with 2 columns that I want to interact when I'm in Edit Mode. I've reproduced just the columns I want to interact below. I can... -
Can't get to nested dropdown in edititemtemplate column
I've created a datagrid with 1 edititemtemplate column. When the user clicks edit, it spans the entire width of the datagrid (removing the other... -
how to Add different controls(textBox,DropDownList or some ) in the same column,based upon the value in the previous column (Say second Colum which contain dropdown with some values) ?
I am new to ASP.NET. I am facing problem with datagrid. I will explain prob now. In the datagrid the first column is name in the second... -
msnews #2
Re: Working with a 2 column Dropdown
You can set the DataValueField and DataTextField properties to match the
properties you want set from the datasource. In this case, the hidden
parameter is the DataValueField. To get it back from the DropDownList after
a PostBack you get SelectedValue. It does work like a GridView where you do
have to hide the key fields to use them as parameters.
Brennan Stehling
[url]http://brennan.offwhite.net/blog/[/url]
"jonefer" <jonefer@discussions.microsoft.com> wrote in message
news:800788B2-F32F-4AEB-8A0D-5D7843530D0F@microsoft.com...>I know how to fill a dropdown list and use it's selected value as a
>parameter.
> How can I setup 2 columns, hide one column but use the hidden column (a
> key)
> as the parameter
>
> For example:
>
> Prov, ProvID (hidden column)
>
> =====
> .SelectedValue.column()....?
>
>
>
>
>
>
msnews Guest



Reply With Quote

