Feeds:
Posts
Comments

Archive for February, 2008

Naviagation between pages is very  easy while using Tx Text control for documents like doc, txt,rtf and html in you dot net application. We have to use InputPosition of Tx Text Control its syntex is following
public InputPosition(int page, int line, int column);
here is sample code
Dim PageNo As IntegerPageNo = InputBox(“Page no.”, “Go to page”, “1″)If [...]

Read Full Post »

He who is silent is forgotten;
He who does not advance, falls back;
He who stops is overwhelmed;
He who is out distanced is crushed;
He who ceases to grow, becomes smaller;
He who leaves off, gives up.
The moment you decide to stop in life,
its the begining of your end.
Keep moving ahead.

reference : http://pravstalk.com/

Read Full Post »

Hi all you can add meta tags like that in page
HtmlMeta _MyName = new HtmlMeta();
_MyName.Name =” Ali Raza”;
_MyName.Content =” just in and test “;
Page.Header.Controls.Add(_MyName);

Read Full Post »

I used following code to get uploaded image dimensions .
Where flLogoUplaoded is name of asp .net file uploaded control at my application
string UploadedImageType = flLogoUpload.PostedFile.ContentType.ToString().ToLower();
string UploadedImageFileName = flLogoUpload.PostedFile.FileName;
//Create an image object from the uploaded file
System.Drawing.Image UploadedImage = System.Drawing.Image.FromStream(flLogoUpload.PostedFile.InputStream);
//Determine width and height of uploaded image
float UploadedImageWidth = UploadedImage.PhysicalDimension.Width;
float UploadedImageHeight = UploadedImage.PhysicalDimension.Height;
Response.Write( [...]

Read Full Post »

here are some Regular expressions for html parsing . you can use it in your application while parsing html table to fetch data from it

 Table Expression  = “<table[^>]*>(.*?)</table>”  

  Header Expression  = “<th[^>]*>(.*?)</th>”  

  Row Expression  = “<tr[^>]*>(.*?)</tr>”  

  Column Expression  = “<td[^>]*>(.*?)</td>”  

 

Read Full Post »