国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

Creating and displaying a DataSet in Dreamweaver M

2024-07-21 02:27:59
字體:
來源:轉載
供稿:網友
the new .net server model in dreamweaver mx lets you leverage the power of the .net framework in a visual environment.  anyone that is familiar with ultradev's recordset server behavior will feel very comfortable moving to .net's dataset.  even if you have never worked with dreamweaver, this tutorial will show you how easy it is.
first off, we need to create a connection to the database.  this is done in the databases tab in the files panel.  you can choose between two different types of connections
  • oledb connection
  • sql server connection

odbc, although somewhat supported in the .net framework as a separate download, was left out of this release.  this is probably a good thing because almost every major database has oledb drivers on the windows platform.  odbc is not as fast as oledb, which is probably why microsoft chose to "barely" support it as a separate download.  if you are using sql server as your database, then the sql server connection is the only way to go as it offers performance advantages.
we will be creating a sql server connection in this tutorial because that is what i am working with.  the oledb connection is not much different other than the fact that you can bring up the microsoft data link dialog. 
  1. click the +icon in the databases panel
  2. choose sql server connection
  3. fill out the information for your database in the provided template

once you are done, you will see a tree view of your database that lets you explore tables, views, and stored procedures.
the next step is to apply the dataset server behavior.
  1. click the + icon in the server behaviors panel
  2. choose dataset
  3. name your dataset
  4. choose your connection
  5. choose the table and fields you want to retrieve

this is the exact same interface as the asp server model so as i mentioned before, transitioning to .net development will be easy if you come from an asp background.
after you have created the dataset, you will find that the contents of the datset are displayed in the bindings panel. you can drag each field over to the page you are working in, and place it wherever it needs to go in your design.  once you have laid our your design, you can apply the repeat region server behavior.
  1. highlight the items you just placed on the page.
    make sure you take into consideration page breaks, whether that be as <br /> at the end, <p></p> around the selection, or within <tr></tr> tags.
  2. click the + icon in the server behaviors tab.
  3. choose repeat region

behind the scenes, dreamweaver actually places the contents of your selection within <asp:repeater> tags.  
it's as simple as that, once you do this a couple of times, it becomes second nature, so you can focus on building your applications, instead of remembering esoteric object p
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 北票市| 洛南县| 同心县| 无极县| 新宾| 新郑市| 伊春市| 和硕县| 顺义区| 崇明县| 黄山市| 郧西县| 普陀区| 五寨县| 望都县| 聂拉木县| 永平县| 嘉禾县| 香河县| 泸西县| 浮山县| 新丰县| 云林县| 南安市| 灌阳县| 陆良县| 读书| 全椒县| 库尔勒市| 五寨县| 桐柏县| 吴江市| 大连市| 维西| 上蔡县| 宽城| 铜鼓县| 凤城市| 锡林浩特市| 庄浪县| 延吉市|