Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 18th, 2003, 06:59 AM
Authorized User
 
Join Date: Jun 2003
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding second parameter to open page

Hi

In the code below Its the navigate URL to calander.aspx I want to add a second parameter to be passed. The 'ORIGINAL' code that is there and works :- as you can see 1 parameter is passed (formname=EditContract_New.StartDate')
I want to add a second parameter but as a variable 'artistid' which is in the code behind.

ORIGINAL
</asp:textbox><asp:hyperlink id="StartDateLink" runat="server" NavigateUrl="javascript:calendar_window=window.ope n('calendar.aspx?formname=
EditContract_New.StartDate','calendar_window','wid th=200,height=190,x=400,y=
200');calendar_window.moveTo(518,250); calendar_window.focus()" ImageUrl="../images/SmallCalendar.gif"></asp:hyperlink></TD>

NEW CODE TRIED
The following all raise error :- The server tag is not well formed

 <asp:hyperlink id="StartDateLink" runat="server" NavigateUrl= '<%# "javascript:calendar_window=window.open('calendar. aspx?formname=EditContract
_New.StartDate&UserId=" + userid + "','calendar_window','width=200,height=190,x=400,y =200');calendar_window.mov
eTo(518,250); calendar_window.focus()" %>' ImageUrl="../images/SmallCalendar.gif"></asp:hyperlink></TD>

<asp:hyperlink id="StartDateLink" runat="server" NavigateUrl="javascript:calendar_window=window.ope n('calendar.aspx?formname=
EditContract_New.StartDate&UserId=" + "<%# userid %>" + "','calendar_window','width=200,height=190,x=400,y =200');calendar_window.mov
eTo(518,250); calendar_window.focus()" ImageUrl="../images/SmallCalendar.gif"></asp:hyperlink></TD>

<asp:hyperlink id="StartDateLink" runat="server" NavigateUrl="javascript:calendar_window=window.ope n('calendar.aspx?formname=
EditContract_New.StartDate&UserId=" + <%# userid %> + "','calendar_window','width=200,height=190,x=400,y =200');calendar_window.mov
eTo(518,250); calendar_window.focus()" ImageUrl="../images/SmallCalendar.gif"></asp:hyperlink></TD>


Any help would be appreciated.





Similar Threads
Thread Thread Starter Forum Replies Last Post
adding another page? kwikwisi .NET Framework 2.0 1 April 21st, 2008 03:31 AM
Parameter Entry Page Still Appears yazzy Crystal Reports 1 June 26th, 2007 02:53 AM
Adding Date parameter joeri BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 3 March 9th, 2007 03:50 PM
Open a parameter query programmatically Sharq Access VBA 3 January 16th, 2004 08:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.