473,797 Members | 3,183 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1418
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********@hot mail.comwrote in message
news:11******** *************@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

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********@hot mail.comwrote in message
news:11******** *************@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


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*******@yaho o.yabbadabbadoo .comwrote in
message news:F2******** *************** ***********@mic rosoft.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********@hot mail.comwrote in message
news:11******* **************@ 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



Apr 11 '07 #5

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

Similar topics

0
1450
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 System.Security.SecurityException: Request Failed. This is the first control that I have had problems with using the Forms components.
0
1355
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 exe under IIS application folder 3) make the server URL full trust on client IE. 4) Make a html page which contain the URL above. While client the url in IE, sometime it work but sometime doesn't.
1
1554
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 that what MS refers to as a "SmartClient" app? Thanks for any direction on this.
2
2216
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 I thought I had solved. For example, let's say I wanted to do this: http://myserver/appdir/mywinformapp.exe?username=joe&age=12 Providing code access security permissions allow it, mywinformapp.exe is downloaded to the client and launches...
0
1199
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 able to get to pass parameters into it. I found a way to do this though the Environment.GetCommandLineArgs(); method call and passing in attributes just as I would with an ASP or ASP.NET page (e.g. http://myserver/myapp.exe?name=jdeats&age=27)I...
0
1168
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
1060
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 config file. This is where I have a number of keys with SQL CMDs as the values. It gives no errors but the result is always a empty string. 3 of the other PCs have the .Net Dev IDE installed on them. The 4th not sure if the IDE is on it or not.
1
1060
by: Fairweather | last post by:
smartclient test
3
1581
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 smartclient use up memory? Best regard navyliu
1
1238
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 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? ...
0
10246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10209
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.