ASP NET at Work: Building 10 Enterprise Projects PHẦN 4 doc

ASP.NET at Work: Building 10 Enterprise Projects PHẦN 4 doc

ASP.NET at Work: Building 10 Enterprise Projects PHẦN 4 doc

... @ParamDefs = ‘@StartDate datetime, @EndDate datetime’ IF (@StartDate IS NULL) SET @StartDate = CONVERT(datetime, ‘1/1/1753’) IF (@EndDate IS NULL) SET @EndDate = CONVERT(datetime, ‘12/31/9999 ... @StartDate, @EndDate Listing 4. 9 HitsByClient stored procedure CREATE PROCEDURE HitsByUserAgent ( @TableName nvarchar(25), @StartDate datetime = NULL, @EndDate datetime = NULL ) AS DECLARE @SQLSta...

Ngày tải lên: 12/08/2014, 08:23

64 278 0
ASP.NET at Work: Building 10 Enterprise Projects PHẦN 2 doc

ASP.NET at Work: Building 10 Enterprise Projects PHẦN 2 doc

... ‘ Public Sub Validate() Dim dr As DataRow ClearErrors() For Each dr In m_DS.Tables(0).Rows If dr.RowState = DataRowState.Added _ Or dr.RowState = DataRowState.Modified Then ValidateRow(dr) End If Next End ... sdrData As SqlDataReader Dim sb As New StringBuilder Dim strColor As String Dim db as New AtWorkUtilities.Database(“server=localhost;” _ & “database=ASPNetProject02;uid=sa;pwd=;”) s...

Ngày tải lên: 12/08/2014, 08:23

64 263 0
ASP.NET at Work: Building 10 Enterprise Projects PHẦN 6 docx

ASP.NET at Work: Building 10 Enterprise Projects PHẦN 6 docx

... defaultRedirect=”/Project05/Error/Problem.aspx”> <error statusCode= 40 3” redirect=”/Project05/Error/Denied.aspx” /> <error statusCode= 40 4” redirect=”/Project05/Error/NotFound.aspx” /> <error statusCode=”500” ... startup and setting the source value that will be used with this particular application (other ASP. NET applica- tions may specify that sources be placed in th...

Ngày tải lên: 12/08/2014, 08:23

64 178 0
ASP.NET at Work: Building 10 Enterprise Projects PHẦN 3 ppt

ASP.NET at Work: Building 10 Enterprise Projects PHẦN 3 ppt

... value=”2”>2nd< /asp: listitem> < ;asp: listitem value=”3”>3rd< /asp: listitem> < ;asp: listitem value= 4 >4th< /asp: listitem> < ;asp: listitem value=”5”>5th< /asp: listitem> < /asp: dropdownlist> < ;asp: dropdownlist id=”cboLogicalMonthlyDay” runat=”server”> < ;asp: listitem ... align=”right”>End Date:</td> <td> < ;asp:...

Ngày tải lên: 12/08/2014, 08:23

64 217 0
ASP.NET at Work: Building 10 Enterprise Projects PHẦN 7 potx

ASP.NET at Work: Building 10 Enterprise Projects PHẦN 7 potx

... discussion forums. Building the Online Store Application 389 Building the Online Store Application 375 <TD>< ;asp: comparevalidator id=”CompareValidator1” runat=”server” ControlToValidate=”Password2” ... m_DS.Tables(0).Rows If dr.RowState = DataRowState.Added _ Or dr.RowState = DataRowState.Modified Then ValidateRow(dr) End If Next End Sub ‘ ‘ Checks an individual row for validat...

Ngày tải lên: 12/08/2014, 08:23

64 237 0
ASP.NET at Work: Building 10 Enterprise Projects PHẦN 9 pot

ASP.NET at Work: Building 10 Enterprise Projects PHẦN 9 pot

... DR(“FileSize”) > 102 4^ 3 Then strSize = Math.Round(DR(“FileSize”) / 102 4^ 3, 1).ToString() _ & “ Gb” ElseIf DR(“FileSize”) > 102 4^ 2 Then strSize = Math.Round(DR(“FileSize”) / 102 4^ 2, 1).ToString() ... ‘ Public Sub Validate() Dim dr As DataRow ClearErrors() For Each dr In m_DS.Tables(0).Rows If dr.RowState = DataRowState.Added _ Or dr.RowState = DataRowState.Modified T...

Ngày tải lên: 12/08/2014, 08:23

64 296 0
ASP.NET at Work: Building 10 Enterprise Projects PHẦN 10 ppt

ASP.NET at Work: Building 10 Enterprise Projects PHẦN 10 ppt

... align=middle>None</td>”) Listing 10. 20 projects. aspx.vb Teamwork Network: Project Tracking 577 End If m_DA.Update(m_DS) End Sub ‘ ‘ Since we only have a single row in our DataSet, ‘ delete it and then update the database ... Performed</p> < ;asp: label id=”lblMessage” class=”text” runat=”server” /> < ;asp: Repeater id=”rptList” runat=”server”> <HeaderTemplate&g...

Ngày tải lên: 12/08/2014, 08:23

64 227 0
Visual Basic .NET at Work Building 10 Enterprise Projects phần 2 doc

Visual Basic .NET at Work Building 10 Enterprise Projects phần 2 doc

... time that the data has been changed in the database, we refresh the data in the DataSet so that we have an accurate representation of what’s been done to it. This operation has been encapsulated ... so that our own code knows we’re creating a new record (used later when we save the data). Lastly, we update the application’s status line to indicate that a new record was successfully created ....

Ngày tải lên: 14/08/2014, 01:20

52 303 0
Visual Basic .NET at Work Building 10 Enterprise Projects phần 4 ppsx

Visual Basic .NET at Work Building 10 Enterprise Projects phần 4 ppsx

... installation was made with it. It was an indicator of an ama- teur attempt at installation and did not look professional. The Visual Studio .NET Installer tools not only create installations that ... performance data for each name. We create a DataTable object and then create four new columns for it: FunctionName, Avg, Min, and Max. We will be adding rows of data to it later. 136 Project...

Ngày tải lên: 14/08/2014, 01:20

52 199 0
Visual Basic .NET at Work Building 10 Enterprise Projects phần 5 doc

Visual Basic .NET at Work Building 10 Enterprise Projects phần 5 doc

... created between you and the HTML you’re generating by the ASP. NET Framework. ASP. NET Framework maintains state for you. Do you ever have to post to the server to apply validation logic to a data ... %> &nbsp;&nbsp; </ItemTemplate> <FooterTemplate> </marquee> </FooterTemplate> < /asp: DataList> Now let’s take a look at the attributes we’re set...

Ngày tải lên: 14/08/2014, 01:20

52 236 0
w