<link type="text/css" rel="stylesheet" href="css/white-master.css" media="screen, projection" />
<link type="text/css" rel="stylesheet" href="css/jquery.jcarousel.css" media="screen, projection" />
<!--[if IE]>
<style>
#browser-controls li.txturl input
{
width: 340px; /*367 *..340/
/* height: 20px; */
height:24px;
padding:0px;
/* list-style: none; */
}
</style>
<![ENDIF]-->
you can also use the link tag instead of the inline style tag
Search This Blog
Tuesday, October 20, 2009
Javascript to assign CSS on the basis of browser
<script language="JavaScript"><br /><!-- var browser = ''; var version = ''; var entrance = ''; var cond = ''; // BROWSER? if (browser == ''){ if (navigator.appName.indexOf('Microsoft') != -1) browser = 'IE' else if (navigator.appName.indexOf('Netscape') != -1) browser = 'Netscape' else browser = 'IE'; } if (version == ''){ version= navigator.appVersion; paren = version.indexOf('('); whole_version = navigator.appVersion.substring(0,paren-1); version = parseInt(whole_version); } //if (browser == 'IE' && version <= 6) document.write('<'+'link rel="stylesheet" href="oldstyle_ie.css" />');<br />if (browser == 'IE' && version > 6) document.write('<'+'link rel="stylesheet" href="css/ie7.css" />');<br />else document.write('<'+'link rel="stylesheet" href="css/white-master.css" media="screen, projection" />');<br />//if (browser == 'Netscape' && version >= 2.02) document.write('<'+'link rel="stylesheet" href=" style.css" />');<br />// --><br /></script>
Wednesday, October 7, 2009
Tuesday, October 6, 2009
Monday, October 5, 2009
Google API for Dot Net
http://code.google.com/p/google-api-for-dotnet/
// Search 32 results of keyword : "Google APIs for .NET"
GwebSearchClient client = new GwebSearchClient(/* Enter the URL of your site here */);
IList<IWebResult> results = client.Search("Google API for .NET", 32);
foreach(IWebResult result in results)
{
Console.WriteLine("[{0}] {1} => {2}", result.Title, result.Content, result.Url);
}
The above not working in vb.net so did the following:
Public Sub GetGoogleResults()Dim client As New GwebSearchClient("/* Enter the URL of your site here */") Dim results As IList(Of IWebResult) results = client.Search(txtQuery.Text, 50, Nothing, Nothing, SafeLevel.GetDefault(), Language.GetDefault(), DuplicateFilter.GetDefault()) For Each result As Google.API.Search.IWebResult In results Literal1.Text = Literal1.Text + String.Format("<h3>[{0}]</h3> {1}<br> " + "<a href=' {2} ' target='blank'>{2}</a><BR>", result.Title, result.Content, result.Url) Next End Sub
Sunday, October 4, 2009
Simple ViewState Property
Protected Property bvin() As String
Get
If (Not ViewState("bvin") Is Nothing) Then
Return ViewState("bvin")
End If
Return ""
End Get
Set(ByVal Value As String)
ViewState("bvin") = Value
End Set
End Property
----------------------------------------------
public string SORTBy
{
get
{
if (ViewState["SORTBy"] != null)
{
return SafeCast.ToString(ViewState["SORTBy"]);
}
return "";
}
set
{
ViewState["SORTBy"] = value;
}
}
Friday, October 2, 2009
Thursday, October 1, 2009
Subscribe to:
Posts (Atom)