Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The server tag is not well formed.

0 views
Skip to first unread message

srinivas

unread,
Mar 2, 2007, 12:25:45 PM3/2/07
to
Hi all,
I'm getting the 'The server tag is not well formed.' error for this tag in
aspx page

<a href="javascript:openPopup('default.aspx?EmpID=<%# Eval("EmpID")
%>&Type=1')" id="lnkDestination" name="lnkDestination"
accesskey="lnkDestination" runat="server">Show</a>

Can anybody please help me in resolving this?

Thanks for your help
Srinivas

David Longnecker

unread,
Mar 2, 2007, 1:01:22 PM3/2/07
to
Should be able to resolve this by switching your quotes. Single quotes for
your properties and doublequotes inside the javascript.

<a href='javascript:openPopup("default.aspx?EmpID=<%# Eval("EmpID") %>&Type=1")'

id='lnkDestination'
name='lnkDestination'
accesskey='lnkDestination'
runat='server'>
Show
</a>

---
David Longnecker
Web Developer
http://blog.tiredstudent.com

Milosz Skalecki [MCAD]

unread,
Mar 2, 2007, 5:40:13 PM3/2/07
to
Howdy,

<a href="<%#
String.Format("javascript:openPopup('default.aspx?EmpID={0}&Type=1\')",
Eval("EmpID")) %>" id="lnkDestination" name="lnkDestination"

accesskey="lnkDestination" runat="server">Show</a>

Hope this helps
--
Milosz


"srinivas" wrote:

> David,
> Thanks for the reply
> After changing it also it's not working.
> Instead of the Caption 'Show' it is displaying entire pagename and id name
> and accesskey names.
> One more thing is if i remove the runat tag then everything is working fine
>
> Thanks

srinivas

unread,
Mar 2, 2007, 6:27:05 PM3/2/07
to
David,
Thanks for the reply
After changing it also it's not working.
Instead of the Caption 'Show' it is displaying entire pagename and id name
and accesskey names.
One more thing is if i remove the runat tag then everything is working fine

Thanks

Milosz Skalecki [MCAD]

unread,
Mar 2, 2007, 10:09:14 PM3/2/07
to
Howdy,

Forgot ASP.NET forums will escape &quot;

It should be (hopefully):

<a href="<%#
String.Format(&quot;javascript:openPopup('default.aspx?EmpID={0}&Type=1\')&quot;,
Eval(&quot;EmpID&quot;)) %>" id="lnkDestination" name="lnkDestination"

accesskey="lnkDestination" runat="server">Show</a>

--
Milosz

0 new messages