Wednesday, March 25, 2009

asp.net

1. Difference between gridview, datalist, repeator and details view and form view
GridView - Read/Edit

DataList - Read/Edit

Repeater - Read Only

DetailsView - Read/Edit/Create

FormView - Read/Edit/Create











 RepeaterDataListGridView
Table layoutnny
Flow layoutyyn
Column layoutnyn
Style propertiesnyy
TemplatesyyColumns/optional
Select/Edit/Deletenyy
Sortnny
Pagingnny


2. Error: A name was started with an invalid character. Error processing resource 'http://localhost/IssueTracker/Default.aspx'. Line...
<%@ Page Language="vb" AutoEventWireup="false" Inherits="ASPNET.StarterKit.IssueTracker._Default" CodeFile="Default.aspx....


SolutionC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i
Start installing ASP.NET (2.0.50727).

Tuesday, March 10, 2009

DotNet Web Info

1. Install Templates in Visual studio 2005 or 2009

copy the zip (for e.g Login.zip) file to the

D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\Web\CSharp\1033
[if the project type is web and language is c#]

D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\Web\VisualBasic\1033
[if the project type is web and language is VB]

2. close all the instances of VS 2005 or 2008
3. type the command devenv /installvstemplates in the run command
4. Wait for auto close of the devenv.exe in process windows task manager
5. Invoke the VS 2008 and the see your template in the my templates


1. DateTime Format

DateTime t1 = DateTime.Today;
MessageBox.Show(String.Format("{0:dd}", t) + " th" + String.Format("{0:MMM}", t) + ", " + String.Format("{0:yyyy}", t));
MessageBox.Show(String.Format("{0:MM/dd/yyyy}", t1));