动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > C/C++教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ C/C++教程 ]的信息

本月文章推荐
.改造Hint输出方式.
.Turbo C 2.0 使用指南.
.在Windows NT 下实现对I/O地址的.
.API之文本和字体函数.
.《c语言程序设计》第八章:枚举,位.
.进制的转换.
.关于 MD5 的一些知识.
.利用C++Builder在Windows“开始”.
.异步消息的传递之回调机制.
.使非MFC窗口程序的窗口回调过程成.
.Bjarne:为什么一个空类的大小不.
.在C语言中以编程的方式获取函数名.
.成为嵌入式程序员应知道的0x10个.
.GDB 的文档.
.C语言字符型数据.
.自定义类_string类.
.C++编程易范的错误.
.用C++产生QL*Loader各类文件.
.在BCB中使用VCL控件数组2.
.监视程序的编制.

ASPDotNet

发表日期:2008-3-8 |



  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.
上一篇:TCPIP完整的一套基础介绍 人气:448
下一篇:c编程最佳实践 人气:319
浏览全部C/C++的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-9-7 站长中国企业(公司)网站系统 v4.2
2008-9-7 PBDigg v2.0 Build 20080821
2008-9-7 玩玩小游戏FLASH系统 v2.1
2008-9-7 522QQ在线电视直播程序 v1.1
2008-9-7 Pcook cms 文章管理系统 (老Y CM
2008-9-7 仿代码小说小偷系统 v1.0
2008-9-7 百度一搜集成搜索管理系统
2008-9-7 小贤统计器 v1.0
2008-9-7 UCenter Home-中秋搏饼插件 v1.2
2008-9-7 iBlacklist通话黑名单汉化破解补
2008-9-7 EndlessWalls无尽壁纸 v1.0.4破解
2008-9-7 Dynolicious车载测量仪v1.1破解版
2008-9-7 iVoodoo巫毒娃娃1.0.1破解版
2008-9-7 iWallpape精品墙纸1.2破解版
2008-9-7 iChillout自然音效工具1.1破解版
2008-9-7 Todo计划提醒1.2破解版
2008-9-7 allRadio电台集合1.01破解版
2008-9-7 My Money个人理财1.0破解版
  发表评论
姓 名: 验证码:
内 容:
站长工具:网站收录查询 | Google PR查询 | ALEXA排名查询 | CSS在线编辑器 | 广告代码 | Html转换js | js/vbs加密 | md5加密 | 进制转换
实用工具:汉字翻译拼音 | 符号对照表 | 个税计算 | 经典小工具 | 汉字简繁转换 | 普通单位换算 | 公制单位换算 | 生辰老黄历 | 国内电话区号 国家代码与域名缩写 | 文字加密解密 | 健康查询 | 万年历 | 汉字横竖排版 | 手机号码查询 | 计算器 | ip搜索
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号
ホームページ制作 不動産検索システム 求人情報
防水工事·改修工事 フットサル大会 探偵