Welcome to my blog.

Post on this blog are my experience which I like to share. This blog is completely about sharing my experience and solving others query. So my humble request would be share you queries to me, who knows... maybe I can come up with a solution...
It is good know :-)

Use my contact details below to get directly in touch with me.
Gmail: nadarmuthukumar1987@gmail.com
Yahoo: nadarmuthukumar@yahoo.co.in

Apart from above people can share their queries on programming related stuff also. As me myself a programmer ;-)

Build Succeeded but Publish Failed

Recently I faced an issue where my website is getting build successfully, means NO error NO warning NO MESSAGE, but if I try to publish it fails. To find solution for this you need to see your output window. You can open the output window by pressing Ctl + w, O. In the output window you can check at which stage does the publish website operation fail. Reference: Muthukumar (http://nadarmuthukumar.blogspot....

Pan Card Validation in C#

Add below code to your head section of page under script tag. function chkPANLen(sender, args) { var PANno = document.getElementById("").value; var pan = /^([A-Z a-z]{5})+([0-9]{4})+([A-Z a-z]{1})$/; if (!(PANno.match(pan))) { args.IsValid = false ; return; } args.IsValid = true ; } Below is the code to validate your control Pan No. : Reference: Muthukumar (http://nadarmuthukumar.blogspot....

serial number column in gridview

<%# Container.DataItemIndex + 1 %> Reference: Muthukumar (http://nadarmuthukumar.blogspot....

Clear all controls in Asp.net

public static void ClearAllControls(Control PageObject) { foreach (Control ctrControl in PageObject.Controls) { if (object.ReferenceEquals(ctrControl.GetType(), typeof(TextBox))) ((TextBox)ctrControl).Text = string.Empty; if (object.ReferenceEquals(ctrControl.GetType(), typeof(DropDownList))) ((DropDownList)ctrControl).SelectedIndex = -1; ClearAllControls(ctrControl); } } Call Controlprocedure using below code ClearAllControls(this); Note in the above code I have only involved TextBox and DropDownList Controls, likewise you can use your own. Reference: Muthukumar (http://nadarmuthukumar.blogspot....

no implicit conversion between null to int

I faced this issue twice now. When I tried to use below code DateTime? foo; foo = string.IsNullOrEmpty(txtDate.Text) ? null : Convert.ToDateTime(txtDate.Text); I get error as, Type of conditional expression cannot be determined because there is no implicit conversion between '' and 'System.DateTime' Solution for the problem is below DateTime? foo; foo = string.IsNullOrEmpty(txtDate.Text) ? (DateTime?)null : Convert.ToDateTime(txtDate.Text); Reference: Muthukumar (http://nadarmuthukumar.blogspot....

MonthPicker

At the end of this article you will be capable of creating your own month year picker. While creating reports we normally give from and to date filter, for which we use our normal DateTimePicker. But recently I got a requirement where I want to give "From Month Year" to "To Month Year" filter for a report. This can be achieved using DateTimePicker with some modification on its Javascript. But on some case I failed and decided to create my own usercontrol. Technology used Dot Net 3.5 Framework, Ajax. Month Picker Follow below steps to create your Month Year Picker.Step 1. Create a User Control Right Click on the project and click on "Add...

Double clicking the aspx file In visual studio 2010 open internet explorer / mozilla

Double clicking the aspx file In visual studio 2010 open internet explorer / mozilla A co-worker of mine  is experiencing an issue in Visual Studio 2010 where if he double clicks a page in the project explorer, it opens the page in internet explorer rather than open the file in visual studio. Now to open the file in Visual Studio, he has to "right click" the aspx file and then select "View Designer". The same thing happens if he right click and select "open". so, I tried myself around with VS2010, and  I figured it out. here is what u can do to over come this problem 1. In the solution explorer right click on .aspx file and click...

Remove special characters from String

public static string RemoveSpecialCharacters(string str) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); for (int i = 0; i < str.Length; i++) if ((str[i] >= '0' && str[i] <= '9') || (str[i] >= 'A' && str[i] <= 'z' || (str[i] == '.' || str[i] == '_'))) sb.Append(str[i]); return sb.ToString(); } Reference: Muthukumar (http://nadarmuthukumar.blogspot....

Pages 261234 »
Twitter Delicious Facebook Digg Stumbleupon Favorites More