locked
Need help to design usercontrols RRS feed

  • Question

  • User522004677 posted

    Hello,

    There is a page called Article.aspx.
    This page loads according to the ArticleID, data from database, title abstract, body and etc...

    In that page there are about 20 controls that builds that page.

     

    What I need is a quick access from inside this controls to the data in the Article.ASPX page.

    What is the best way to achieve that?

    I am looking for a good design, I have a mess inside this controls. passing data is not an easy task to do, and I don't want to define for each control parameters (ArticleID, Abstract and so on)...

    Please advice.

     

    Monday, January 25, 2010 8:25 AM

Answers

  • User522004677 posted
    http://aspalliance.com/67_Accessing_Page_Properties  


     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 25, 2010 11:32 PM

All replies

  • User-1659704165 posted

    Hi,

    u may use find control if control is kept inside usercontrol ..

    http://msdn.microsoft.com/en-us/library/486wc64h.aspx

    http://msdn.microsoft.com/en-us/library/xxwa0ff0.aspx

    Monday, January 25, 2010 8:36 AM
  • User522004677 posted

    Hi,

    u may use find control if control is kept inside usercontrol ..

    http://msdn.microsoft.com/en-us/library/486wc64h.aspx

    http://msdn.microsoft.com/en-us/library/xxwa0ff0.aspx

     

    I think you misunderstood...

    I am looking for a way to access the aspx page from inside usercontrol....

    Monday, January 25, 2010 10:09 AM
  • User-1659704165 posted

    if talking about Acess textBox from parent aspx in Usercontrol.. the also u May use findcontrol..


    Monday, January 25, 2010 12:28 PM
  • User522004677 posted
    http://aspalliance.com/67_Accessing_Page_Properties  


     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 25, 2010 11:32 PM