Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GridView with DDL and selected value

1 view
Skip to first unread message

mik

unread,
May 11, 2008, 9:26:26 AM5/11/08
to
I've a gridview with a DDL in each row and I would like allow the user
to open a new page (using a server button, image button, hyperlink...
this isn't a problem) with the selected value of the DDL of the row

I've tried with a a hyperlink... but I don't know how to use the
selected value of the row


<asp:TemplateField HeaderText="Det" SortExpression="Data">
<ItemTemplate>
<div align="center"><a
href='javascript:fullscreen("Page.aspx....????????????")'><img
src="toolbar/add.gif" border="0"></a></div>
</ItemTemplate>
<HeaderStyle CssClass="Testo8" BackColor="#00005D" />
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="RGP" SortExpression="Data">
<ItemTemplate>
<div align="left">
<asp:DropDownList ID="ddlProssimaOwner"
runat="server" CssClass="Text11" />
</div>
</ItemTemplate>
<HeaderStyle CssClass="Testo8" BackColor="#00005D" />
</asp:TemplateField>

Thanks for help me!

Mark Rae [MVP]

unread,
May 11, 2008, 10:11:05 AM5/11/08
to
"mik" <m...@nomail.it> wrote in message
news:OXAfLr2s...@TK2MSFTNGP04.phx.gbl...

> I've a gridview with a DDL in each row and I would like allow the user to
> open a new page (using a server button, image button, hyperlink... this
> isn't a problem)

When you say a "server" button, I presume you're referring to the
<asp:Button /> webcontrol...?

> with the selected value of the DDL of the row

Next question: when you say "open a new page", do you actually mean opening
a new page in a separate browser window, or do you mean redirect to another
page...?


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

mik

unread,
May 11, 2008, 10:45:35 AM5/11/08
to

> When you say a "server" button, I presume you're referring to the
> <asp:Button /> webcontrol...?

I Can use all object... I would like only open a page with the selected
value you can you the objact that you prefer ;-))))


> Next question: when you say "open a new page", do you actually mean
> opening a new page in a separate browser window, or do you mean redirect
> to another page...?

I would like to open a PopUp (or a browser windows) with the
selectedvalue of the DDL of the row

Thanks for help me!!!

Mark Rae [MVP]

unread,
May 11, 2008, 12:22:23 PM5/11/08
to
"mik" <m...@nomail.it> wrote in message
news:O7E7ZX3s...@TK2MSFTNGP05.phx.gbl...

>> When you say a "server" button, I presume you're referring to the
>> <asp:Button /> webcontrol...?
>
> I Can use all object... I would like only open a page with the selected
> value you can you the objact that you prefer ;-))))

Apologies - I appreciate that English isn't your first language, but I have
no idea what that means...

>> Next question: when you say "open a new page", do you actually mean
>> opening a new page in a separate browser window, or do you mean redirect
>> to another page...?
>
> I would like to open a PopUp (or a browser windows) with the selectedvalue
> of the DDL of the row

ddlProssimaOwner.Attributes.Add("onchange",
"window.open('MyOtherWindow.aspx?ID=' + this.value);");

mik

unread,
May 11, 2008, 6:13:45 PM5/11/08
to

> Apologies - I appreciate that English isn't your first language, but I
> have no idea what that means...

I would like to open a new page with a parameter ... and this parameter
is the selectedvalue of a dropdownlist of the row

thanks


0 new messages