473,320 Members | 2,202 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

Apr 11 '07 #1
4 1121
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
Apr 11 '07 #2
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" <mi********@hotmail.comwrote in message
news:11*********************@y5g2000hsa.googlegrou ps.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

Apr 11 '07 #3
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" <mi********@hotmail.comwrote in message
news:11*********************@y5g2000hsa.googlegrou ps.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


Apr 11 '07 #4
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 [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:F2**********************************@microsof t.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" <mi********@hotmail.comwrote in message
news:11*********************@y5g2000hsa.googlegro ups.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



Apr 11 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Simon Holderness | last post by:
Can you tell me if it is possible to use the PropertyGrid control in a SmartClient deployed through IE, without modifying the security policy. The error I get is ...
0
by: Sidney Zhang | last post by:
Hi: I got a very strange problem while using my dotNet SmartClient exe in IE. (One Click Deployment.) What we did are 1) a C# dotNet exe, very small, just for testing. around 492K. 2) put the...
1
by: Lauren Quantrell | last post by:
Obviously a newbie question but: Is a .Net app automatically a "SmartClient" app? If I build a frontend in VB.Net or C+.Net and use a SQL Server backend (assuming some sort of ADO.NET involved) is...
2
by: JDeats | last post by:
I have a WinForms based application that I'm launching over http (Microsoft's buzz word for this is aparently "SmartClient"). I had an issue trying to get parameters passed in through the URL that...
0
by: JDeats | last post by:
I have a WinForms application that I'm trying to deploy as a "SmartClient" (where .exe downloads and auto launches from IE using ..NET IEExec process). Part of my criteria for the app is to be...
0
by: virgo81 | last post by:
hi~ I made smartclient. First, I made a StrongNamed Key(snk file). I add my key file and set allow partiallytrustedcllers.
0
by: Deasun | last post by:
Good morning, Hope someone out there can help. I have 5 PCs that hit my intranet server. All 5 will run the smartclient from the webpage. One of the PCs does not seem to be reading the apps...
1
by: Fairweather | last post by:
smartclient test
3
by: navyliu | last post by:
I have raised a discussion about assembly unloading.But we can't get a final solution. Since we cannot unlaod a assembly,Is there any reference about this indicate that this problem won't make...
1
by: Mike | last post by:
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.