Search

You searched for the word(s): userid:716781

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 >
  • 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 >