... System.Security.Principal;//IPrincipal using System.Collections.Generic;//List using System.Collections;//IDictionaryEnumerator 16 Tạo thư mục Bin cho project Right-click project, chọn Add ASP.NET Folder Bin 17 Copy ... namespace sau cho Cach và DbCommand: using System.Web.Caching;//Cache using System.Data.Common;//DbCommand 13 Tạo thư mục BLL trong thư mục App_Code 14 Tạo lớp BizObject.cs trong thư mục App_Data/BLL/ ... lớp ConfigurationSection /// Chứa các thuộc tính cấu hình của website và các phương thức (get, set) tương ứng /// </summary> public class KimSoftSection : ConfigurationSection { //Chuỗi
Ngày tải lên: 02/07/2014, 00:20
... (service-oriented architecture), 1360–1362 SOAP (Simple Object Access Protocol), caching responses, 1350–1351 Trang 6SOAP (Simple Object Access Protocol) (continued)SOAP (Simple Object Access ... 758–761 SQL Server scripts, 747 SQL* Plus, 401 SqlCacheDependencyclass attaching SQL cache dependencies to Request object, 1096–1098 Trang 7stored procedures configuring ASP.NET application, 1093 defined, ... GridView control, 341 RsaProtectedConfiguration Provider, 621 RSS feeds viewing using ELMAH, 1598 XmlDataSource control and, 308–309, 535–537 RssCacheDependencyclass, custom cache dependencies,
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 5 ppsx
... performance of your ASP.NET applications This chapter looks at some of the advanced caching capabilities provided by ASP.NET, including the SQL cache invalidation feature which is part of ASP.NET ... server controls that are at your disposal for ASP.NET devel-opment projects Chapter 2, ‘‘ASP.NET Server Controls and Client-Side Scripts,’’ looks at the basics of working with server controls Chapter ... the SqlDataSource server control, ASP.NET 3.5 includes the AccessDataSource, XmlData-Source, ObjectDataXmlData-Source, SiteMapDataXmlData-Source, and the new LinqDataSource server control You use
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 7 ppt
... Page 13 Chapter 1: Application and Page Frameworks ASP.NET 3.5 Page Directives ASP.NET directives are something that is a part of every ASP.NET page. You can control the behavior of your ASP.NET ... False . Async Specifies whether the ASP.NET page is processed synchronously or asynchronously. AsyncTimeout Specifies the amount of time in seconds to wait for the asynchronous task to complete. ... the < clientTarget > section of the web.config. CodeFile References the code-behind file with which the page is associated. CodeFileBaseClass Specifies the type name of the base class to use
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 8 doc
... @OutputCache The@OutputCachedirective controls the output caching policies of an ASP.NET page or user control This directive supports the ten attributes described in the following table CacheProfile ... postbacks that can occur with an ASP.NET page, you want to know whether a request is the first instance for a particular page or is a postback from the same page You can make this check by using ... time in seconds during which this page is Trang 3The@Referencedirective declares that another ASP.NET page or user control should be compiled along with the active page or control This directive
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 10 ppt
... CodeTypeDeclaration = New CodeTypeDeclaration(selectionMainNode) ctd.Members.Add(cmp1) ctd.Members.Add(cmp2) ctd.Members.Add(cmm1) cn.Types.Add(ctd) ccu.Namespaces.Add(cn) myAb.AddCodeCompileUnit(Me, ccu) End ... new CodeTypeDeclaration(selectionMainNode); ctd.Members.Add(cmp1); ctd.Members.Add(cmp2); ctd.Members.Add(cmm1); cn.Types.Add(ctd); ccu.Namespaces.Add(cn); myAb.AddCodeCompileUnit(this, ccu); ... speedNode.InnerText; CodeCompileUnit ccu = new CodeCompileUnit(); CodeNamespace cn = new CodeNamespace(); CodeMemberProperty cmp1 = new CodeMemberProperty(); CodeMemberProperty cmp2 = new CodeMemberProperty(); CodeMemberMethod
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 11 docx
... interface or abstract class In fact, you can extract an interface from the class you just created directly in the class designer by right-clicking on the Calculator class box and selecting Refactor ... Object Test Benchdirectly in Visual Studio The Object Test Bench now contains only a single gray box classed calculator1 Right-click on this object directly in the Object Test Bench, and select ... of your classes, you can also use it to instantiate and test your new objects To do this, right-click on theCalculatorclass file in theClassDiagram1.cdfile and select Create Instance➪Calculator()
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 12 pptx
... Trang 1ASP.NET Ser ver Controlsand Client-Side Scripts As discussed in the previous chapter, ASP.NET evolved from Microsoft’s earlier Web technology called Active Server Pages (referred to as ASP ... ASP then and classic ASP today) This model was com-pletely different from today’s ASP.NET Classic ASP used interpreted languages to accomplish the construction of the final HTML document before ... kind ❑ Rich controls:Controls, such as the Calendar control, that display richer content and capabilities than other controls ❑ Validation controls:Controls that interact with other form controls
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 13 potx
... from theHtmlContainerControlclass — a class specifically designed to work with HTML elements that require a closing tag Because theHtmlContainerControlclass is derived from theHtmlControlclass, you ... theHtmlGenericControlclass provides server-side access to any HTML element you want Using the HtmlGenericControl Class You should be aware of the importance of theHtmlGenericControlclass; it gives ... it gives you some capabilities that you do not get from any other server control offered by ASP.NET For instance, using the Html-GenericControlclass, you can get server-side access to the<meta>,<p>,<span>,
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 14 potx
... "myJavaScriptCode.js"; Page.ClientScript.RegisterClientScriptInclude("myKey", myScript); This creates the following construction on the ASP.NET page: <script src="myJavaScriptCode.js" ... Page.ClientScript.RegisterClientScriptInclude The final method isRegisterClientScriptInclude Many developers place their JavaScript inside a .jsfile, which is considered a best practice because ... the RegisterClientScriptInclude method VB Dim myScript As String = "myJavaScriptCode.js" Page.ClientScript.RegisterClientScriptInclude("myKey", myScript) C# string myScript = "myJavaScriptCode.js";
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 15 ppt
... FunctionEnd Class C# (code-behind) using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using ... _callbackResult End Function End Class C# (code-behind) using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using ... The function placed on the client for the callback capabilities is calledUseCallback() Thisstringis then populated to the Web page itself using thePage.ClientScript.RegisterClientScripBlockthat
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 16 potx
... Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "UseCallback", cbScript, true); } #region ICallbackEventHandler Members public string GetCallbackResult() { return _callbackResult; } public void ... Trang 1Chapter 2: ASP.NET Server Controls and Client-Side Scriptsusing System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class Default2 ... System.Web.UI.ICallbackEventHandler { private string _callbackResult = null; protected void Page_Load(object sender, EventArgs e) { string cbReference = Page.ClientScript.GetCallbackEventReference(this,
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 17 docx
... System.Web.UI.WebControls.ImageClickEventArgs) Continued Trang 7’ Code hereEnd Sub C# protected void ImageButton1_Click(object sender, System.Web.UI.WebControls.ImageClickEventArgs e) { // Code here } The construction ... causing actions to occur on a Web page Before ASP.NET 1.0/1.1, people intermingled quite a bit of JavaScript in their pages to fire JavaScript events when a button was clicked The process became ... Case(switch) statement ase.CommandName Using this object, you can check for the value of theCommandNameproperty used by the button that was clicked on the form and take a specific action based upon the
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 18 docx
... toVerticalwith aRepeatColumnsetting of3gives the following results: CheckBox1 CheckBox5 CheckBox9 CheckBox2 CheckBox6 CheckBox10 CheckBox3 CheckBox7 CheckBox11 CheckBox4 CheckBox8 CheckBox12 ... Response.Write("CheckBox is checked!") End If C# if (CheckBox1.Checked == true) { Response.Write("Checkbox is checked!"); } This check is done on the CheckBox value using the control’sCheckedproperty ... either the CheckBox control or the CheckBoxList control to include check boxes in your Web forms The CheckBox control allows you to place single check boxes on a form; the CheckBoxList control allows
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 19 pptx
... <asp:TableHeaderCell>Last Name</asp:TableHeaderCell> </asp:TableRow> <asp:TableRow> <asp:TableCell>Bill</asp:TableCell> <asp:TableCell>Evjen</asp:TableCell> ... </asp:TableRow> <asp:TableRow> <asp:TableCell>Devin</asp:TableCell> <asp:TableCell>Rader</asp:TableCell> </asp:TableRow> </asp:Table> This produces ... affords you access to theRepeatColumnsandRepeatDirectionproperties (these were explained in the CheckBoxList section) You can bind this control to items that come from any of the data source controls
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 20 pptx
... using: VB Calendar1.SelectedDates.Item(Calendar1.SelectedDates.Count-1).ToShortDateString() C# Calendar1.SelectedDates[Calendar1.SelectedDates.Count-1].ToShortDateString(); As you can see, this ... Xml1.Document = MyXmlDoc Xml1.Transform = MyXslDoc C# XmlDocument MyXmlDoc = new XmlDocument(); MyXmlDoc.Load(Server.MapPath("Customers.xml")); XslCompiledTransform MyXsltDoc = new XslCompiledTransform(); ... Meeting!</p>"))e.Cell.BorderColor = Drawing.Color.Black e.Cell.BorderWidth = 1 e.Cell.BorderStyle = BorderStyle.Solid e.Cell.BackColor = Drawing.Color.LightGray End If End Sub </script> <html
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 21 pptx
... horizontal scrollbar to turn on (depending on what is contained in the panel section) If you do not want to let the ASP.NET engine choose which scrollbars to activate, you can actually make that decision ... marker with which you can add other controls The capability to add controls to a page at a specific point also works with the Panel control To see how it works, insert a PlaceHolder control into ... theBulletedList1_Clickevent.BulletedList1_Clickuses theBulletedListEventArgsobject, which only exposes theIndexproperty Using that, you can determine the index number of the item selected Trang 8You can directly
Ngày tải lên: 05/07/2014, 18:20
premier press microsoft asp.net professional projects
... "Working with ASP. NET Web Services," provides a detailed discussion on web services. Chapter 10, " ;ASP. NET Applications," covers ASP. NET applications. An ASP. NET application is an ... Chapter 6 - User Controls Chapter 7 - Custom Controls Chapter 8 - Business Objects Chapter 9 - Working with ASP. NET Web Services Chapter 10 - ASP. NET Applications Chapter ... < ;asp: TableRow> < ;asp: TableCell>Column1< /asp: TableCell> < ;asp: TableCell>Column2< /asp: TableCell> < /asp: TableRow> < ;asp: TableRow> < ;asp: TableCell>Column3< /asp: TableCell>...
Ngày tải lên: 29/04/2014, 15:14
Building a Sample Application Using ASP.NET AJAX
... APPLICATION USING ASP. NET AJAX 239 828-8 CH10.qxd 10/11/07 10:47 AM Page 239 226 CHAPTER 10 ■ BUILDING A SAMPLE APPLICATION USING ASP. NET AJAX Figure 10-1. An ASP. NET AJAX-based stock application Understanding ... Application Architecture The application is built as a typical logical n-tier application comprising a resource tier that contains the back-end resources. In this case, the resources are the Company ... priceCurve = pane.AddCurve( "Closing Price", pt, Color.SlateBlue, CHAPTER 10 ■ BUILDING A SAMPLE APPLICATION USING ASP. NET AJAX 245 828-8 CH10.qxd 10/11/07 10:47 AM Page 245 < ;asp: CheckBoxField>...
Ngày tải lên: 05/10/2013, 10:20
Using Server Controls in ASP.NET AJAX
... that has complex data objects and a data access layer. Summary The ToDo List application is an excellent example of an ASP. NET application and how it can be enhanced with AJAX functionality using ASP. NET ... runat="server"> <Triggers> < ;asp: AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" /> CHAPTER 6 ■ USING SERVER CONTROLS IN ASP. NET AJAX110 828-8 CH06.qxd 9/28/07 4:46 PM Page 110 828-8 CH06.qxd ... application is to showcase a good scenario for using ASP. NET AJAX server controls and not to build a practical market data reporting application. As such, the initial values for the three indices...
Ngày tải lên: 05/10/2013, 10:20
Bạn có muốn tìm thêm với từ khóa: