autopostback and <base href...> tag

S

Sam

Hi,

I've got an ASP.NET Project, where I have split up various aspects of the project into separate folders.

ie.

<root>
<root>/Employer/
<root>/Employee/
<root>/Search/

At the root, I have a User Control that sets the <base href="<root location>"> value in theheader of each web form. This is so that I can be in a different directory and my menus etc will still be relative to the correct pathing.

I have a WebForm within the "Employer" directory. On that web form, I would like to "autopostback" on a checkbox. The name of the form is "EmployerDetails.aspx". ie. <root>/Employer/EmployerDetails.aspx.

Now, when the Checkbox does the Autopostback, it loses the "Employer" directory, because of the <base href..> tag. ie. It's going to <root>/EmployerDetails.aspx instead of <root>/Employer/EmployerDetails.aspx.

Is there any way that I can set the location of where the Autopostback goes to, or at least set what the base path is for it?

I would like to leave the <base> tag in my header.

Thanks,
Sam
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top