Search

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

Matching Posts

  • Re: BookMark a Page State

    Any suggestion??
    Posted to State Management (Forum) by danfcosta on 3/31/2008
  • Re: BookMark a Page State

    I think that I might save data in Session. But, what I really need is save the state of page to be recovered in another moment. For example, I have the flow: 1) System presents Search Page (with form) 2) User do a Search 3) System presents the search results (grid) 4) User select a grid item 5) System presents the details page of selected item 6) User select back option (button) 7) System presents the search results (this page must be the same of item 3, and it only can be done if the state of page
    Posted to State Management (Forum) by danfcosta on 3/26/2008
  • BookMark a Page State

    Hi all! I have a, may be, common doubt: How the best way to save the state of a page to be recovered in another time? For example: I do some action (with postback) in an ASPX and I change to another ASPX. Then I to first ASPX. I'd like that this page be load with its last state. How can I do that?
    Posted to State Management (Forum) by danfcosta on 3/24/2008
  • Re: Custom Button Property

    You can use the code bellow. If you need keep saved the data you set into properties, you may use ViewState or ControlState. This, you must overrides the methods that control the state. [ToolboxData( "&lt;{0}:MyCustomButton runat=\" server\ "&gt;</{0}:MyCustomButton>" )] public class MyCustomButton : System.Web.UI.WebControls.Button { private string _MyCustomProperty; public string MyCustomProperty { get { return _MyCustomProperty; } set { _MyCustomProperty = value
    Posted to Custom Server Controls (Forum) by danfcosta on 3/19/2008
  • Error on IPageableItemContainer

    Hi all! I'm creating a control that implements IPageableItemContainer . It's simple, but it won't works as it could do. I put on page a DataPager with "Preview" and "Next". When I clin on "Next" the control show the "second" page, but the DataPage don't change itself ("Preview" still disabled and page number still "1"). I put the members that implements IPageableItemContainer below. The _DataSource object is a PagedDataSource
    Posted to Custom Server Controls (Forum) by danfcosta on 3/14/2008
    Filed under: IPageableItemContainer DataPager
  • Re: Custom Controlo not working in Master Pages

    Hi! Inspite of you Implements IPostBackEventHandler, you may implements INamingContainer. public class WebCustomControl1 : TextBox, INamingContainer Then, you set the handler on OnInit (as already done) protected override void OnInit(EventArgs e) { base .OnInit(e); this .MyEvent += new OnAccept(Test); } This approach, assumes that you are handling some event of your control, e.g. event Click of Button webcontrol. It's most common and you can use less code. But, if you want execute the code at
    Posted to Custom Server Controls (Forum) by danfcosta on 3/7/2008
  • Re: custom update panel with event

    If you want to create a custom UpdatePanel, your class should inherit from UpdatePanel. What is your real need? You should create a MasterPage and add an UpdatePanel inside. And, inside UpdatePanel you put a ContentPlace. Thus, all events handled in the pages that uses the MasterPage will execute inside the UpdatePanel. Explain your real need to we understand and provide a worthwhile suggestion!!
    Posted to Custom Server Controls (Forum) by danfcosta on 3/7/2008
  • Re: Custom controls in Express 2005

    Hi! I put a very single code in this post http://forums.asp.net/t/1230183.aspx I may it helps you. I shoud look for (at google) by Custom WebControl or CompositeControl. When you create a custom webcontrol, generally, you will inherit from Control or WebControl (if it'a a single control) or from CompositeControl (if you control has some controls inside).
    Posted to Custom Server Controls (Forum) by danfcosta on 3/7/2008
  • Re: Event Creation

    Hi! See the single code below. I think it will helps you understand "how stuff works". I user the EventHandler from .NET. But you can create a custom Delegate, if there are some custom codes. using System; using System.Web.UI.WebControls; public class TestComposite : System.Web.UI.WebControls.CompositeControl { //Declare and instantiate a new Button private Button MyButton = new Button(); //Declate the public event public event EventHandler OnMyButtonClick; //Constructor: set the Method
    Posted to Custom Server Controls (Forum) by danfcosta on 3/7/2008
  • Re: "Page.ClientScript.GetWebResourceUrl" does not work

    Hum... According your examples and tests I had done, then I conclude that the images (or other resources) must be in project root. That's correct? All examples I tried, my images was in Resource folder in both VB and C# projects, but in C# it works. When I change (in VB) to root folder it works fine. Very strange! I'll do more tests to try to find something else. Thank you very very much !!!!!!
    Posted to Custom Server Controls (Forum) by danfcosta on 3/6/2008
Page 1 of 3 (27 items) 1 2 3 Next >