26 February 2009

You can apply date format in RegularExpressionValidator

suppose I have a textbox to apply date time by "dd/MM/yyyy" format.

I can use flowing ValidationExpression:

<asp:RegularExpressionValidator
ID="RegularExpressionValidator2"
runat="server"
ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"
ControlToValidate="myTextBox"
ErrorMessage="Enter date in dd/mm/yyyy format">

09 December 2008

Get CSS cool menu, you create menu online and can download it's source.


16 November 2008


InstallationWiki.org is designed to provide you with comprehensive and free guides to installing software. It is an open Wiki for everyone to contribute to.

20 October 2008

I m using SQL Server 2005 and trying to get table name "myTable" from all databases from SQL Server

begin try
Exec sp_MSforeachdb 'Select * From ?..sysobjects where name=''myTable'''
end try
begin catch
print 'error'
end catch

06 October 2008

If you are using FCK editor and also you are using "Theme" from ASP.net you may get error for head tag in master page for Runat="Server" when you are uploading image from FCK Editor.

It have a simple solution,
Create a web.config file in "fckeditor" folder

and add "Page" element into "system.web" tag. and write down theme="".

configuration>
system.web>
pages theme="">
/system.web>
/configuration>

30 September 2008

Search Direct "Code" as search result!!!

You can see ZIP file's code without downloading. there is also "Language" option in advance search to get result for particular language.

So start to find direct Code!!!

24 September 2008



Get home entertainment via BigFlix , Just Register, Pay fees, and get DVD to your home!!!

It also present in Ahmedabad.

read More about this site.

20 September 2008

Download Visual Studio 2008 SP1.

and also read about that what new in Visual Studio 2008 SP1 from here in power point presentation and also in text format here.

18 September 2008

Download .NET Framework 3.5 Common Namespaces and Types Poster in PDF format.


17 September 2008

When you have update panel in your web page, You wanted to update page, Actually there will be same page life cycle, and also Page_Load event, It means that suppose you have some code in Page_Load event to bind Grid which is not there in UpdatePanel, Normally it will go to rebind data!

So, the question is how could we know different between normal postback and post back via update panel?

There is a property in "ScriptManager" control to get this different named "IsInAsyncPostBack"


protected void Page_Load(object sender, EventArgs e)
{
if (!ScriptManager1.IsInAsyncPostBack)
{
///Page Regular code
}
else
{
///Code Only for controls inside Update Pagens
}
}