IE WebControls Tab/MultiPage state problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dan

    IE WebControls Tab/MultiPage state problem

    IE WebControls Tab/MultiPage state problem

    I have a IE tab/multipage on a WebForm (aspx) like this:

    <code>

    <iewc:TabStri p id="tabs" runat="server" TargetID="Multi Page1">

    <iewc:Tab Text="Tab1" ID="tp Tab1"></iewc:Tab>

    </iewc:TabStrip>

    <iewc:MultiPa ge id="MultiPage1 " runat="server">

    <iewc:PageVie w>

    <MyControlPrefi x:MyControl runat="server"
    id="MyControl1 " />

    </iewc:PageView>

    </iewc:MultiPage>

    </code>



    The webcontrol MyControl (ascx) has a <asp:textbox runat=server.>. The
    problem is that the Webform knows the record to display in the textbox (by
    QueryString variable retrieved as Request.Params["RecordPrimaryK ey"]).



    My problem is that I cannot see any way for the usercontrol to determine
    this value. Do you know?



    Here's what doesn't work:

    a) Having the Page_Load event directly access the usercontrol. This
    doesn't work because the IE Multipage 'feature' that doesn't allow early
    bound access to the control (I really hate that). Note that the
    ..FindControl is not an option for reasons I won't get into.

    b) assigning the primary key to context, like
    HttpContext.Cur rent.Items["RecordPrimaryK ey"]=_PrimaryKey; this almost
    works, except that on a Postback, the usercontrol has no value in that
    context.



    So I'm stuck. What are you guys (gals) doing to work around this problem.



  • Marshal Antony

    #2
    Re: IE WebControls Tab/MultiPage state problem

    Dan,
    Please make sure the AutoPostBack property is set to true for the
    ie web control.
    That may help.
    Thanks,
    Marshal Antony


    "Dan" <mtnmandan@hotm ail.com> wrote in message
    news:uta8NeK0DH A.2032@TK2MSFTN GP09.phx.gbl...[color=blue]
    > IE WebControls Tab/MultiPage state problem
    >
    > I have a IE tab/multipage on a WebForm (aspx) like this:
    >
    > <code>
    >
    > <iewc:TabStri p id="tabs" runat="server" TargetID="Multi Page1">
    >
    > <iewc:Tab Text="Tab1" ID="tp Tab1"></iewc:Tab>
    >
    > </iewc:TabStrip>
    >
    > <iewc:MultiPa ge id="MultiPage1 " runat="server">
    >
    > <iewc:PageVie w>
    >
    > <MyControlPrefi x:MyControl runat="server"
    > id="MyControl1 " />
    >
    > </iewc:PageView>
    >
    > </iewc:MultiPage>
    >
    > </code>
    >
    >
    >
    > The webcontrol MyControl (ascx) has a <asp:textbox runat=server.>. The
    > problem is that the Webform knows the record to display in the textbox[/color]
    (by[color=blue]
    > QueryString variable retrieved as Request.Params["RecordPrimaryK ey"]).
    >
    >
    >
    > My problem is that I cannot see any way for the usercontrol to[/color]
    determine[color=blue]
    > this value. Do you know?
    >
    >
    >
    > Here's what doesn't work:
    >
    > a) Having the Page_Load event directly access the usercontrol.[/color]
    This[color=blue]
    > doesn't work because the IE Multipage 'feature' that doesn't allow early
    > bound access to the control (I really hate that). Note that the
    > .FindControl is not an option for reasons I won't get into.
    >
    > b) assigning the primary key to context, like
    > HttpContext.Cur rent.Items["RecordPrimaryK ey"]=_PrimaryKey; this almost
    > works, except that on a Postback, the usercontrol has no value in that
    > context.
    >
    >
    >
    > So I'm stuck. What are you guys (gals) doing to work around this[/color]
    problem.[color=blue]
    >
    >
    >[/color]


    Comment

    Working...