Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

GridView with DDL and selected value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mik - 11 May 2008 14:26 GMT
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] - 11 May 2008 15:11 GMT
> 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...?

Signature

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

mik - 11 May 2008 15:45 GMT
> 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] - 11 May 2008 17:22 GMT
>> 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);");

Signature

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

mik - 11 May 2008 23:13 GMT
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.