Subject: Adding second parameter to open page
Posted By: nbryson Post Date: 9/18/2003 6:59:18 AM
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.open('calendar.aspx?formname=
EditContract_New.StartDate','calendar_window','width=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.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.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>


Any help would be appreciated.

Go to topic 4230

Return to index page 1043
Return to index page 1042
Return to index page 1041
Return to index page 1040
Return to index page 1039
Return to index page 1038
Return to index page 1037
Return to index page 1036
Return to index page 1035
Return to index page 1034