asp.net web矩阵 [英] asp.net web matrix

查看:83
本文介绍了asp.net web矩阵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我用web矩阵编写了一个简单的Web应用程序。当我在我的本地

计算机上运行时,一切正常,但是当我在主机网站上运行时,所有的超链接

都不起作用,只是回发到原始页面。我已经重新检查了

链接,它们设置正确,&在本地计算机上工作,但不在托管的

网站上工作。我注意到当你鼠标悬停在本地主机上的链接时,

地址显示为javascript :WebForm_dopostbackwithoptions(新

webform_postbackoptions(" linkbutton1" ;,",false,",support.aspx,但在

托管网站上,地址显示javascript

_dopostback(''linkbutton1'',')。任何想法??

TIA

Ken

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:WebForm_dopostbackwithoptions(new
webform_postbackoptions("linkbutton1","",false,"", "support.aspx") but on the
hosting site the adress shows javascript:
_dopostback(''linkbutton1'',"). Any ideas??
TIA
Ken

推荐答案




我发现这个问题的原因是其他表格不是找到了b $ b。以下是链接的代码:

< asp:linkbutton id =" linkbutton1" runat =" server"

postbackurl =" support.aspx" >支持< / asp:linkbutton>


是bostback网址的语法正确吗?


服务器上的所有网络表单都在wwwroot目录作为主要索引

页。

网页表格是否在正确的目录中?


TIA


Ken


Kenneth Windish <柯************ @ netzero.net>写在消息

新闻:uD ************** @ TK2MSFTNGP10.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:linkbutton id="linkbutton1" runat="server"
postbackurl="support.aspx">Support</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**************@TK2MSFTNGP10.phx.gbl...

我使用web矩阵编写了一个简单的Web应用程序。当我在我的
本地计算机上运行它一切正常,但当我在托管网站上运行时,所有
超链接都不起作用,只是回发到原始页面。我已经重新检查链接,它们设置正确,&在本地计算机上工作,但不在托管网站上。我注意到当你将鼠标悬停在本地主机上的链接时,地址会显示为
javascript :WebForm_dopostbackwithoptions(新的
webform_postbackoptions(" linkbutton1"," ",false,"""" support.aspx")但是在主机网站上,地址显示javascript
_dopostback(''linkbutton1'', )。任何想法??

TIA
Ken
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:WebForm_dopostbackwithoptions(new
webform_postbackoptions("linkbutton1","",false,"", "support.aspx") but on
the hosting site the adress shows javascript:
_dopostback(''linkbutton1'',"). Any ideas??
TIA
Ken



re:
回发网址的语法是否正确?


你不能从这里到达那里。


之间最大的区别之一ASP和ASP.NET

就是在ASP.NET中,Web表单必须回发给自己而不是
发布到不同的页面。


从历史上看,开发人员通过设置表单的'

操作属性来发布到不同的页面。发布到单独的页面曾经是一个好主意

因为它是为ac做的更简洁地将代码从HTML中分离出来。


现在,因为ASP.NET在

中处理了同一Web表单中的事件必须回发到同一页面。


即使你将表单的action属性设置为另一个页面,

Web服务器找到runat = "服务器"属性设置和

会覆盖你的行动价值。


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" <柯************ @ netzero.net>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...

我发现这个问题的原因是其他形式没有找到。以下是链接的代码:
< asp:linkbutton id =" linkbutton1" runat =" server"
postbackurl =" support.aspx">支持< / asp:linkbutton>

bostback网址的语法是否正确?

服务器上的所有Web表单都在wwwroot目录中,因为主索引是
页面。

Web表单是否在正确的目录中?

TIA

Ken

Kenneth Windish <柯************ @ netzero.net>在消息中写道
新闻:uD ************** @ TK2MSFTNGP10.phx.gbl ...
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****************@TK2MSFTNGP12.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:linkbutton id="linkbutton1" runat="server"
postbackurl="support.aspx">Support</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**************@TK2MSFTNGP10.phx.gbl...

我使用web矩阵编写了一个简单的Web应用程序。当我在我的本地计算机上运行时
一切正常,但当我在托管网站上运行时,所有超链接都无法正常工作,只需回发到原始页面即可。我已经重新检查了链接,它们设置正确,
&在本地计算机上工作,但不在托管站点上工作。我注意到,当你在本地主机上链接鼠标时,地址显示为
javascript :WebForm_dopostbackwithoptions(新的
webform_postbackoptions(" linkbutton1"," ",false,"""support.aspx"但在主机
网站上,地址显示javascript
_dopostback(''linkbutton1'', )。任何想法??

TIA
Ken
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:WebForm_dopostbackwithoptions(new
webform_postbackoptions("linkbutton1","",false,"", "support.aspx") but on the hosting
site the adress shows javascript:
_dopostback(''linkbutton1'',"). Any ideas??
TIA
Ken




I应该补充一点,它在ASP.NET 1.1中是不可能的,

你正在使用它。


ASP.NET 2.0引入了发布功能到另一个页面,

和你*可以*使用ASP.NET 2.0中的PostBackUrl ="〜/ Page2.aspx"

属性。


阅读Brock Allen关于这个主题的优秀文章:

http: //staff.develop.com/ballen/blog...c-d3b8b4f29eaf

Juan T. Llibre,ASP.NET MVP

ASP.NET常见问题解答: http://asp.net.do/faq/

Foros de ASP.NET en Espa?ol: http:/ /asp.net.do/foros/

============================= =========

" Juan T. Llibre" <无*********** @ nowhere.com>在消息中写道

news:%2 ****************** @ TK2MSFTNGP15.phx.gbl ...
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******************@TK2MSFTNGP15.phx.gbl...
re:
是回传网址的语法正确吗?
is the syntax for the postback url correct?



你不能从这里到达那里。

一个ASP与ASP.NET之间最大的区别
是在ASP.NET中,Web表单必须回发自己而不是发布到不同的页面。

历史上,开发人员通过设置表单的'
动作属性发布到不同的页面。发布到单独的页面曾经是一个好主意
因为它使代码更清晰地与HTML分离。

现在,因为ASP.NET处理同一Web表单中的事件<如果他们被提出,表单必须回发到同一页面。

即使你将表单的action属性设置为不同的页面,
Web服务器找到runat =" server"属性设置和
会覆盖您的操作值。





ASP.NET MVP
ASP.NET常见问题解答: http://asp.net.do/faq/
Foros de ASP.NET en Espa?ol : http://asp.net.do/foros/
======================================
Kenneth Windish <柯************ @ netzero.net>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...



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****************@TK2MSFTNGP12.phx.gbl...



我发现这个问题的原因是其他形式没有找到。以下是链接的代码:
< asp:linkbutton id =" linkbutton1" runat =" server"
postbackurl =" support.aspx">支持< / asp:linkbutton>

bostback网址的语法是否正确?

服务器上的所有Web表单都在wwwroot目录中,因为主索引是
页面。

Web表单是否在正确的目录中?

TIA

Ken

Kenneth Windish <柯************ @ netzero.net>在消息中写道
新闻:uD ************** @ TK2MSFTNGP10.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:linkbutton id="linkbutton1" runat="server"
postbackurl="support.aspx">Support</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**************@TK2MSFTNGP10.phx.gbl...

我使用web矩阵编写了一个简单的Web应用程序。当我在我的本地计算机上运行时
一切正常,但当我在托管网站上运行时,所有超链接都无法正常工作,只需回发到原始页面即可。我已经重新检查了链接,它们设置正确,
&在本地计算机上工作,但不在托管站点上工作。我注意到,当你在本地主机上链接鼠标时,地址显示为
javascript :WebForm_dopostbackwithoptions(新的
webform_postbackoptions(" linkbutton1"," ",false,"""support.aspx"但在主机
网站上,地址显示javascript
_dopostback(''linkbutton1'', )。任何想法??

TIA
Ken
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:WebForm_dopostbackwithoptions(new
webform_postbackoptions("linkbutton1","",false,"", "support.aspx") but on the hosting
site the adress shows javascript:
_dopostback(''linkbutton1'',"). Any ideas??
TIA
Ken



这篇关于asp.net web矩阵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆