Click here to Skip to main content
       

ASP.NET

 
GeneralRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pinmemberkarthickpradhaban13-Feb-13 5:45 
GeneralRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pinmembersmehta.er14-Feb-13 7:10 
GeneralRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pinmemberkarthickpradhaban7-Mar-13 5:27 
QuestionDynamic width DIV next to a static width DIV Pinmemberjojoba20116-Feb-13 0:31 
AnswerRe: Dynamic width DIV next to a static width DIV PinmentorKeith Barrow6-Feb-13 12:54 
QuestionRe: Dynamic width DIV next to a static width DIV Pinmemberjojoba20116-Feb-13 18:05 
AnswerRe: Dynamic width DIV next to a static width DIV PinmemberRichard Deeming7-Feb-13 1:51 
QuestionRe: Dynamic width DIV next to a static width DIV Pinmemberjojoba201113-Feb-13 22:29 
QuestionMaster page Elements Id Pinmembermohammadkaab5-Feb-13 23:06 
AnswerRe: Master page Elements Id Pinmemberdeflinek6-Feb-13 2:54 
QuestionCrystal Report not showing PinmemberKashinath Patil5-Feb-13 22:14 
AnswerRe: Crystal Report not showing Pinmemberkarthickpradhaban11-Feb-13 4:50 
Questionconvert from Div.innerhtml to image in vb.net Pinmemberpremaa_36@yahoo.co.in5-Feb-13 1:45 
AnswerRe: convert from Div.innerhtml to image in vb.net PinmvpSandeep Mewara5-Feb-13 2:23 
Start from here: Generating ASP.NET Images on the Fly Article[^]
 
Sample:
Dim oBitmap As Bitmap = New Bitmap(468, 60)
Dim oGraphic As Graphics = Graphics.FromImage(oBitmap)
Dim oColor As System.Drawing.Color
Dim sColor As String = Request("BackgroundColor")
Dim sText As String = Request("Text")
Dim sFont As String = Request("Font")
Dim oBrush As New SolidBrush(oColor)
Dim oBrushWrite As New SolidBrush(Color.White)
oGraphic.FillRectangle(oBrush, 0, 0, 468, 60)
DrawString(String, Font, Brush, FPoint)
Dim oFont As New Font(sFont, 13)
Dim oPoint As New PointF(5F, 5F)
oGraphic.DrawString(sText, oFont, oBrushWrite, oPoint)
oBitmap.Save(Server.MapPath("generated_image.jpg"), ImageFormat.Jpeg)
//Response.Write("View the generated image <a target=""_blank"" href=""generated_image.jpg"">here</a>")
Response.ContentType = "image/jpeg"
oBitmap.Save (Response.OutputStream, ImageFormat.Jpeg)
Sandeep Mewara
Microsoft ASP.NET MVP 2012 & 2013
 

[My Latest Post(s)]:
My Blog
Server side Delimiters in ASP.NET
How to extend a WPF Textbox to Custom Picker

QuestionCrystal report PinmemberKashinath Patil4-Feb-13 20:04 
AnswerRe: Crystal report PinmvpSandeep Mewara5-Feb-13 2:11 
QuestionMobile Compatibility PinmemberMurugavel Sadagopan4-Feb-13 19:36 
AnswerRe: Mobile Compatibility PinmvpSandeep Mewara5-Feb-13 2:04 
AnswerRe: Mobile Compatibility PinmemberAnand Ranjan Pandey8-Feb-13 7:58 
QuestionConvert from HTML to PDF format Pinmemberpremaa_36@yahoo.co.in4-Feb-13 18:32 
QuestionBack up of PST while open Outlook Pinmembermayur darji4-Feb-13 18:24 
AnswerRe: Back up of PST while open Outlook PinmvpSandeep Mewara4-Feb-13 18:47 
QuestionGridview PinmemberMurugavel Sadagopan4-Feb-13 18:21 
AnswerRe: Gridview PinmemberDineshshp4-Feb-13 18:43 
AnswerRe: Gridview PinmvpSandeep Mewara4-Feb-13 18:44 
QuestionAs used in ASP MORRIS.JS. Net? Help me! PinmemberGarcia AlfredoS4-Feb-13 13:06 
AnswerRe: As used in ASP MORRIS.JS. Net? Help me! PinmvpSandeep Mewara4-Feb-13 15:56 
GeneralRe: As used in ASP MORRIS.JS. Net? Help me! PinmemberGarcia AlfredoS5-Feb-13 1:56 
QuestionHow to fetch all unique/distinct values in a GridView PinmemberAndy Tek4-Feb-13 13:05 
AnswerRe: How to fetch all unique/distinct values in a GridView PinmvpSandeep Mewara4-Feb-13 15:46 
QuestionHiding the physical path of a file in downloading PinmemberMajid Shahabfar4-Feb-13 10:27 
QuestionOne time Login needed.. Pinmemberashu20013-Feb-13 21:48 
QuestionWCF REST hosted inside ASP.NET WebForms app - 400 on production server PinmemberRichardGrimmer3-Feb-13 21:35 
QuestionTwitter connect rest api v1.1 PinmemberRockerr Black3-Feb-13 20:55 
AnswerRe: Twitter connect rest api v1.1 PinmvpSandeep Mewara3-Feb-13 21:42 
QuestionProblem with popup confirmation page using ModalExtender PinmemberNafiseh Salmani2-Feb-13 19:05 
AnswerRe: Problem with popup confirmation page using ModalExtender PinmemberBlikkies3-Feb-13 22:14 
GeneralRe: Problem with popup confirmation page using ModalExtender PinmemberNafiseh Salmani4-Feb-13 4:30 
GeneralRe: Problem with popup confirmation page using ModalExtender PinmemberNafiseh Salmani4-Feb-13 4:53 
Questionrelated to itext sharp PinmemberMember 97985411-Feb-13 19:31 
AnswerRe: related to itext sharp PinmemberAbhishek Pant1-Feb-13 23:31 
GeneralRe: related to itext sharp PinmemberMember 97985414-Feb-13 19:30 
GeneralRe: related to itext sharp PinmemberAbhishek Pant4-Feb-13 21:36 
GeneralRe: related to itext sharp PinmemberMember 97985416-Feb-13 17:41 
GeneralRe: related to itext sharp PinmemberAbhishek Pant6-Feb-13 18:09 
GeneralRe: related to itext sharp PinmemberMember 97985416-Feb-13 19:21 
GeneralRe: related to itext sharp PinmemberMember 97985416-Feb-13 18:08 
Answerrelated to itext sharp-iText use for commercial purpose PinmemberAbhishek Pant6-Feb-13 19:07 
AnswerRe: related to itext sharp PinmvpSandeep Mewara2-Feb-13 0:24 
QuestionDisplay image using handler.ashx what wrong my code PinmemberMichael511931-Jan-13 20:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 23 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid