Open a web from a server control

A

Ahmed Hashish

How could I open a modal webform from a server control?
I'm using the render sub and writer object to output script that open a
webform, but it gives error object not found, it tries to open the webform
from the client application directory, how could I enforce it to open the
webform from my custom control directory?

Ahmed
 
A

Ahmed Hashish

the problem not in the modal opening, it is in the url of the page because
the page is in the server control project not in the client web project
 
B

Brock Allen

So I can't tell what you need then. You're looking for the Url to pass? Build
the Url from Request.ApplicationPath and then the path to the page within
your application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top