亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 學院 > 開發設計 > 正文

ASPDotNet

2019-11-17 05:15:32
字體:
來源:轉載
供稿:網友

  This little block can be used to PRint all Request[*]:

foreach(string item in Request.Params)

{

Response.Write(item + " = " + Request[item]);

Response.Write("<br>");

}



And this one can be used to encode a URL (RFC1738):

HttpUtility.UrlEncode("APP=WebFS&Conf=vitals.rcf"); // output is APP%3dWebFS%26Conf%3dvitals.rcf



You have created a Web application called ProjectName with VS.Net 2003 and now you want to check it in. How do you do that?


When you are moving a project, make sure to copy the folder and not just the content from "C:/inetpub/wwwroot/ProjectName". The reason is that there are some permissions here that must be copied, too. Otherwise, you will get an error message "Failed to Start Monitoring Directory Changes", KB317955. Anyway, here are the full steps:

1) Stop IIS.

2) Go to "C:/inetpub/wwwroot/ProjectName" and copy (not move) it to someplace else. Locate ProjectName.sln in "C:/Documents and Settings/My Documents/Visual Studio Projects/ProjectName" and copy that, too. If you want to rename the project, this is the chance:

a) Open the following three files and do a global search and replace to rename ProjectName to something else: Global.asax, ProjectName.csproj, ProjectName.csproj.webinfo, and ProjectName.sln

b) Rename ProjectName.csproj, ProjectName.csproj.webinfo, and ProjectName.sln to, say, NewProjectName.

3) Delete the virtual directory from IIS. This will also delete the physical directory and files.

4) Go to the copy, and remove the following dirs: _vti_cnf, _vti_pvt, _vti_script, _vti_txt, and bin.

5) Check-in ProjectName and its content first.

6) Start IIS.

7) Recreate the virtual directory, but this time point it to the new location.

9) Open ProjectName.sln or ProjectName.csproj (if you don't have ProjectName.sln). Rebuild it to be sure everything is working.

10) Test it by pressing Ctrl+F5 or by going to http://localhost/ProjectName/MainForm.aspx (where MainForm.aspx is your main form).


PS. If you don't have ProjectName.sln, you can still proceed by doing an Open Project From Web, save that, and move ProjectName.sln to the same location as the ProjectName.csproj.







creating controls dynamically; error with "controls" must be inside a form bla bla bla
how to popup a window on the browser side aSKINg for confirmation

how to check a box in a CheckBoxList
how to force a PostBack? set AutoPostBack attribute to true
how to get the request parameters? through Request["paramname"]
how do I run an sql query and mix the resulting records with my own columns (say clickable buttons)?
working with HashTable, working with HttpRequest?
check for mobile device? if (Request.Browser["IsMobileDevice"] == "true" ) {
Response.Redirect(Request.ApplicationPath); // Redirect to caller
Response.Redirect(Request.RawUrl); // Redirect to the same page to pick up changes

Web Service method seems to be limited to only one array (eg. string[]) in its out parameter. Could apply also to other data types. Put more than that, and weird things happen like the ordering of the parameter on the proxy is not the same as the one in the actual implementation.

How to get a DataSet to write an xml string and read an xml string into a DataSet?
string connection = "Server=pc-se-kuncoro;Database=mdpp;User ID=kuncoro;PassWord=kuncoro";
string query = "select * from patients";
DataSet dataset = SqlHelper.ExecuteDataset(connection, CommandType.Text, query);
DataGrid1.DataSource = dataset;
DataGrid1.DataBind();
System.IO.StringWriter sw = new System.IO.StringWriter();
dataset.WriteXml(sw, XmlWriteMode.WriteSchema);
System.IO.StringReader sr = new System.IO.StringReader(sw.ToString());

DataSet dataset2 = new DataSet();
dataset2.ReadXml(sr, XmlReadMode.ReadSchema);
DataGrid2.DataSource = dataset2;
DataGrid2.DataBind();





CHAPTER 1

complex data bind: list controls (DropDownList, CheckBoxList, RadioButtonList, ListBox)
and iterative controls (Repeater, DataList, and DataGrid); they all take data sources,
but iterative controls can apply Html templates to its rows

split can be used to split Request["blabla"] into several segments

Color.White
Color.FromName("white")
Color.FromName("#00ee00")

DataList control provides special support for five predefined command names: edit, update, delete, cancel, and select. (p.22)
Clicking on a button with one of the above names will generate two events: ItemCommand and xxxCommand.


int employeeID = DataKeys[DataList1.SelectedIndex]; (p.23)


CHAPTER 2

???


CHAPTER 3


Two choices of column, BoundColumn (no customization) and TemplateColumn (allows customization).
TemplateColumn's possible types: ItemTemplate, EditItemTemplate, HeaderTemplate, and FooterTemplate.
Check out p.79 for a good example on concatenating data fields for TemplateColumn.
There is a trick on p.82 that allows grouping more than one column in a single column header.
ItemCreated event handler is a good place to modify whatever DataGrid has prepared for an item (a row).
Check the tip on p.83 to provide spacing and padding for every cell in a DataGrid.
Can I apply a template for column headers and have a sort ability, too? To a certain degree, p.86.
Loading templates dynamically at runtime? Put the template in an ascx file.
Use FindControl (p.92) to find a control that is not accessible at the page level due to teh implementation of asp.net templates.
If you change a template for a column at runtime, you need to refresh the view (p.93).
Loading a template from a temp. file? make sure you use something like a session ID or Path.GetTempFileName to create the file (p.93).
Want to replace the work that ASP.NET when parsing a template? Do it yourself by inheriting from ITemplate (p.94).
A nice example of customizing a column to show images instead of text, p.99.
Wanna have a cell that is actually a DropDownList (or any other control)? Check the hint at p.101.


CHAPTER 7

DataSet is an in-memory cache of data and is passed between the middle tier and the client application.
DataGrid does not cache the DataSet it is bound to. There are two ways to tackle this issue: use DataReader with custom pagination, or cache it in the Cache object (p.213-214).
Unlike the Session object, the Cache object does not work on a per-user basis. Still Cache object gives good performance.
XmlTextReader (reads an XML file) and SqlDataAdapter (query SQL Server), both can be used to fill a DataSet.
In .NET, shallow copying can be performed with MemberwiseClone. For deep copying, a Clone method must be implemented since the default behavior simply does shallow copying (p.218).
For rows, you can either use the Rows property and DataRowCollection, or ImportRow (p.218-219).
The last piece to know is Batch Update, the process in which changes made to the DataSet is persisted to the actual database. Potential problem: conflicts due to updates being done from the time you get your DataSet and the time you commit your DataSet.

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
欧美激情视频网| 欧美黄色片视频| 欧美夫妻性生活xx| 国产精品日韩欧美综合| 欧美成人免费在线视频| 国产精品免费久久久久影院| 亚洲精品成人久久| 日韩国产高清视频在线| 国产日韩换脸av一区在线观看| 久久久精品999| 国产精品v片在线观看不卡| 欧美成人免费大片| 亚洲精品大尺度| 欧美超级免费视 在线| 亚洲二区在线播放视频| 国产999精品| 欧美激情视频在线免费观看 欧美视频免费一| 4p变态网欧美系列| 91精品久久久久久久久久久久久| 久久夜精品香蕉| 色综久久综合桃花网| 亚洲精品一区二区三区不| 国产日产久久高清欧美一区| 久久99热这里只有精品国产| 国产精品成人一区| 在线精品国产成人综合| 91欧美精品午夜性色福利在线| 最近中文字幕2019免费| 亚洲最大激情中文字幕| 日韩在线www| 91视频免费网站| 茄子视频成人在线| 91丨九色丨国产在线| 亚洲最大福利视频网站| 裸体女人亚洲精品一区| 国产主播精品在线| 国内精品一区二区三区| 精品少妇一区二区30p| 亚洲在线免费看| 在线成人中文字幕| 欧美国产日韩在线| 精品国产自在精品国产浪潮| 91精品视频大全| 国产视频一区在线| 国产精品美乳在线观看| 日韩精品丝袜在线| 91av视频在线| 亚洲性夜色噜噜噜7777| 成人久久18免费网站图片| 欧美夫妻性生活视频| 日韩经典一区二区三区| 国产91在线高潮白浆在线观看| 久久久久五月天| 主播福利视频一区| 国产91色在线播放| 欧美专区日韩视频| 欧美精品videos另类日本| 亚洲成人精品视频| 成人h视频在线观看播放| 国产v综合ⅴ日韩v欧美大片| 中文字幕亚洲一区二区三区| 国产日韩av在线播放| 成人免费黄色网| 亚洲香蕉成视频在线观看| 亚洲欧美一区二区三区久久| 中文字幕精品在线| 欧美综合激情网| 亚洲美女久久久| 久久久天堂国产精品女人| 亚洲aⅴ男人的天堂在线观看| 欧美另类暴力丝袜| 日本精品久久久久影院| 国产精品视频一区国模私拍| 久久成人综合视频| 国产精品久久久久久av福利软件| 久久精品国产成人| 精品亚洲一区二区三区在线播放| 色999日韩欧美国产| 国产女同一区二区| 精品亚洲一区二区三区在线播放| 91精品国产高清自在线看超| 96sao精品视频在线观看| 日韩少妇与小伙激情| 日本高清+成人网在线观看| 亚洲欧洲日产国产网站| 国产精品第一区| 欧美二区乱c黑人| 亚洲欧美日本精品| 国产精品久久久久秋霞鲁丝| 91国产精品91| 亚洲欧美日韩在线一区| 91国产美女在线观看| 久久综合久中文字幕青草| 欧美精品videofree1080p| 欧美日韩成人精品| 97精品伊人久久久大香线蕉| 国产精选久久久久久| 中文综合在线观看| 亚洲综合日韩中文字幕v在线| 一区二区三区亚洲| 久久久久久97| 国产精品第三页| 日韩中文字幕在线免费观看| 日韩视频在线免费| 国产欧美一区二区三区在线| 九九精品在线观看| 国产偷亚洲偷欧美偷精品| 国产精品久久久亚洲| 国产69久久精品成人| 最近中文字幕日韩精品| 欧美亚洲第一区| 高清日韩电视剧大全免费播放在线观看| 亚洲精品99久久久久| 国产91av在线| 日韩精品极品在线观看播放免费视频| 97av在线播放| 欧美放荡办公室videos4k| 91精品国产综合久久久久久久久| 欧美激情第6页| 米奇精品一区二区三区在线观看| 国产精品男人爽免费视频1| 色偷偷av一区二区三区| 久久91亚洲精品中文字幕| 911国产网站尤物在线观看| 亚洲第一天堂无码专区| 久久人人爽亚洲精品天堂| 国产精品91免费在线| 亚洲精选在线观看| 欧美日韩午夜激情| 国产精品一区电影| 欧美劲爆第一页| 国产精品电影一区| 日韩在线视频网站| 国产精品18久久久久久麻辣| 日本亚洲欧美三级| 欧美限制级电影在线观看| 国产一区二区美女视频| 两个人的视频www国产精品| 国产精品91一区| 欧美在线日韩在线| 亚洲嫩模很污视频| 亚洲国产成人久久| 日韩视频永久免费观看| 国产成人在线精品| 国产精品久久久久久av下载红粉| 亚洲高清不卡av| 欧美视频精品一区| 日本高清+成人网在线观看| 精品欧美激情精品一区| 国色天香2019中文字幕在线观看| 国产精品99久久久久久久久久久久| 亚洲成人激情视频| 亚洲男人天堂网站| 亚洲午夜久久久久久久| 久久中文字幕在线视频| 欧美成人精品h版在线观看| 美女扒开尿口让男人操亚洲视频网站| 亚洲最大成人网色| 亚洲综合精品一区二区| 日韩精品视频在线| 国产成人精品视频在线观看| 综合网中文字幕| 国产精品爽爽ⅴa在线观看| 欧美日韩中国免费专区在线看|