473,471 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

GridView with DDL and selected value

mik
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!
Jun 27 '08 #1
4 1647
"mik" <mi*@nomail.itwrote in message
news:OX**************@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

Jun 27 '08 #2
mik
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!!!
Jun 27 '08 #3
"mik" <mi*@nomail.itwrote in message
news:O7**************@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);");
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #4
mik

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
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John_H | last post by:
Re: ASP.NET 2.0 I would like suggestions or code examples on how to collect a variable length list of input data (item# & item quantity specifically). I thought that I could accomplish this...
5
by: Dick | last post by:
I have a GridView bound to an ObjectDataSource. I have a Button that calls GridView.DataBind. I want the row that is selected before the DataBind to still be selected afterwards. This happens...
1
by: CorporateCoder | last post by:
Hi, I am trying to bind the selected value of a databound dropdown box in a databound gridview control to the value being displayed in the template column the dropdown box has been added to. ...
2
by: | last post by:
I want to know how to make a clickable button or Command field on a GridView, and have the user's action a) fire a function and b) pass a data value from one of the GridView's columns to that...
1
by: kageyone | last post by:
I have a gridview in .net 2.0 with a dropdownlist of two items - that being "active" and "inactive". <EditItemTemplate> <asp:DropDownList ID="ddlStatus" runat="server"...
1
by: l3d007 | last post by:
I used this example straight from msdn in a gridview that already sorts based on each column. For some reason I cannot get it to sort based on two sorting expressions.Is there some property of the...
2
by: wildman | last post by:
RE: Gridview textbox has data check without postback.. javascript? I have a gridview with a textbox. I can set the textbox to autopostback and check for a value in a prerender event to decide if...
2
by: bogdan | last post by:
Hi, Can a single GridView be 'connected' to DetailsView that renders itself differently based on the currently selected row? I have a GridView with rows that could be displayed in the same way...
3
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
I have a gridview that uses a sqldatasource. The rows of the gridview are editable. When the gridview is in edit mode, one of the columns is a dropdown. In testing the editing, I deleted the...
25
by: premprakashbhati | last post by:
i want to have checkboxes in my gridview ...by checking it ,i can delete the row/rows.... so i have written code and got 2 Errors ...can anyone solve it... Error:1...'gridview.RetrieveItems()': not...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.