日期:2014-05-17  浏览次数:20815 次

跨页面提交问题~~
现在有一网络后台地址,我现在想在我自己的站点做一页面提交后登陆到他的系统上面去?怎么弄?

C# 提交后没form ,全部是事件啊,如果是asp 的话就可以直接 action="",望指点啊

C# code
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Page</title>
</head>
<body>
    <form id="form1" runat="server" method="post" action="">
    <div>
        <asp:Label ID="Label1" runat="server" Text="请输入您的姓名" Width="183px"></asp:Label>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server"  Text="提交" /></div>
    </form>
</body>
</html>



------解决方案--------------------
look
------解决方案--------------------
直接写Button1事件不就行了,干嘛要aspx文件上写,在aspx.cs中

------解决方案--------------------
不会,帮你顶。。。
------解决方案--------------------
是可以提交的,button 里面 有一个PostBackUrl
可以查下 PostBackUrl 这个属性,不过,竟然有后台了,为什么还要提交到别的页面呢?