[Solved] PostBack event changing Directory (URL) Path in ASP.Net

Last Reply 5 months ago By dharmendr

Posted 5 months ago

I have used bootstrap 4 styling theme. I have placed Server controls in it. After postback its changing the path of my directory.

My original path is

http://localhost:59723/TAADM/login.aspx

After post back from server controls I am getting

http://localhost:59723/addModifyAttackDetails.aspx

The addModifyAttackDetails.aspx is also in TAADM folder, because of this I am getting server error.

Why?

 

Posted 5 months ago

Hi Sumeet,

You need to debug your code and check.

Some where the redirection code is written with condition may be in master page if you are using.

At our end it is not possible to say exactly why it is redirected you to the page.

Also refer below link.

https://www.codeproject.com/Articles/134614/Way-To-Know-Which-Control-Has-Raised-PostBack