VB.NET - Web App - 强制页面刷新 [英] VB.NET - Web App - Force Page Refresh

查看:340
本文介绍了VB.NET - Web App - 强制页面刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨:


我有一个VB.NET Web应用程序,我需要找到一种方法来从我的应用程序中刷新页面

刷新。


有谁知道如何强制浏览器刷新当前页面?


非常感谢您的帮助!


Fred

解决方案

Fred Nelson写道:

嗨:

我有一个VB.NET Web应用程序,我需要找到一种方法来从我的应用程序中刷新页面。

有谁知道如何强制浏览器刷新当前页面?

非常感谢您的帮助!

Fred



(未经测试)


AxWebBrowser2.ExecWB(SHDocVw.OLECMDID.OLECMDID_REF RESH,

SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)


-

- Mitchell Vincent

- KBilling - 发票变得轻松!

- http://www.k-billing.com


Hi Mitchell :


感谢您的帮助 - 我认为我们非常接近。


我在MSDN上搜索了ExecWb并找到了一些信息但是我我还是输了。


在我的代码页面后面我会执行你给我的命令:


我在猜它将是这样的:

暗淡AxWebBrowser2为(某物)


AxWebBrowser2.ExecWB(命令)

再次感谢您的支持帮助!


Fred

" Mitchell Vincent" < MV ****** @ newsgroup.nospam>在消息中写道

新闻:OA ************** @ tk2msftngp13.phx.gbl ...

Fred Nelson写道:< blockquote class =post_quotes>嗨:

我有一个VB.NET Web应用程序,我需要找到一种方法来从我的应用程序中刷新页面。

有谁知道如何强制浏览器刷新当前页面?

非常感谢你的帮助!

Fred


(未经测试)

AxWebBrowser2.ExecWB(SHDocVw.OLECMDID.OLECMDID_REF RESH,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)

-
- Mitchell Vincent
- KBilling - 发票变得简单!
- http:/ /www.k-billing.com



将其添加到页眉中,每5分钟刷新一次。

< meta http-equiv =" refresh" content =" 300">


On Thu,2005年3月17日10:35:45 -0500,Fred Nelson

< fr **@smartybird.com>写道:

嗨:

我有一个VB.NET Web应用程序,我需要找到一种方法来使页面从内部刷新我的申请。

有谁知道如何强制浏览器刷新当前页面?

非常感谢你的帮助!

Fred




Hi:

I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.

Does anyone know how to force the browser to refresh the current page?

Thanks very much for your help!

Fred

解决方案

Fred Nelson wrote:

Hi:

I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.

Does anyone know how to force the browser to refresh the current page?

Thanks very much for your help!

Fred


(untested)

AxWebBrowser2.ExecWB(SHDocVw.OLECMDID.OLECMDID_REF RESH,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com


Hi Mitchell:

Thanks for your help - I think we are very close.

I have searched MSDN for the ExecWb and found some info but I''m still lost.

Where in my code behind page would I execute the command you gave me:

I''m guessing it would be something like:
dim AxWebBrowser2 as (something)

AxWebBrowser2.ExecWB(command)
Thanks again for your help!

Fred
"Mitchell Vincent" <mv******@newsgroup.nospam> wrote in message
news:OA**************@tk2msftngp13.phx.gbl...

Fred Nelson wrote:

Hi:

I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.

Does anyone know how to force the browser to refresh the current page?

Thanks very much for your help!

Fred


(untested)

AxWebBrowser2.ExecWB(SHDocVw.OLECMDID.OLECMDID_REF RESH,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com



Add this to the page headers to refresh every 5 minutes.

<meta http-equiv="refresh" content="300">

On Thu, 17 Mar 2005 10:35:45 -0500, "Fred Nelson"
<fr**@smartybird.com> wrote:

Hi:

I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.

Does anyone know how to force the browser to refresh the current page?

Thanks very much for your help!

Fred




这篇关于VB.NET - Web App - 强制页面刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆