SmartClient - ASP.NET Issue

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

    #1

    SmartClient - ASP.NET Issue

    Greetings, I have an aspx page where on it is a link that calls my
    smartclient (a windows form) that opens up. When the user is done in
    the form, he or she hits a button that saves data and closes the
    form. I want the smartclient to call the opened browser (IE6 and
    maybe 7 down the line) and refresh the aspx page. The page contains a
    datagrid control that gets populated on the page's load event. Does
    anyone know how you can do that? Is there an Windows API call that I
    can use to tell the web browser window to refresh? Any help would be
    great.

    Thanks, Mike

  • Marc Gravell

    #2
    Re: SmartClient - ASP.NET Issue

    If the smart-client hosts the web-client (via WebBrowser) then you can
    do a lot of automation in both directions. If not, then not so much
    AFAIK.

    Marc


    Comment

    • Eliyahu Goldin

      #3
      Re: SmartClient - ASP.NET Issue

      Mike,

      I know very little about Windows API to control browsers neither I know much
      about smartclients. But I can offer a general work around. You can exchange
      data or commands between any processes by sharing a common resource, for
      example a file.

      When the form is done, it can write a file in a preset location. On the
      browser side, you can start a javascript timer that will check if the file
      is present or not. If it is, the form must have finished and the browser can
      refresh itself.

      --
      Eliyahu Goldin,
      Software Developer & Consultant
      Microsoft MVP [ASP.NET]




      "Mike" <mike_palko@hot mail.comwrote in message
      news:1176296540 .056192.24310@y 5g2000hsa.googl egroups.com...
      Greetings, I have an aspx page where on it is a link that calls my
      smartclient (a windows form) that opens up. When the user is done in
      the form, he or she hits a button that saves data and closes the
      form. I want the smartclient to call the opened browser (IE6 and
      maybe 7 down the line) and refresh the aspx page. The page contains a
      datagrid control that gets populated on the page's load event. Does
      anyone know how you can do that? Is there an Windows API call that I
      can use to tell the web browser window to refresh? Any help would be
      great.
      >
      Thanks, Mike
      >

      Comment

      • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

        #4
        Re: SmartClient - ASP.NET Issue

        Eliyahu,
        That sounds great in principle, but why would the browser be allowed to
        access the local filesystem from a web page it requested from a remote
        location, other that to read or write cookies?
        Peter

        --
        Site: http://www.eggheadcafe.com
        UnBlog: http://petesbloggerama.blogspot.com
        Short urls & more: http://ittyurl.net




        "Eliyahu Goldin" wrote:
        Mike,
        >
        I know very little about Windows API to control browsers neither I know much
        about smartclients. But I can offer a general work around. You can exchange
        data or commands between any processes by sharing a common resource, for
        example a file.
        >
        When the form is done, it can write a file in a preset location. On the
        browser side, you can start a javascript timer that will check if the file
        is present or not. If it is, the form must have finished and the browser can
        refresh itself.
        >
        --
        Eliyahu Goldin,
        Software Developer & Consultant
        Microsoft MVP [ASP.NET]


        >
        >
        "Mike" <mike_palko@hot mail.comwrote in message
        news:1176296540 .056192.24310@y 5g2000hsa.googl egroups.com...
        Greetings, I have an aspx page where on it is a link that calls my
        smartclient (a windows form) that opens up. When the user is done in
        the form, he or she hits a button that saves data and closes the
        form. I want the smartclient to call the opened browser (IE6 and
        maybe 7 down the line) and refresh the aspx page. The page contains a
        datagrid control that gets populated on the page's load event. Does
        anyone know how you can do that? Is there an Windows API call that I
        can use to tell the web browser window to refresh? Any help would be
        great.

        Thanks, Mike
        >
        >
        >

        Comment

        • Eliyahu Goldin

          #5
          Re: SmartClient - ASP.NET Issue

          Peter,

          I assume the remote site will be granted a special security anyway since it
          will have to start a windows form application. If so, accessing the local
          file system can be allowed too.

          --
          Eliyahu Goldin,
          Software Developer & Consultant
          Microsoft MVP [ASP.NET]




          "Peter Bromberg [C# MVP]" <pbromberg@yaho o.yabbadabbadoo .comwrote in
          message news:F2004EF3-976C-4421-92F3-020EDC091F49@mi crosoft.com...
          Eliyahu,
          That sounds great in principle, but why would the browser be allowed to
          access the local filesystem from a web page it requested from a remote
          location, other that to read or write cookies?
          Peter
          >
          --
          Site: http://www.eggheadcafe.com
          UnBlog: http://petesbloggerama.blogspot.com
          Short urls & more: http://ittyurl.net
          >
          >
          >
          >
          "Eliyahu Goldin" wrote:
          >
          >Mike,
          >>
          >I know very little about Windows API to control browsers neither I know
          >much
          >about smartclients. But I can offer a general work around. You can
          >exchange
          >data or commands between any processes by sharing a common resource, for
          >example a file.
          >>
          >When the form is done, it can write a file in a preset location. On the
          >browser side, you can start a javascript timer that will check if the
          >file
          >is present or not. If it is, the form must have finished and the browser
          >can
          >refresh itself.
          >>
          >--
          >Eliyahu Goldin,
          >Software Developer & Consultant
          >Microsoft MVP [ASP.NET]
          >http://msmvps.com/blogs/egoldin
          >http://usableasp.net
          >>
          >>
          >"Mike" <mike_palko@hot mail.comwrote in message
          >news:117629654 0.056192.24310@ y5g2000hsa.goog legroups.com...
          Greetings, I have an aspx page where on it is a link that calls my
          smartclient (a windows form) that opens up. When the user is done in
          the form, he or she hits a button that saves data and closes the
          form. I want the smartclient to call the opened browser (IE6 and
          maybe 7 down the line) and refresh the aspx page. The page contains a
          datagrid control that gets populated on the page's load event. Does
          anyone know how you can do that? Is there an Windows API call that I
          can use to tell the web browser window to refresh? Any help would be
          great.
          >
          Thanks, Mike
          >
          >>
          >>
          >>

          Comment

          Working...