Align text right in TextBox asp.net

Filed in .Net Leave a comment

<asp:TextBox ID=”txtQuantity” runat=”server” Columns=”5″ style=”text-align: right;”></asp:TextBox>

, ,

How to wrap text in label asp.net

Filed in .Net Leave a comment

<asp:Label ID=”lbl” runat=”server” style=”word-wrap: break-word;”/>

Track Active Item In VS2010 Solution Explorer

Filed in .Net Leave a comment

When I install VS 2010 by default it is not keeping the track of the active file in Solution Explorer. In previous version of VS it does. It is very to difficult to find the file at least in big projects. This is very helpful when you are working with a lot of files.

Follow the steps if you want to turn on this feature Go to Tools -> Options -> (Make sure that “Show all setting” checkbox is checked at the bottom of the popup”)Projects and Solutions -> General -> “Track Active Item in Solution Explorer” and check the option to turn this feature off.

, ,

Crystal Report runtime for Visual Studio 2010 & 2012

Filed in .Net Leave a comment

In the previous version of Visual Studio Crystal runtime is include in Visual Studio Installation but from Visual Studio 2010 you have to download manual from SAP Crystal Report website, below is the link. This normally you need when you have to deploy reports on production server where Visual Studio and Crystal Report is not installed.

http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp

For Visual Studio 2012

http://scn.sap.com/docs/DOC-7824

,

Add dropdown values as tool tip

Filed in .Net Leave a comment

http://www.codeproject.com/KB/aspnet/List_Box_Tool_Tip.aspx

Specifying values for In clause in SP from C#

Filed in .Net | SQL Leave a comment

select  * from pk where charindex(‘,’+cast(pkid as varchar(50))+’ ‘,’,12 ,13 ‘,1) > 0

But I think i would be slow if you have large data

Client side checking in GridView that at least on checkbox is selected

Filed in .Net Leave a comment

http://www.codeproject.com/KB/webforms/GridViewcheckBoxes.aspx

Found a very good article on the above link

Adding .flv file format in IIS MIME

Filed in .Net Leave a comment

On the Windows 2003 server, open the Internet Information Services Manager.

  1. Expand the Local Computer Server.
  2. Right-click the local computer server and select Properties.
  3. Select the MIME Types tab.
  4. Click New and enter the following information:
  5. Associated Extension box: .flv
  6. MIME Type box: video/x-flv
  7. Click OK.
  8. Restart the World Wide Web Publishing service

Convert string currency value to decimal value

Filed in .Net Leave a comment

public static decimal ConvertCurrencyToDecimal(string Value)

{

if (Value == “$0.00″)

return 0;

else if (Value.Length == 0)

return 0;

else

return Decimal.Parse(Value.Replace(” “, “”), NumberStyles.Any | NumberStyles.AllowCurrencySymbol | NumberStyles.AllowThousands | NumberStyles.AllowDecimalPoint, new CultureInfo(“en-US”));

}

F4V format videos not running

Filed in .Net Leave a comment

http://kb2.adobe.com/cps/402/kb402865.html

On the Windows 2003 server, open the Internet Information Services Manager.

  1. Expand the Local Computer Server.
  2. Right-click the local computer server and select Properties.
  3. Select the MIME Types tab.
  4. Click New and enter the following information:
  5. Associated Extension box: .F4V
  6. MIME Type box: video/mp4
  7. Click OK.
  8. Restart the World Wide Web Publishing service

TOP