Category: asp.net 1.1

How to get uploaded image dimensions in asp.net

How to get uploaded image dimensions in asp.net

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...

Session vs ViewState

Session vs ViewState

Session State is useful for storing values that must be persisted across multiple pages by the same user. ViewState is useful for storing serializable data that must be persisisted across PostBacks by a single...

URL Encoding in asp.net

URL Encoding in asp.net

One of way while transferring data from one page to other page is Querystring. But one problem is with Querystring is that many characters are not allowed in url.  So we must have to...

How to make better URI

How to make better URI

It should be as short as possible. Don’t sacrifice consistency or obviousness, but be brief. Organize and name things logically. ASP.NET isn’t always helpful in keeping a clean structure, so I highly recommend that...

How to write word document in asp.net

How to write word document in asp.net

You can add follwing code at page level function and called in button or page load function Void GenerateWordDoc() { string strDocBody; try { strDocBody = “<html “ + “xmlns:o=’urn:schemas-microsoft-com:office:office’ “ + “xmlns:w=’urn:schemas-microsoft-com:office:word’” +...