473,395 Members | 2,795 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,395 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 1396
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.