Home » Applications » Archive by category "ASP.NET" (Page 12)

Archive for the 'ASP.NET' Category

Record Update Confirmation Message

DataSource connection string <asp:sqldatasource ID=”MySQLDS” runat=”server” ConnectionString=”< %$ ConnectionStrings:MyConnString %>” UpdateCommand=”UPDATE [MyTablel] SET [DATE_SUBMITTED] = @DATE_SUBMITTED WHERE [RID] = @RID” OnUpdated=”UpdateMessage” > </asp:sqldatasource> VB code in a head section of the page <head> <script runat=”server”> Sub UpdateMessage(ByVal source As Object, ByVal e As SqlDataSourceStatusEventArgs) If e.AffectedRows > 0 Then ‘ Perform any additional processing, ‘ […]

Single ASP.NET page

<%@ Page Language=”VB” %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <script runat=”server”> </script> <html xmlns=”http://www.w3.org/1999/xhtml”> <head runat=”server”> <title>My VB.NET Page </title> <link href=”../css/Styles/Site.css” rel=”stylesheet” type=”text/css” /> </head> <body> <div class=”page”> <div class=”header”> <div class=”nav_pos” > <div class=”nav_format”> <% Response.Write(MonthName(DateTime.Now.Month) & ” + ”   ” & DateTime.Now.Day & “, ” & DateTime.Now.Year) %> […]

Template field databinder date format

Date 07/02/2012 DataBinder.Eval(Container.DataItem, “u_date_last_login”, “{0:d}”)