创建动态工作的广告横幅 [英] Creating an dynamically working ad banner

查看:76
本文介绍了创建动态工作的广告横幅的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。



我想使用.Net制作广告横幅,可以在任何网站轻松实施,并提供适当的服务器端功能(国家/地区 - 州 - 使用WCF从我们的服务器选择城市)。考虑到我们放置广告横幅的网站可以使用任何服务器端技术创建最佳方式。

Hi.

I want to create an ad banner using .Net which can be easily implemented in any web site and should provide proper server side functionality (Country - State - City selection from our server using WCF). What should be the best way to do it considering the site where we put the ad banner on could be created using any server side technology.

推荐答案

您可以添加控件在服务器端。



在服务器端,您必须先找到占位符。 (例如:div,form)

之后你可以打电话给你的网络服务并更改城市和其他变量。

然后你可以添加一个新的过程结束LiteralControl到你的占位符。



你可以使用如下:

You can add controls dinamically on serverside.

On serverside you have to find first of all your placeholder. (for example: div, form)
After you can call your webservice and change the city and the other variables.
And the end of the process you can add a new LiteralControl to your placeholder.

You can use this as the follows:
Control myPlaceHolder = FindControl("form1");

String City = "your city";

String yourBanner = "<asp:label runat=server id=\"yourBannerLabel\" text="\" + City + "\"></asp:label>";

myPlaceHolder.Controls.Add(new LiteralControl(yourBanner));





我希望我能帮到你!如果遗漏了某些内容,请告诉我。



I hope I could help you! Let me know if something is missing.


我无法控制要放置广告横幅的网站。它可以是ASP.Net,php或ASP站点。
I have no control over the site where the ad banner is going to be placed. It could be an ASP.Net, php or ASP site.


这篇关于创建动态工作的广告横幅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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