Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:716781
More Search Options
RSS Available
Matching Posts
Re: dropdownlist
The easiest way is to put your textbox inside an update panel like this: < asp : UpdatePanel ID ="updPanel" runat ="server" UpdateMode ="Conditional"> < ContentTemplate > < asp : TextBox ID ="txtDate" runat ="server" /> </ ContentTemplate > < Triggers > < asp : AsyncPostBackTrigger ControlID ="DropDownList" EventName ="SelectedIndexChanged" /> </ Triggers > </ asp : UpdatePanel >
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
oswaldorb
on 12/13/2007
Re: ASP.NET AJAX UpdatePanel and Session Timeout
Did you try the solution I gave you? Works for me and my UpdatePanels
Posted to
ASP.NET AJAX UI
(Forum)
by
oswaldorb
on 12/13/2007
Re: ASP.NET AJAX UpdatePanel and Session Timeout
You can use this code on every page of the app, or just create a base calls for all your pages that need to check for session timeout : protected override void OnPreInit( EventArgs e) { base .OnPreInit(e); if (Context.Session != null ) { if (Session.IsNewSession) { string cookieHeader = Request.Headers[ "Cookie" ]; if (! String .IsNullOrEmpty(cookieHeader) && cookieHeader.IndexOf( "ASP.NET_SessionId" ) >= 0) { Response.Redirect( "~/SessionExpiredPage.aspx"
Posted to
ASP.NET AJAX UI
(Forum)
by
oswaldorb
on 12/12/2007
Re: Load user controls dinamically using update panel problem
You are right. Thansk a lot.
Posted to
Web Forms
(Forum)
by
oswaldorb
on 12/7/2007
Re: Load user controls dinamically using update panel problem
I re-add the control everytime I click on the button. So you're saying that because I do not added on the Init event, the problem is the event itself, not the update panel?
Posted to
Web Forms
(Forum)
by
oswaldorb
on 11/29/2007
Load user controls dinamically using update panel problem
So, here I am asking for help. This is what I'm trying to do: Have an update panel, that has a button as a trigger. When I click in that button, in the event handles I get a user control like this: MyControl uc = this.LoadControl('~/UserControls/MyControl.ascx') as MyControl; and then I add it to the update panel like this: updatePanel. ContentTemplateContainer.Controls.Add(uc); and voila! the control shows up. Now, let's say I have a button in the control, and a label in an update
Posted to
Web Forms
(Forum)
by
oswaldorb
on 11/29/2007
Filed under: UpdatetePanel UserControls LoadControls Dynamically load user controls
Re: User Control controls not created when dynamically creating user control
You don't have to do the extra step. You can just do: ucDataVariableValue newDataVariable = ( ucDataVariableValue ) LoadControl( "~/UserControls/ucDataValue.ascx" ); if you put a break point in the constructor of your user control, you'll see that when this line of code is executed, it will call your constuctor. Besides, this method initializes the components of your user control, and does some extra steps for you. I always use this method to load dynamically user controls.
Posted to
Web Forms
(Forum)
by
oswaldorb
on 11/29/2007
LoadControl in update panel Problems
So, here I am asking for help. This is what I'm trying to do: Have an update panel, that has a button as a trigger. When I click in that button, in the event handles I get a user control like this: MyControl uc = this.LoadControl('~/UserControls/MyControl.ascx') as MyControl; and then I add it to the update panel like this: updatePanel. ContentTemplateContainer.Controls.Add(uc); and voila! the control shows up. Now, let's say I have a button in the control, and a label in an update
Posted to
Web Forms
(Forum)
by
oswaldorb
on 11/28/2007
Filed under: updatepanel LoadControl dymanic user control
Re: getting js return = to .net control
var newValue = hidden(); document.getElementById('Hid1').value = newValue; if the hidden field is an asp:HiddenField, the do document.getElementById('<%=Hid1.ClientId %>').value = newValue; hope this helps
Posted to
Web Forms
(Forum)
by
oswaldorb
on 11/28/2007
Re: Cancel selecting a TabPanel
Thanks a lot Wim. I really don't know how I missed that. BTW, have you ever tried to make a dragabble TabPanel.. I've looking for it and I guess no one has tried!! Anyway, thanks for the help again!
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
oswaldorb
on 11/20/2007
Page 1 of 3 (28 items) 1
2
3
Next >
WindowsClient:
Tale of two tweets - VS beta - is it busy 70% of the time or is it brilliantly fast?
Mix Online:
Using the HTML5 Video and Audio Tag with Gestalt
WindowsClient:
Subclassing Shape (or more accurately, Path)
WindowsClient:
Having trouble deleting files? Try this
Channel 9:
Nick Baker: Xbox Architecture
TechNet Edge:
Thrive Live! Behavioral Interviewing: A behavioral answer is always the correct answer
ASP.NET:
PDC and Tech-Ed Europe Slides and Code
WindowsClient:
JScript location bar silliness
WindowsClient:
Anybody build a XAML parser in C or C++ yet?
WindowsClient:
Silverlight use, power and deployment keeps growing; so does WPF
ASP.NET:
T4CSS: A T4 Template for .Less CSS With Compression
WindowsClient:
JSON-P: An Elegant Hack
Channel 9:
Photosynth Update and New UI
Channel 9:
First Look: Streetside in Bing Maps
Channel 9:
Coding4Fun at PDC 2009
WindowsClient:
10 Must-See PDC 09 Sessions
Channel 10:
Photosynth Updated with New Release and New UI
Channel 10:
WindowsBlinds 7 Now Works with Windows 7
Channel 10:
Zune HD Launches New Colors
ASP.NET:
PDC09: ASP.NET MVC 2: Ninjas Still on Fire Black Belt Tips
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online