views:

25

answers:

1

Hi.

I need to get a UserControl VirtualPath programmatically. How can I do it?

For example, MyControl.ascx placed in Controls folder, so the result should be "~/Controls/MyControl.ascx".

Is it possible? Thank you.

A: 

try this

 server.MapPath(@"~\Controls\user control name");
Vyas
did u tried ...
Vyas