我如何从一个ascx重定向到下一个ascx页面 [英] How do i redirect From one ascx to next ascx page

查看:91
本文介绍了我如何从一个ascx重定向到下一个ascx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我有
1)test.aspx
2)A.ascx
3)B.ascx
4)C.ascx

当我运行test.aspx时,它会打开A.ascx,因为A.ascx我在test.aspx
中注册 现在我在A.ascx中具有链接.
链接B和链接c
当我单击链接B时,B.ascx应该打开,而当我单击链接C
时 然后C.ascx打开.
我该怎么做??
从一个ascx开始.重定向到下一个ascx.
这可能吗?
我应该为此使用modelpopup吗?
请告诉我

提前感谢.

Hello ,
I have
1)test.aspx
2)A.ascx
3)B.ascx
4)C.ascx

when i run the test.aspx it open A.ascx because A.ascx i register in the test.aspx
now i have link in A.ascx.
Link B and Link c
when I click on the Link B the B.ascx should open and When I click on the Link C
then C.ascx sholud open.
how should i do that ???
from one ascx . redirect to next ascx.
is this possible?
should i used modelpopup for that.
plz tell me

Thanx In advance.

推荐答案

您要查找的行为是Asp.net向导控件的.
您可以参考以下文章:
ASP.NET 2.0向导控件 [ ASP.NET 2.0向导控件
[ ^ ]
The behavior you are looking for is of Asp.net wizard control.

You can refer to the following articles:
ASP.NET 2.0 Wizard Control[^]

The ASP.NET 2.0 Wizard Control
[^]


它没有帮助..

我想要
当任何人单击链接时,新的.Ascx页应打开

但它给出了错误
我的代码是
代码是test.aspx
its not helpful ..

i want
when any one click on the link the new .Ascx page should open

but it give error
my code is
code is test.aspx
<![CDATA[<%@ Page Language="C#" MasterPageFile="~/default.master" AutoEventWireup="true" CodeFile="Test.aspx.cs"

    Inherits="Test" Title="Untitled Page" %>
<![CDATA[<%@ Register Src="ClientInformation/ClientInformation.ascx" TagName="Test" TagPrefix="uc1" %>
<![CDATA[<%@ Register Src="ClientInformation/ShiftToR-FIXEDPlan.ascx" TagName="FIXEDPlan" TagPrefix="uc2" %>
<![CDATA[<%@ Register Src="ClientInformation/ShiftToR-FLEXIPLAN.ascx" TagName="FLEXIPLAN" TagPrefix="uc3" %>
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
    <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">
            <uc1:test id="uctrlClientInformation" enableviewstate="true"  runat="server"/>
        </div>
       <div class="TabbedPanelsContent">
            <uc2:fixedplan id="uctrlFIXEDPlan" enableviewstate="true"  runat="server" />
        </div>
          <div class="TabbedPanelsContent">
            <uc3:flexiplan id="uctrlFIXEIPlan" enableviewstate="true"  runat="server" />
        </div>
    </div>
ass="TabbedPanelsContent">
            <uc2:FIXEDPlan ID="uctrlFIXEDPlan" EnableViewState="true" runat="server" />
        </div>
          <div class="TabbedPanelsContent">
            <uc3:FLEXIPLAN ID="uctrlFIXEIPlan" EnableViewState="true" runat="server" />
        </div>--%>
    </div>
</asp:Content>
ass="TabbedPanelsContent">
            <uc2:FIXEDPlan ID="uctrlFIXEDPlan" EnableViewState="true" runat="server" />
        </div>
          <div class="TabbedPanelsContent">
            <uc3:FLEXIPLAN ID="uctrlFIXEIPlan" EnableViewState="true" runat="server" />
        </div>--%>
    </div>
</asp:Content>






A.ascx中的代码







code in A.ascx


a href="~/Test.aspx?page=ClientInformation/B" target="_blank">Shift

a href="~/Test.aspx?page=ClientInformation/c" target="_blank">FLEXI Plan






当我单击Shift时,它应该重定向到b.ascx
却没有发生!
我该怎么办?






and when i click on Shift then it should redirect to b.ascx
but it not happen!
what should i do for that?


这篇关于我如何从一个ascx重定向到下一个ascx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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