Skip to main content

Posts

Showing posts from December, 2012

Read URL Page Content

How to Read PageContent by URL Below function is used to get the page content by the URL Import the name Spaces using System.Text; using System.Net; public string readPageContent( string sURL) { WebClient objWebClient = new WebClient (); System.Text. UTF8Encoding objUTF8 = new UTF8Encoding (); String strRequestState; Byte [] PageHTMLBytes; try { PageHTMLBytes = objWebClient.DownloadData(sURL); return strRequestState = objUTF8.GetString(PageHTMLBytes); } catch ( Exception ex) { return strRequestState = "No page found..." ; } }

Create Temporary Table

How to Create Temporary Table Step 1 : add the below function public DataTable CreateTable() { DataTable odtReviews = new DataTable (); odtReviews.Columns.Add( "ReviewDate" , typeof ( string )); odtReviews.Columns.Add( "PostedBy" , typeof ( string )); odtReviews.Columns.Add( "Content" , typeof ( string )); odtReviews.Columns.Add( "Rating" , typeof ( string )); return odtReviews; } step 2 : create object of above datatable DataTable odtReviews = CreateTable(); step 3 : create datarow DataRow odr; odr = odtReviews.NewRow(); (or) DataRow odr=odtReviews.NewRow(); Step 4 : assign the values odr[ "ReviewDate" ] = "11-Aug-2012" ; . . . step 5 : add datarow into datatable odtReviews.Rows.Add(odr);

Smooth Navigational Menu

Smooth Navigational Menu (v1.51) Updated:   Dec 17th, 10" (v1.5): Updated menu shadow to use CSS3 box shadows when the browser is FF3.5+, IE9+, Opera9.5+, or Safari3+/Chrome. Only .js file changed. Description:  Smooth Navigation Menu is a multi level, CSS list based menu powered using   jQuery   that makes website navigation a smooth affair. And that's a good thing given the important role of this element in any site. The menu's contents can either be from direct markup on the page, or   an external file and fetched via Ajax instead . And thanks to jQuery, a configurable, sleek "slide plus fade in" transition is applied during the unveiling of the sub menus. The menu supports both the   horizontal   and   vertical   (sidebar) orientation. Some noteworthy features- You can specify a delay before the sub menus appear and disappear when the mouse rolls over and out of them, respectively. The sub menus reposition themselves if too close to the window'