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

首頁 > 開發 > 綜合 > 正文

Creating and displaying a DataSet in Dreamweaver M

2024-07-21 02:22:07
字體:
來源:轉載
供稿:網友

creating and displaying a .net dataset


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 properties.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 祥云县| 日喀则市| 蓝田县| 偏关县| 宁都县| 定陶县| 彰化县| 盘山县| 阆中市| 南乐县| 綦江县| 建阳市| 连江县| 图们市| 龙海市| 永寿县| 寿阳县| 罗田县| 吴桥县| 洛阳市| 潞西市| 新龙县| 峨边| 扬中市| 博罗县| 晋州市| 抚顺市| 三亚市| 丹阳市| 历史| 于田县| 贵德县| 山阳县| 旬阳县| 濉溪县| 德安县| 桐城市| 额尔古纳市| 北票市| 怀仁县| 精河县|