Search

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

Matching Posts

  • Re: ListBox and ViewState

    Check here for a detailed example: http://msdn2.microsoft.com/en-us/library/aa479403.aspx
    Posted to Web Forms (Forum) by sebastian.piu on 11/7/2007
  • Re: ListBox and ViewState

    You cannot get rid of the viewstate and keep the state of the listboxes. Viewstate is the responsible of keeping that data. What you can do is persist the viewstate in someplace else, like Session. This way the viewstate won't use space in your pages making them load faster. Specially with slow connections
    Posted to Web Forms (Forum) by sebastian.piu on 11/7/2007
  • Re: dynamic UserControl from ParentPage

    Best solution would be to do a public property on your user control that modifies the text property of the label. //Load the user control dynamically MyCustomUserControl myCustomUserControl= (MyCustomUserControl) LoadControl( "MyCustomUserControl.ascx" ); //set the text property myCustomUserControl.MyLabelText = "Hello" ; Where on MyCustomUserControl.cs you would have something like public string MyLabelText { get { return label1.Text; } set { label1.Text = value ;} } hope this
    Posted to Web Forms (Forum) by sebastian.piu on 11/7/2007
  • Re: ListBox and ViewState

    I´ve had similar problems with huge viewstates due to controls binded with lots of data. The solution I've implemented moves the viewstate to session. Check here for more info: http://msdn2.microsoft.com/en-us/library/system.web.ui.sessionpagestatepersister.aspx Hope this helps!
    Posted to Web Forms (Forum) by sebastian.piu on 11/7/2007
  • Re: ListBox and ViewState

    Sorry clicked two times, see post below :)
    Posted to Web Forms (Forum) by sebastian.piu on 11/7/2007
  • Re: UI for Database design

    Hi I believe that what you saw is the "Server Explorer" view in visual studio. You can see this panel selecting "Server Explorer" under the View menu in visual Studio 2005. then all you need to do is add the database to the data connections node.
    Posted to Getting Started (Forum) by sebastian.piu on 11/7/2007
  • Re: CurrentUICulture get's reseted

    if you want to force it to culture sv-SE, you should edit your web.config and set it there, otherways, culture must be set on every page request. Pages has an eventhandler called InitializeCulture .. there is where you should change it. ( be carefull as this is very early on the page cycle, you dont have session at that stage yet) Hope it helps
    Posted to Localization (Forum) by sebastian.piu on 7/28/2006
  • Re: How to do a language switch in a master page.

    Check this basepage i've made, hope it helps .. ctl00$ddlLanguage is a dropdown that the user uses to switch cultures (this can be tweaked a bit). It should work with pages that use or don't a master page. If a culture change is detected OnCultureChange event is raised using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls;
Page 1 of 1 (8 items)