C# 中具有区域设置的应用程序中的广告

发布于 2024-12-29 03:45:39 字数 305 浏览 2 评论 0原文

在我的应用程序中,我有显示广告的弹出窗口。但我想这样做,例如在德国将以德语显示广告,在法国以法语显示广告等。我有 WebBrowser 组件,我将带有 html 文件路径的 Uri url 传递给我的服务器上的广告。

this.webBrowser.Url = new Uri("http://mydomain.com/ads/ad2.html");

在 ad2.html 中,我可以识别 ip,并基于此我可以重定向到适当的 html 文件。 问题是,在应用程序中,当网站重新加载时,我听到声音(tik)。

谢谢

In my application I have popup where ad is showing. But I want to do that in for example Germany will be showed ad in german language, in France in French language etc. I have WebBrowser component and I pass to Uri url with path of html file with ad which is placed on my serwer.

this.webBrowser.Url = new Uri("http://mydomain.com/ads/ad2.html");

In ad2.html I can do recognition of ip and based on this I can redirect to appropriate html file.
The problem is that in application I hear voice (tik) when site is reloading.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文