Help is needed..To open the form in same window..static controls

Last post 03-07-2007 3:23 AM by Jessica Cao - MSFT. 4 replies.

Sort Posts:

  • Help is needed..To open the form in same window..static controls

    03-06-2007, 1:04 PM
    • Loading...
    • miaaa00
    • Joined on 03-06-2007, 4:56 PM
    • Posts 39

    Hello frdz,

             I m a begginer and creating a website on ASP.Net with C# .
     

             I have created 3diff user controls.

    headercontrol.ascx (which contains the images and logo)

    leftmenucontrol.ascx(which contains the static menu once user login)

    midmenucontrol.ascx(which contains the link of home,contactus)

             I have put these 3usercontrols in the form name default.aspx

    Now,my problem is that how can i open the different forms under the default.aspx when i click on the leftmenucontrols which i have created.

    The default.aspx is just like the T shape.Now on the right side of which i want to open the different forms and wanted to keep all the 3controls static.I don't have idea what cld be done to do this...

    Can anyone pls provide me some idea or source code where and what to write to do this...Is Frameset possible if yes,then do pls provide the code..

    Thanxs.......if u understand...read...my problem......and then try to answer to it..........

     

    Waiting for the reply......



     

     

     


     

  • Re: Help is needed..To open the form in same window..static controls

    03-06-2007, 2:10 PM
    • Loading...
    • Girijesh
    • Joined on 10-27-2005, 12:04 PM
    • India
    • Posts 638
  • Re: Help is needed..To open the form in same window..static controls

    03-06-2007, 2:12 PM
    • Loading...
    • Girijesh
    • Joined on 10-27-2005, 12:04 PM
    • India
    • Posts 638
  • Re: Help is needed..To open the form in same window..static controls

    03-06-2007, 2:16 PM
    • Loading...
    • Krokador
    • Joined on 02-27-2007, 1:17 PM
    • Posts 65

    Or instead of putting your controls on the default.aspx page, make a master page, and put up a contentplaceholder to load the different forms on different pages? Or you can use an url paramter to determine which form you,re gonna show on your default.aspx page and handle it in the page_load sub

    select case request.querystring("formid")

    case 1

        form1.visible = true
    case 2
        form2.visible = true

    ...

    end select

     but I think the master page with different pages might match your idea better, and make it easier to add other forms later. Hope that helps.
     

    The best way to succeed is to take small steps. You can't take small steps if you're running, so take your time, take a few steps back, and everything will work out fine.
  • Re: Help is needed..To open the form in same window..static controls

    03-07-2007, 3:23 AM
    Answer

    hello friend,

    using frames will help you solve the problem. refer to the following link

    http://faculty.lagcc.cuny.edu/DotTextWeb/giany/archive/2005/05/15/185.aspx

    hope it helps,

    Jessica 

    Jessica Cao
    Sincerely,
    Microsoft Online Community Support


    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (5 items)
Microsoft Communities
Page view counter