473,320 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

IE WebControls Tab/MultiPage state problem

Dan
IE WebControls Tab/MultiPage state problem

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

<code>

<iewc:TabStrip id="tabs" runat="server" TargetID="MultiPage1">

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

</iewc:TabStrip>

<iewc:MultiPage id="MultiPage1" runat="server">

<iewc:PageView>

<MyControlPrefix: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["RecordPrimaryKey"]).

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.Current.Items["RecordPrimaryKey"]=_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.

Nov 18 '05 #1
1 2225
Dan,
Please make sure the AutoPostBack property is set to true for the
ie web control.
That may help.
Thanks,
Marshal Antony
http://www.dotnetmarshal.com

"Dan" <mt*******@hotmail.com> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
IE WebControls Tab/MultiPage state problem

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

<code>

<iewc:TabStrip id="tabs" runat="server" TargetID="MultiPage1">

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

</iewc:TabStrip>

<iewc:MultiPage id="MultiPage1" runat="server">

<iewc:PageView>

<MyControlPrefix: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["RecordPrimaryKey"]).

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.Current.Items["RecordPrimaryKey"]=_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.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sue | last post by:
On code-behind page: (attributes set programatically for each of these elements) linkbutton added to tablecell textbox added to tablecell tablecells added to tablerow tablerow added to table...
2
by: floater55 | last post by:
So has anyone worked with the IE webcontrols much? I've found that they've come in very handy for Internet Explorer clients ... ON A WINDOWS PLATFORM ONLY! I've implemented the tabstrip control and...
1
by: szabelin | last post by:
Is it possible to dynamically add a PageView to MultiPage? TabStrip has items property, so Tab and TabSeparator can be added... how about adding PageView to MultiPage? If not possible please...
1
by: Daniel Walzenbach | last post by:
Hi I’d like to know, whether it is possible to set enabled = false or visible = false on the tabs of the MultiPage WebControl at runtime (check out...
0
by: Russ | last post by:
I wrote a nice aspx page using the Microsoft.Web.UI.WebControls, using a Tabstrip and Multipage. The tabstrip and multipage are created at design time, but the actual tab items, separators, pages,...
11
by: Kenneth P | last post by:
Hi, This link works but when you try to download IE WebControls you'll get to page that doesn't exist. http://msdn.microsoft.com/workshop/webcontrols/overview/overview.asp Anyone who could...
3
by: DalePres | last post by:
I have an application that uses the Microsoft.Web.UI.WebControls.TabStrip and Multipage controls. When I test the app on my pc or on my client's development web servers the controls render...
0
by: venky | last post by:
I have a tab control associated with a Multipage control which as a PageView object and each pageview has controls. How can add an event handler for a specific control inside the pageview. For...
8
by: Charts | last post by:
I download IEWebControls.exe, and installed it. Installation created IE Web Controls directory. The readme.txt said, 3. Create a /bin subdirectory for the application and copy the file...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.