如何调用绑定下拉列表项的连接字符串 [英] how to call connection string that bind the dropdown list item

查看:77
本文介绍了如何调用绑定下拉列表项的连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有多个网页,每个网页上都有下拉列表控件.我想在webconfig中配置连接,因此对我来说,只需调用该连接将项目绑定到下拉列表会更容易.我不必选择数据每个页面的来源.

是否可以做到这一点?用于服务器开发网页的服务器即时通讯是在sql中.但是只有下拉列表的数据源是从oracle调用的.我成功地调用了将数据插入到server的sql连接.但是对于databind我却没有知道如何完成它.


Hi,

I have multiple web pages that have dropdown list control on every single page.i want to configure the connection in the webconfig so it will be easier for me to just call the connection to bind the item to dropdown list.i dont have to choose data source for every single page.

is it possible to make it?fyi the server im using to develop web pages is in sql.but only the datasource for dropdown list is call from oracle.i succeed to call the sql connection for inserting data to server.but for databind i dont know how to complete it.


thanks.

推荐答案

最简单的方法是在下拉控件(小箭头)上使用SmartTag下拉菜单,并逐步完成向导以设置您的联系.它会询问您是否要将其保存在Web.Config中,如果您要保存,它将可用于其他所有文件.

或者,您也可以手动添加它.
The easiest way to do that is to use the SmartTag drop down on the drop down control (the little arrow) and walk through the Wizard to setup your connection. It will ask if you want to save it in Web.Config and if you do it will then be available for all of the others.

Or, you can just add it manually too.


这篇关于如何调用绑定下拉列表项的连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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