TipsOnLips.net

Your .net tips and tricks source

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010


Creaet Youtube Personal Feeds


Categories: API
Posted by developer on Friday, August 28, 2009 3:34 AM
Permalink | Comments (4) | Post RSSRSS comment feed

Cannot Add Ajax Controls to Visual Studio Toolbox

There are many reason that I do not know why the Visual Studio IDE decides not to allow this set of controls to be added to its Toolbox menu, but I know the answer to one of those reasons which is:

Try to remove any reference to the Ajax Controls library in your Web.Config file inside the <Pages> >> <Controls> tags, if exists. Anyhow it worked for me.


Categories: Ajax | Visual Studio
Posted by developer on Tuesday, August 25, 2009 3:24 AM
Permalink | Comments (2) | Post RSSRSS comment feed

CSS Center text in td for IE and Firefox

td

{

    text-align: -moz-center; /*firefox*/

    text-align:center; /*IE*/

}

 

The issue I found, so the center to work for IE, the text-align:center for IE has to come after the text-align: -moz-center line, otherwise did not have any effect on IE. Anyhow this is what I encountered.


Categories: CSS
Posted by developer on Sunday, August 23, 2009 10:24 AM
Permalink | Comments (2) | Post RSSRSS comment feed

SQL Server report - printing size formula

When creating a SQL Server report and the layout is larger than it fits on an A4 or A3 page, then printing to PDF is the only option to make printing successful.

Adobe PDF format is scalable, i.e. it does not get restricted by the A4 or A3 size as long things are proportional. To explain that:

You set the report size in the report properties to A3 size is 42cm x 29.7 (for large reports) and then check the report body size, if that for example is 43.5 cm, then

the new report size to be set is (43.5 (body size) x 42 (report size)) / (report size - left margin - right margin). Then when you print this report in PDF, you will not get an extra page with only extra column.

The good thing about this way is now you can print in any paper size without any problem.

Let me know if that works for you.


Categories: SQL Server
Posted by developer on Thursday, August 20, 2009 9:01 PM
Permalink | Comments (1) | Post RSSRSS comment feed

JQuery Get Radio Button Checked Value

<input type="radio" name="sucess" value="Yes" checked="checked" />Yes

<input type="radio" value="No" name="sucess" />

 

var radioValue = j("input[name='sucess']:checked").val();


Categories: Jquery
Posted by developer on Sunday, August 16, 2009 9:12 PM
Permalink | Comments (0) | Post RSSRSS comment feed

C# Convert a different culture Datetime to your culture

        string usDateTime = "08/13/2009";

 

        CultureInfo usaCulture = new CultureInfo("en-US");

 

        DateTime yourDateTime = Convert.ToDateTime(usDateTime, usaCulture);

        yourDateTime is 13/08/2009 if you have an Australian culture ("en-AU")

 


Categories: CSS
Posted by developer on Friday, August 14, 2009 6:38 AM
Permalink | Comments (0) | Post RSSRSS comment feed

JQuery Set Link Target Attribute to _blank on click

<script type="text/javascript">

$(function(){

      $('a').click(function(){

            $(this).attr({ target: "_blank" });

      });

});

</script>


Categories: Jquery
Posted by developer on Thursday, August 13, 2009 3:44 AM
Permalink | Comments (0) | Post RSSRSS comment feed

ASP.NET C# Format GridView DataTime field

 <%# Eval("StartDate", "{0:dd/MM/yyyy}")%>


Categories: ASP.NET | C#
Posted by developer on Wednesday, August 12, 2009 11:32 PM
Permalink | Comments (0) | Post RSSRSS comment feed