Click to See Complete Forum and Search --> : path of src in register tag


sanam_s
10-21-2008, 04:22 AM
Hello
I want to write path of src in Register tag from Root of web . I wrote this tag:

<%@ Register tagprefix="uc2" Src="<%=Page.ResolveClientUrl("~/DatePicker/DatePickerCtrl.ascx")%>" tagname="DatePickerCtrl" %>


But this error occurs:
The server block is not well formed.

why?

mayanksrmcem
10-21-2008, 05:22 AM
hello sanam,
actually, you are using asp tag(<%...%>) within asp tag.

<%@ Register tagprefix="uc2" Src="<%=Page.ResolveClientUrl("~/DatePicker/DatePickerCtrl.ascx")%>" tagname="DatePickerCtrl" %>

which is not possible.
this is the reason of error.

use any other way to give the path, like fixed path.