Question : Getting error message "The server tag is not well formed" on the line where I have a hyperlink control in my datagrid

I am getting the error message: "The server tag is not well formed" on the line where I have a hyperlink control in my datagrid. As can be seen below I am using a popup window using javascript and passing values to two querystring variables.


Here is a snippet of my code:


"center" HeaderText="Upload Photos">

ionalphotos.aspx?stylistID=" + DataBinder.Eval(Container.DataItem,"StylistID").ToString() & "&member=" & DataBinder.Eval(Container.DataItem,"MemberName") & "',null,'width=700,height=500');" %>' Text="Upload Photos" >

 
                         


Any suggestions?

Thank you

Answer : Getting error message "The server tag is not well formed" on the line where I have a hyperlink control in my datagrid

Here, this works (I tested in VS.NET 2003):

      runat="server"
      NavigateUrl='<%# "javascript:var PopUpWin = window.open('uploadprofessionalphotos.aspx?stylistID=" + DataBinder.Eval(Container.DataItem,&quot;StylistID").ToString() + "&member=" + DataBinder.Eval(Container.DataItem,&quot;MemberName";) + "',null,'width=700,height=500&apos;);&quot; %>'
      Text="Upload Photos"
      />
Random Solutions  
 
programming4us programming4us