general ASP.NET web programming question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    general ASP.NET web programming question

    I am running into situtations where confining all forms to just one window
    (instance of broswer) is becoming overly restrictive. Does ASP.NET provide
    ways to have multiple windows to interact with each other (For example, use
    a "child" window to fill out an order item. Once the save button is
    pressed, the "main" window reflects the newly added item (automatically
    refreshes from the database)

    I know that the popup calendar control can do something similar, but I need
    something more elaborate than a simple pop up calendar control to fill out a
    date fields.

    Another general question: Java script or VB script? I can require everyone
    in the user community to use Explorer only, so cross platform issues aren't
    important for me. Can VB script interact with server controls some how? I
    don't have any experience in VB script....

    It seems like my web applications have outgrown ASP.NET server controls, and
    most of my customers prefer web forms over windows, which means the
    importance of rich web controls is increasing. Thanks in advance.



  • Scott M.

    #2
    Re: general ASP.NET web programming question

    See responses inline:


    "David" <spammersgohome @spammers.go.ho me.com> wrote in message
    news:coBWb.4135 $jf.1584@twiste r.socal.rr.com. ..[color=blue]
    > I am running into situtations where confining all forms to just one window
    > (instance of broswer) is becoming overly restrictive. Does ASP.NET[/color]
    provide[color=blue]
    > ways to have multiple windows to interact with each other (For example,[/color]
    use[color=blue]
    > a "child" window to fill out an order item. Once the save button is
    > pressed, the "main" window reflects the newly added item (automatically
    > refreshes from the database)[/color]

    An ASP.NET page posts its data back to itself. That is the architecture and
    while it may be something to get used to, you really should try. It is very
    simple to determine if the page is rendering for the first time or
    responding to data being submitted (postback), so it is also very easy to
    render the page in entirely different ways for each situation.

    Having said that, there are certainly still times when it is necessary to
    pass data from one page to another and you can do that using many of the
    same techniques we've always had:

    Server.Transfer ()
    QueryStrings
    Cookies
    Session Variables
    DataBase Storage
    Traditional Form (without runat=server)

    [color=blue]
    >
    > I know that the popup calendar control can do something similar, but I[/color]
    need[color=blue]
    > something more elaborate than a simple pop up calendar control to fill out[/color]
    a[color=blue]
    > date fields.[/color]

    The calendar control is not a "popup" control.
    [color=blue]
    >
    > Another general question: Java script or VB script? I can require[/color]
    everyone[color=blue]
    > in the user community to use Explorer only, so cross platform issues[/color]
    aren't[color=blue]
    > important for me. Can VB script interact with server controls some how?[/color]
    I[color=blue]
    > don't have any experience in VB script....[/color]

    Even though you can dictate the client, I'd still recommend using JavaScript
    as it is the industry standard for client-side scripting. Even MS has
    VS.NET default to JavaScript as its default client scripting language.

    Regardless of the scripting language you choose, you can not have client
    side code have any effect on server side controls. They each execute their
    respective code at completely different times and by the time the client
    gets a chance to do its thing, the server is finished with its processing.
    [color=blue]
    >
    > It seems like my web applications have outgrown ASP.NET server controls,[/color]
    and[color=blue]
    > most of my customers prefer web forms over windows, which means the
    > importance of rich web controls is increasing. Thanks in advance.
    >[/color]
    I really don't understand what you mean by your applications outgrowing
    ASP.NET server controls. Don't take this the wrong way, but hearing you say
    that makes me think that you haven't really had much exposure to ASP.NET
    and its server controls or much experience developing with them.

    Can you give us a specific example of what it is you are trying to do?
    Also, take a look at this page (which I think is in the ballpark of your
    question): http://www.pack96.org/Calendar/PackCalendar.aspx.

    The calendar is the ASP.NET Calendar server control. The page connects to
    SQL Server to pull event data. The data is placed in the calendar's correct
    day (during the calendar's DayRender event). The hyperlinks that cause the
    popup windows are created as JavaScript on the server and is simply passed
    down to the client (so they work just as normal client side JavaScript).


    Comment

    • Dilip Krishnan

      #3
      Re: general ASP.NET web programming question

      David,
      May be this site may point you to the right direction.



      Ive used some of these concepts, I could share some examples you need

      David wrote:
      [color=blue]
      > I am running into situtations where confining all forms to just one window
      > (instance of broswer) is becoming overly restrictive. Does ASP.NET provide
      > ways to have multiple windows to interact with each other (For example, use
      > a "child" window to fill out an order item. Once the save button is
      > pressed, the "main" window reflects the newly added item (automatically
      > refreshes from the database)
      >
      > I know that the popup calendar control can do something similar, but I need
      > something more elaborate than a simple pop up calendar control to fill out a
      > date fields.
      >
      > Another general question: Java script or VB script? I can require everyone
      > in the user community to use Explorer only, so cross platform issues aren't
      > important for me. Can VB script interact with server controls some how? I
      > don't have any experience in VB script....
      >
      > It seems like my web applications have outgrown ASP.NET server controls, and
      > most of my customers prefer web forms over windows, which means the
      > importance of rich web controls is increasing. Thanks in advance.
      >
      >
      >[/color]


      --
      Regards,
      Dilip Krishnan
      MCAD, MCSD.net
      dilipdotnet at apdiya dot com

      Comment

      • Kevin Spencer

        #4
        Re: general ASP.NET web programming question

        > I am running into situtations where confining all forms to just one window[color=blue]
        > (instance of broswer) is becoming overly restrictive. Does ASP.NET[/color]
        provide[color=blue]
        > ways to have multiple windows to interact with each other (For example,[/color]
        use[color=blue]
        > a "child" window to fill out an order item. Once the save button is
        > pressed, the "main" window reflects the newly added item (automatically
        > refreshes from the database)[/color]

        When you use the JavaScript window.open() command, it returns a handle to
        the child window created, so that JavaScript in the parent window can "see"
        and work with the child window. The child window has an "opener" property,
        which, if it is spawned in this way, will return a reference to the parent
        window. In this way, multiple browser instances on the client can "talk to"
        each other on the client machine.

        "David" <spammersgohome @spammers.go.ho me.com> wrote in message
        news:coBWb.4135 $jf.1584@twiste r.socal.rr.com. ..[color=blue]
        > I am running into situtations where confining all forms to just one window
        > (instance of broswer) is becoming overly restrictive. Does ASP.NET[/color]
        provide[color=blue]
        > ways to have multiple windows to interact with each other (For example,[/color]
        use[color=blue]
        > a "child" window to fill out an order item. Once the save button is
        > pressed, the "main" window reflects the newly added item (automatically
        > refreshes from the database)
        >
        > I know that the popup calendar control can do something similar, but I[/color]
        need[color=blue]
        > something more elaborate than a simple pop up calendar control to fill out[/color]
        a[color=blue]
        > date fields.
        >
        > Another general question: Java script or VB script? I can require[/color]
        everyone[color=blue]
        > in the user community to use Explorer only, so cross platform issues[/color]
        aren't[color=blue]
        > important for me. Can VB script interact with server controls some how?[/color]
        I[color=blue]
        > don't have any experience in VB script....
        >
        > It seems like my web applications have outgrown ASP.NET server controls,[/color]
        and[color=blue]
        > most of my customers prefer web forms over windows, which means the
        > importance of rich web controls is increasing. Thanks in advance.
        >
        >
        >[/color]


        Comment

        • David

          #5
          Re: general ASP.NET web programming question

          Thank you. I appreciate the link. Have you been able to compile their
          code? I couldn't
          [color=blue]
          > David,
          > May be this site may point you to the right direction.
          >
          > http://www.metabuilders.com/Tools/DialogWindow.aspx
          >
          > Ive used some of these concepts, I could share some examples you need
          >
          > David wrote:[/color]
          [color=blue]
          >
          > --
          > Regards,
          > Dilip Krishnan
          > MCAD, MCSD.net
          > dilipdotnet at apdiya dot com[/color]


          Comment

          • David

            #6
            Re: general ASP.NET web programming question

            I was looking to see if ASP.NET has built in support that does what you are
            talking about.
            [color=blue]
            >
            > When you use the JavaScript window.open() command, it returns a handle to
            > the child window created, so that JavaScript in the parent window can[/color]
            "see"[color=blue]
            > and work with the child window. The child window has an "opener" property,
            > which, if it is spawned in this way, will return a reference to the parent
            > window. In this way, multiple browser instances on the client can "talk[/color]
            to"[color=blue]
            > each other on the client machine.
            >[/color]


            Comment

            • David

              #7
              Re: general ASP.NET web programming question

              Scott, thanks for your reply. My only point is that web controls still lag
              behind windows controls in richness, but while my customers see the benefits
              of the web, they still want the richness of controls in par with windows.

              [color=blue]
              > I really don't understand what you mean by your applications outgrowing
              > ASP.NET server controls. Don't take this the wrong way, but hearing you[/color]
              say[color=blue]
              > that makes me think that you haven't really had much exposure to ASP.NET
              > and its server controls or much experience developing with them.
              >
              > Can you give us a specific example of what it is you are trying to do?
              > Also, take a look at this page (which I think is in the ballpark of your
              > question): http://www.pack96.org/Calendar/PackCalendar.aspx.
              >
              > The calendar is the ASP.NET Calendar server control. The page connects to
              > SQL Server to pull event data. The data is placed in the calendar's[/color]
              correct[color=blue]
              > day (during the calendar's DayRender event). The hyperlinks that cause[/color]
              the[color=blue]
              > popup windows are created as JavaScript on the server and is simply passed
              > down to the client (so they work just as normal client side JavaScript).
              >
              >[/color]


              Comment

              Working...