asp.net adds # end of the url after postback -


I have a simple web form and after clicking on a button button it automatically adds the "#" end of the URL is.

Assume that the URL is:

After postback it changes in

I using UrlRewriter.NET's url rewriter module, maybe it's its Related with

But the form tag before the postback is as follows:

  & lt; Form method = "post" action = "#"  

Thanks for any thoughts.

Editing: I am using the master page so that the action tag can not be removed manually.

Just delete the Action Attribute form will automatically post to the current page. Url-rewrite module for this scenario is not necesairy.

Edit

Because you can not delete it due to masterpages, you can delete the attribute quick and dirty using javascript if you use jQuery If you are using, you can use the variation of this code:

  $ ('form'). RemoveAttr ('action')  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -