2

In my project Index.aspx page is set as a default document. I tried to debug is not firing the button click event on localhost:1992,but it is working perfectly on localhost:1992/Index.aspx.

ISSUE : project working in localhost:1992/Index.aspx not working localhost:1992

Kindly give the solution for this issue?

UPDATE

I've set Index.aspx page as the startup page

NOTE : Client side click is working. only server side click is the problem here.

Anand Rajan
  • 63
  • 1
  • 9
  • SUCCESS link : [Click Here..](https://stackoverflow.com/questions/4673291/event-handlers-might-not-be-not-raised-in-a-default-document-in-iis-7-or-iis-7-5) This link is working for me.. – Anand Rajan Jun 16 '17 at 12:38

2 Answers2

3

Because you haven't specified a page as a startup page.

Right click on the page you want to be the start page and then click on the set as a start up page option.

Salah Akbari
  • 39,330
  • 10
  • 79
  • 109
0

You can do this by editing web.config file,

<system.webServer>
 <defaultDocument>
        <files>
            <clear />               
            <add value="index.aspx"/>
        </files>
    </defaultDocument>
</system.webServer>

Use clear tag before add tag

Thili77
  • 1,061
  • 12
  • 20