Hi,
I wrote a simple web application using web matrix. When I run it on my local
computer all works fine, but when I run it on hosting site all hyperlinks
are not working and just postback to the original page. I have rechecked the
links and they are set right, & work on local computer, but not on hosted
site. I have noticed that when you mouse over the link on local host the
adress shows like javascript:WebF orm_dopostbackw ithoptions(new
webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") but on the
hosting site the adress shows javascript:
_dopostback('li nkbutton1',"). Any ideas??
TIA
Ken 13 1603
Hi,
I have found that the reason this is happing is that the other forms are not
being found. the following is the code for a link:
<asp:linkbutt on id="linkbutton1 " runat="server"
postbackurl="su pport.aspx">Sup port</asp:linkbutton>
is the syntax for the bostback url correct?
all web forms on the server are in wwwroot directory as is the main index
page.
Are web forms in the right directory?
TIA
Ken
"Kenneth Windish" <ke************ @netzero.net> wrote in message
news:uD******** ******@TK2MSFTN GP10.phx.gbl... Hi,
I wrote a simple web application using web matrix. When I run it on my local computer all works fine, but when I run it on hosting site all hyperlinks are not working and just postback to the original page. I have rechecked the links and they are set right, & work on local computer, but not on hosted site. I have noticed that when you mouse over the link on local host the adress shows like javascript:WebF orm_dopostbackw ithoptions(new webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") but on the hosting site the adress shows javascript: _dopostback('li nkbutton1',"). Any ideas??
TIA Ken
re: is the syntax for the postback url correct?
You can't get there from here.
One of the biggest differences between ASP and ASP.NET
is that in ASP.NET, a Web Form must post back to itself instead
of posting to a different page.
Historically, developers posted to a different page by setting the form's
action attribute. Posting to a separate page used to be a good idea
because it made for a cleaner separation of code from HTML.
Now, because ASP.NET handles events in the same Web Form in
which they're raised, the form must post back to the same page.
Even if you set the action attribute of the form to a different page,
the Web server finds the runat="server" attribute setting and
overrides your action value.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Kenneth Windish" <ke************ @netzero.net> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Hi,
I have found that the reason this is happing is that the other forms are not being found. the following is the code for a link: <asp:linkbutt on id="linkbutton1 " runat="server" postbackurl="su pport.aspx">Sup port</asp:linkbutton>
is the syntax for the bostback url correct?
all web forms on the server are in wwwroot directory as is the main index page.
Are web forms in the right directory?
TIA
Ken
"Kenneth Windish" <ke************ @netzero.net> wrote in message news:uD******** ******@TK2MSFTN GP10.phx.gbl... Hi,
I wrote a simple web application using web matrix. When I run it on my local computer all works fine, but when I run it on hosting site all hyperlinks are not working and just postback to the original page. I have rechecked the links and they are set right, & work on local computer, but not on hosted site. I have noticed that when you mouse over the link on local host the adress shows like javascript:WebF orm_dopostbackw ithoptions(new webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") but on the hosting site the adress shows javascript: _dopostback('li nkbutton1',"). Any ideas??
TIA Ken
I should have added that it's not possible in ASP.NET 1.1,
which you are using.
ASP.NET 2.0 introduces the ability to post to a different page,
and you *can* use the PostBackUrl="~/Page2.aspx"
attribute in ASP.NET 2.0.
Read Brock Allen's excellent article on the subject : http://staff.develop.com/ballen/blog...c-d3b8b4f29eaf
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:%2******** **********@TK2M SFTNGP15.phx.gb l... re: is the syntax for the postback url correct?
You can't get there from here.
One of the biggest differences between ASP and ASP.NET is that in ASP.NET, a Web Form must post back to itself instead of posting to a different page.
Historically, developers posted to a different page by setting the form's action attribute. Posting to a separate page used to be a good idea because it made for a cleaner separation of code from HTML.
Now, because ASP.NET handles events in the same Web Form in which they're raised, the form must post back to the same page.
Even if you set the action attribute of the form to a different page, the Web server finds the runat="server" attribute setting and overrides your action value.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Hi,
I have found that the reason this is happing is that the other forms are not being found. the following is the code for a link: <asp:linkbutt on id="linkbutton1 " runat="server" postbackurl="su pport.aspx">Sup port</asp:linkbutton>
is the syntax for the bostback url correct?
all web forms on the server are in wwwroot directory as is the main index page.
Are web forms in the right directory?
TIA
Ken
"Kenneth Windish" <ke************ @netzero.net> wrote in message news:uD******** ******@TK2MSFTN GP10.phx.gbl... Hi,
I wrote a simple web application using web matrix. When I run it on my local computer all works fine, but when I run it on hosting site all hyperlinks are not working and just postback to the original page. I have rechecked the links and they are set right, & work on local computer, but not on hosted site. I have noticed that when you mouse over the link on local host the adress shows like javascript:WebF orm_dopostbackw ithoptions(new webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") but on the hosting site the adress shows javascript: _dopostback('li nkbutton1',"). Any ideas??
TIA Ken
Hi,
Thanks for responding.
You mean that I can write web pages that work fine when run from my local
computer with the web matrix server, but they won't work when placed on a
hosting server?
Seems like a big waste.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:%2******** **********@TK2M SFTNGP15.phx.gb l... re: is the syntax for the postback url correct?
You can't get there from here.
One of the biggest differences between ASP and ASP.NET is that in ASP.NET, a Web Form must post back to itself instead of posting to a different page.
Historically, developers posted to a different page by setting the form's action attribute. Posting to a separate page used to be a good idea because it made for a cleaner separation of code from HTML.
Now, because ASP.NET handles events in the same Web Form in which they're raised, the form must post back to the same page.
Even if you set the action attribute of the form to a different page, the Web server finds the runat="server" attribute setting and overrides your action value.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Hi,
I have found that the reason this is happing is that the other forms are not being found. the following is the code for a link: <asp:linkbutt on id="linkbutton1 " runat="server" postbackurl="su pport.aspx">Sup port</asp:linkbutton>
is the syntax for the bostback url correct?
all web forms on the server are in wwwroot directory as is the main index page.
Are web forms in the right directory?
TIA
Ken
"Kenneth Windish" <ke************ @netzero.net> wrote in message news:uD******** ******@TK2MSFTN GP10.phx.gbl... Hi,
I wrote a simple web application using web matrix. When I run it on my local computer all works fine, but when I run it on hosting site all hyperlinks are not working and just postback to the original page. I have rechecked the links and they are set right, & work on local computer, but not on hosted site. I have noticed that when you mouse over the link on local host the adress shows like javascript:WebF orm_dopostbackw ithoptions(new webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") but on the hosting site the adress shows javascript: _dopostback('li nkbutton1',"). Any ideas??
TIA Ken
It's no waste. It's just the way it is.
You can't do it with ASP.NET 1.1. Period.
You *can* do it with ASP.NET 2.0.
Look into using Response.Redire ct, if you want to use 1.1.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Kenneth Windish" <ke************ @netzero.net> wrote in message
news:e9******** *****@TK2MSFTNG P15.phx.gbl... Hi,
Thanks for responding.
You mean that I can write web pages that work fine when run from my local computer with the web matrix server, but they won't work when placed on a hosting server? Seems like a big waste.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:%2******** **********@TK2M SFTNGP15.phx.gb l... re: is the syntax for the postback url correct?
You can't get there from here.
One of the biggest differences between ASP and ASP.NET is that in ASP.NET, a Web Form must post back to itself instead of posting to a different page.
Historically, developers posted to a different page by setting the form's action attribute. Posting to a separate page used to be a good idea because it made for a cleaner separation of code from HTML.
Now, because ASP.NET handles events in the same Web Form in which they're raised, the form must post back to the same page.
Even if you set the action attribute of the form to a different page, the Web server finds the runat="server" attribute setting and overrides your action value.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Hi,
I have found that the reason this is happing is that the other forms are not being found. the following is the code for a link: <asp:linkbutt on id="linkbutton1 " runat="server" postbackurl="su pport.aspx">Sup port</asp:linkbutton>
is the syntax for the bostback url correct?
all web forms on the server are in wwwroot directory as is the main index page.
Are web forms in the right directory?
TIA
Ken
"Kenneth Windish" <ke************ @netzero.net> wrote in message news:uD******** ******@TK2MSFTN GP10.phx.gbl... Hi,
I wrote a simple web application using web matrix. When I run it on my local computer all works fine, but when I run it on hosting site all hyperlinks are not working and just postback to the original page. I have rechecked the links and they are set right, & work on local computer, but not on hosted site. I have noticed that when you mouse over the link on local host the adress shows like javascript:WebF orm_dopostbackw ithoptions(new webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") but on the hosting site the adress shows javascript: _dopostback('li nkbutton1',"). Any ideas??
TIA Ken
Hi,
What I am saying is why even have a link button if it can't link to anything
in the real world only in a test environment on your local computer?
Thats what seems like a waste.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:uJ******** ******@TK2MSFTN GP14.phx.gbl... It's no waste. It's just the way it is. You can't do it with ASP.NET 1.1. Period.
You *can* do it with ASP.NET 2.0.
Look into using Response.Redire ct, if you want to use 1.1. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:e9******** *****@TK2MSFTNG P15.phx.gbl... Hi,
Thanks for responding.
You mean that I can write web pages that work fine when run from my local computer with the web matrix server, but they won't work when placed on a hosting server? Seems like a big waste.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:%2******** **********@TK2M SFTNGP15.phx.gb l... re: is the syntax for the postback url correct?
You can't get there from here.
One of the biggest differences between ASP and ASP.NET is that in ASP.NET, a Web Form must post back to itself instead of posting to a different page.
Historically, developers posted to a different page by setting the form's action attribute. Posting to a separate page used to be a good idea because it made for a cleaner separation of code from HTML.
Now, because ASP.NET handles events in the same Web Form in which they're raised, the form must post back to the same page.
Even if you set the action attribute of the form to a different page, the Web server finds the runat="server" attribute setting and overrides your action value.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Hi,
I have found that the reason this is happing is that the other forms are not being found. the following is the code for a link: <asp:linkbutt on id="linkbutton1 " runat="server" postbackurl="su pport.aspx">Sup port</asp:linkbutton>
is the syntax for the bostback url correct?
all web forms on the server are in wwwroot directory as is the main index page.
Are web forms in the right directory?
TIA
Ken
"Kenneth Windish" <ke************ @netzero.net> wrote in message news:uD******** ******@TK2MSFTN GP10.phx.gbl... > Hi, > > I wrote a simple web application using web matrix. When I run it on my > local computer all works fine, but when I run it on hosting site all > hyperlinks are not working and just postback to the original page. I > have rechecked the links and they are set right, & work on local > computer, but not on hosted site. I have noticed that when you mouse > over the link on local host the adress shows like > javascript:WebF orm_dopostbackw ithoptions(new > webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") but > on the hosting site the adress shows javascript: > _dopostback('li nkbutton1',"). Any ideas?? > > > TIA > Ken >
Kenneth,
we have a semantics issue here in that the
"postbackur l" attribute is badly named.
You *can* use the linkbutton to *link* to a different page.
You cannot use it to *post* the page it's on to another page.
"postbackur l" should be named something else to prevent confusion.
If the attribute's name was "linkurl" like this example : <asp:linkbutt on id="linkbutton1 " runat="server" linkurl="suppor t.aspx">Support </asp:linkbutton>
it wouldn't confuse anyone.
I hope that makes the issue clearer to you ( and others ).
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Kenneth Windish" <ke************ @netzero.net> wrote in message
news:uJ******** ******@TK2MSFTN GP10.phx.gbl... Hi,
What I am saying is why even have a link button if it can't link to anything in the real world only in a test environment on your local computer? Thats what seems like a waste.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:uJ******** ******@TK2MSFTN GP14.phx.gbl... It's no waste. It's just the way it is. You can't do it with ASP.NET 1.1. Period.
You *can* do it with ASP.NET 2.0.
Look into using Response.Redire ct, if you want to use 1.1. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:e9******** *****@TK2MSFTNG P15.phx.gbl... Hi,
Thanks for responding.
You mean that I can write web pages that work fine when run from my local computer with the web matrix server, but they won't work when placed on a hosting server? Seems like a big waste.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:%2******** **********@TK2M SFTNGP15.phx.gb l... re: > is the syntax for the postback url correct?
You can't get there from here.
One of the biggest differences between ASP and ASP.NET is that in ASP.NET, a Web Form must post back to itself instead of posting to a different page.
Historically, developers posted to a different page by setting the form's action attribute. Posting to a separate page used to be a good idea because it made for a cleaner separation of code from HTML.
Now, because ASP.NET handles events in the same Web Form in which they're raised, the form must post back to the same page.
Even if you set the action attribute of the form to a different page, the Web server finds the runat="server" attribute setting and overrides your action value.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. > Hi, > > I have found that the reason this is happing is that the other forms are not being > found. the following is the code for a link: > <asp:linkbutt on id="linkbutton1 " runat="server" > postbackurl="su pport.aspx">Sup port</asp:linkbutton> > > is the syntax for the bostback url correct? > > all web forms on the server are in wwwroot directory as is the main index > page. > > Are web forms in the right directory? > > TIA > > Ken > > "Kenneth Windish" <ke************ @netzero.net> wrote in message > news:uD******** ******@TK2MSFTN GP10.phx.gbl... >> Hi, >> >> I wrote a simple web application using web matrix. When I run it on my local >> computer all works fine, but when I run it on hosting site all hyperlinks are not >> working and just postback to the original page. I have rechecked the links and they >> are set right, & work on local computer, but not on hosted site. I have noticed >> that when you mouse over the link on local host the adress shows like >> javascript:WebF orm_dopostbackw ithoptions(new >> webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") but on the >> hosting site the adress shows javascript: >> _dopostback('li nkbutton1',"). Any ideas?? >> >> >> TIA >> Ken >> > >
Hi,
Thanks for your info. Not really sure what the button is linking, or how
that link works, but I now realize that what I should have been using was a
hyperlink instead of a linkbutton.
Thanks for your input.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:Oz******** ******@TK2MSFTN GP10.phx.gbl... Kenneth,
we have a semantics issue here in that the "postbackur l" attribute is badly named.
You *can* use the linkbutton to *link* to a different page. You cannot use it to *post* the page it's on to another page.
"postbackur l" should be named something else to prevent confusion.
If the attribute's name was "linkurl" like this example : <asp:linkbutt on id="linkbutton1 " runat="server" linkurl="suppor t.aspx">Support </asp:linkbutton>
it wouldn't confuse anyone.
I hope that makes the issue clearer to you ( and others ).
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:uJ******** ******@TK2MSFTN GP10.phx.gbl... Hi,
What I am saying is why even have a link button if it can't link to anything in the real world only in a test environment on your local computer? Thats what seems like a waste.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:uJ******** ******@TK2MSFTN GP14.phx.gbl... It's no waste. It's just the way it is. You can't do it with ASP.NET 1.1. Period.
You *can* do it with ASP.NET 2.0.
Look into using Response.Redire ct, if you want to use 1.1. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:e9******** *****@TK2MSFTNG P15.phx.gbl... Hi,
Thanks for responding.
You mean that I can write web pages that work fine when run from my local computer with the web matrix server, but they won't work when placed on a hosting server? Seems like a big waste.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:%2******** **********@TK2M SFTNGP15.phx.gb l... > re: >> is the syntax for the postback url correct? > > You can't get there from here. > > One of the biggest differences between ASP and ASP.NET > is that in ASP.NET, a Web Form must post back to itself instead > of posting to a different page. > > Historically, developers posted to a different page by setting the > form's > action attribute. Posting to a separate page used to be a good idea > because it made for a cleaner separation of code from HTML. > > Now, because ASP.NET handles events in the same Web Form in > which they're raised, the form must post back to the same page. > > Even if you set the action attribute of the form to a different page, > the Web server finds the runat="server" attribute setting and > overrides your action value. > > > > > Juan T. Llibre, ASP.NET MVP > ASP.NET FAQ : http://asp.net.do/faq/ > Foros de ASP.NET en Español : http://asp.net.do/foros/ > =============== =============== ======== > "Kenneth Windish" <ke************ @netzero.net> wrote in message > news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. >> Hi, >> >> I have found that the reason this is happing is that the other forms >> are not being found. the following is the code for a link: >> <asp:linkbutt on id="linkbutton1 " runat="server" >> postbackurl="su pport.aspx">Sup port</asp:linkbutton> >> >> is the syntax for the bostback url correct? >> >> all web forms on the server are in wwwroot directory as is the main >> index >> page. >> >> Are web forms in the right directory? >> >> TIA >> >> Ken >> >> "Kenneth Windish" <ke************ @netzero.net> wrote in message >> news:uD******** ******@TK2MSFTN GP10.phx.gbl... >>> Hi, >>> >>> I wrote a simple web application using web matrix. When I run it on >>> my local computer all works fine, but when I run it on hosting site >>> all hyperlinks are not working and just postback to the original >>> page. I have rechecked the links and they are set right, & work on >>> local computer, but not on hosted site. I have noticed that when >>> you mouse over the link on local host the adress shows like >>> javascript:WebF orm_dopostbackw ithoptions(new >>> webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") >>> but on the hosting site the adress shows javascript: >>> _dopostback('li nkbutton1',"). Any ideas?? >>> >>> >>> TIA >>> Ken >>> >> >> > >
Hi, Kenneth.
I found your input so interesting that I submitted a suggestion
at the Microsoft Product Feedback Center, asking that they
rename "postbackur l" to "navigateur l", like the Hyperlink.
You may want to support the suggestion by voting for it. http://lab.msdn.microsoft.com/produc...5-32df70cfd903
Thanks!
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Kenneth Windish" <ke************ @netzero.net> wrote in message
news:um******** ******@TK2MSFTN GP09.phx.gbl... Hi,
Thanks for your info. Not really sure what the button is linking, or how that link works, but I now realize that what I should have been using was a hyperlink instead of a linkbutton.
Thanks for your input.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:Oz******** ******@TK2MSFTN GP10.phx.gbl... Kenneth,
we have a semantics issue here in that the "postbackur l" attribute is badly named.
You *can* use the linkbutton to *link* to a different page. You cannot use it to *post* the page it's on to another page.
"postbackur l" should be named something else to prevent confusion.
If the attribute's name was "linkurl" like this example : <asp:linkbutt on id="linkbutton1 " runat="server" linkurl="suppor t.aspx">Support </asp:linkbutton>
it wouldn't confuse anyone.
I hope that makes the issue clearer to you ( and others ).
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:uJ******** ******@TK2MSFTN GP10.phx.gbl... Hi,
What I am saying is why even have a link button if it can't link to anything in the real world only in a test environment on your local computer? Thats what seems like a waste.
Ken
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:uJ******** ******@TK2MSFTN GP14.phx.gbl... It's no waste. It's just the way it is. You can't do it with ASP.NET 1.1. Period.
You *can* do it with ASP.NET 2.0.
Look into using Response.Redire ct, if you want to use 1.1. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Kenneth Windish" <ke************ @netzero.net> wrote in message news:e9******** *****@TK2MSFTNG P15.phx.gbl... > Hi, > > Thanks for responding. > > You mean that I can write web pages that work fine when run from my local computer > with the web matrix server, but they won't work when placed on a hosting server? > Seems like a big waste. > > Ken
> "Juan T. Llibre" <no***********@ nowhere.com> wrote in message > news:%2******** **********@TK2M SFTNGP15.phx.gb l... >> re: >>> is the syntax for the postback url correct? >> >> You can't get there from here. >> >> One of the biggest differences between ASP and ASP.NET >> is that in ASP.NET, a Web Form must post back to itself instead >> of posting to a different page. >> >> Historically, developers posted to a different page by setting the form's >> action attribute. Posting to a separate page used to be a good idea >> because it made for a cleaner separation of code from HTML. >> >> Now, because ASP.NET handles events in the same Web Form in >> which they're raised, the form must post back to the same page. >> >> Even if you set the action attribute of the form to a different page, >> the Web server finds the runat="server" attribute setting and >> overrides your action value. >> >> >> >> >> Juan T. Llibre, ASP.NET MVP >> ASP.NET FAQ : http://asp.net.do/faq/ >> Foros de ASP.NET en Español : http://asp.net.do/foros/ >> =============== =============== ======== >> "Kenneth Windish" <ke************ @netzero.net> wrote in message >> news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. >>> Hi, >>> >>> I have found that the reason this is happing is that the other forms are not being >>> found. the following is the code for a link: >>> <asp:linkbutt on id="linkbutton1 " runat="server" >>> postbackurl="su pport.aspx">Sup port</asp:linkbutton> >>> >>> is the syntax for the bostback url correct? >>> >>> all web forms on the server are in wwwroot directory as is the main index >>> page. >>> >>> Are web forms in the right directory? >>> >>> TIA >>> >>> Ken >>> >>> "Kenneth Windish" <ke************ @netzero.net> wrote in message >>> news:uD******** ******@TK2MSFTN GP10.phx.gbl... >>>> Hi, >>>> >>>> I wrote a simple web application using web matrix. When I run it on my local >>>> computer all works fine, but when I run it on hosting site all hyperlinks are not >>>> working and just postback to the original page. I have rechecked the links and >>>> they are set right, & work on local computer, but not on hosted site. I have >>>> noticed that when you mouse over the link on local host the adress shows like >>>> javascript:WebF orm_dopostbackw ithoptions(new >>>> webform_postbac koptions("linkb utton1","",fals e,"","support.a spx") but on the >>>> hosting site the adress shows javascript: >>>> _dopostback('li nkbutton1',"). Any ideas?? >>>> >>>> >>>> TIA >>>> Ken >>>> >>> >>> >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ben Ingram |
last post by:
Hi all,
I am writing a template matrix class in which the template parameters are
the number of rows and number of columns. There are a number of reasons
why this is an appropriate tradeoff for my particular application. One of the
advantages is that the _compiler_ can force inner matrix dimensions used in
multiplication to agree. A...
|
by: Jason |
last post by:
Hello. I am trying to learn how operator overloading works so I wrote
a simple class to help me practice. I understand the basic opertoar
overload like + - / *, but when I try to overload more complex
operator, I get stuck.
Here's a brief description what I want to do. I want to simulate a
matrix (2D array) from a 1D array. so what I have...
|
by: memocan |
last post by:
#include <iostream>
using namespace std;
int x; //global variable matrix
int main()
{
x= new float ; //initialize the size now
}
|
by: amitnanda |
last post by:
Hi Guys,
I have a matrix multiplication program in C that multiplies two
matrices.
When their size is 3*3 or 800*800, the program runs fine. But above
that size, I get a "segmentation fault".
I need this huge size as part of my assignment.
|
by: Frank-O |
last post by:
Hi ,
Recently I have been commited to the task of "translating" some complex
statistical algorithms from Matlab to C++. The goal is to be three
times as fast as matlab ( the latest) .
I've used various techniques ( loop unrolling, loop jamming...) and
tried some matrix libraries : newmat (slow for large matrix) , STL
(fast but ..not...
| |
by: Peterwkc |
last post by:
Hello all expert, i have two program which make me desperate bu after i have noticed the forum, my future is become brightness back.
By the way, my problem is like this i the first program was compiled and run without any erros but the second program has a run time error when the function return from allocate and the ptr become NULL. How to...
|
by: DarrenWeber |
last post by:
Below is a module (matrix.py) with a class to implement some basic
matrix operations on a 2D list. Some things puzzle me about the best
way to do this (please don't refer to scipy, numpy and numeric because
this is a personal programming exercise for me in creating an
operational class in pure python for some *basic* matrix operations).
1....
|
by: DarrenWeber |
last post by:
# Copyright (C) 2007 Darren Lee Weber
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it...
|
by: Hypnotik |
last post by:
Hello everyone. I'm writing a program which uses a class called matrix. I have written all of the different functions, constructor, etc.
When I run the program I receive "Constructor", which I placed in the constructor, and then the program crashes. I have no clue where my problem is.
The matrix is for size 2x2 up to 10x10, and it must be...
|
by: rijaalu |
last post by:
I am designing a matrix class that performs addition, multicpication, substraction and division. When ever i complie the code it shows an error.
include <iostream>
using namespace std;
class matrix{
public:
matrix();
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |