Sunday, 15 September 2013

vb.net - ASP.net postbackurl to same page outside VS project vs. within -



vb.net - ASP.net postbackurl to same page outside VS project vs. within -

i have been able post same page within script successfully... however, when created web application project in visual studio 2013 express web , run same script, postback doesn't work... page refreshes... also, instead of before url "webform1.aspx" shows "webform" this:

http://localhost:49201/webform1

within project, form tag looks this:

<form method="post" action="webform1" id="form1">

vs outside looks this:

http://localhost:49621/webform1.aspx

and form tag looks this:

<form method="post" action="webform1.aspx" id="form1">

is there weird file extensions need configure postback same page?

edit:

when run programme outside of vs project, posts perfectly.

when add together programme web application project within vs, post doesn't work, page refreshes...

code below:

<asp:button id="button1" runat="server" commandname="submit" postbackurl="~/webform1.aspx" text="button" />

after 7 hours of searching... here's did prepare issue:

create brand new project in vs select framework 4 (versus 4.5 or 4.5.1) add together new item project menu (web form) paste code, update web.config

the script posts, makes no sense, works. hope helps not waste day of life.

asp.net vb.net post visual-studio-2013

No comments:

Post a Comment