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.
|