SmartClient - ASP.NET Issue

M

Mike

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
 
M

Marc Gravell

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
 
E

Eliyahu Goldin

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
 
G

Guest

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 said:
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 said:
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
 
E

Eliyahu Goldin

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]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Peter Bromberg said:
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 said:
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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top