Click here to Skip to main content
15,910,886 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to open the download page in another window Pin
Calin Tatar25-Feb-09 0:37
Calin Tatar25-Feb-09 0:37 
QuestionHow to redirec From Https to Http page in same application Pin
jainmravi24-Feb-09 22:36
jainmravi24-Feb-09 22:36 
Questionerror in reading file Pin
meghamaharshi24-Feb-09 22:12
meghamaharshi24-Feb-09 22:12 
AnswerRe: error in reading file Pin
N a v a n e e t h24-Feb-09 22:17
N a v a n e e t h24-Feb-09 22:17 
GeneralRe: error in reading file Pin
meghamaharshi24-Feb-09 22:29
meghamaharshi24-Feb-09 22:29 
GeneralRe: error in reading file Pin
Expert Coming24-Feb-09 22:33
Expert Coming24-Feb-09 22:33 
GeneralRe: error in reading file Pin
meghamaharshi24-Feb-09 22:38
meghamaharshi24-Feb-09 22:38 
QuestionImage Saving into SQL Database Pin
Robymon24-Feb-09 21:23
Robymon24-Feb-09 21:23 
am resizing the uploaded image and also adding the watermark, that code as follows, but now am saving the image into local path, i want to save this image into sql server database. how can i do that. can i get some source code for that.


int thumbWidth = 0;
System.Drawing.Image image = System.Drawing.Image.FromFile(cmdBrowse.PostedFile.FileName);
if (image.Width > 500)
{
thumbWidth = 500;
}
else
{
thumbWidth = image.Width;
}
int srcWidth = image.Width;
int srcHeight = image.Height;
Decimal sizeRatio = ((Decimal)srcHeight / srcWidth);
int thumbHeight = Decimal.ToInt32(sizeRatio * thumbWidth);
Bitmap bmp = new Bitmap(thumbWidth, thumbHeight);
System.Drawing.Graphics gr = System.Drawing.Graphics.FromImage(bmp);
gr.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
gr.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
gr.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High;
System.Drawing.Rectangle rectDestination = new System.Drawing.Rectangle(0, 0, thumbWidth, thumbHeight);
gr.DrawImage(image, rectDestination, 0, 0, srcWidth, srcHeight, GraphicsUnit.Pixel);
Font font = new Font("Verdana", 14, FontStyle.Bold, GraphicsUnit.Pixel);
Color color = Color.FromArgb(100, 0, 0, 0);
Point pt = new Point(2, 3);
SolidBrush sbrush = new SolidBrush(color);
gr.DrawString("www.Test.com", font, sbrush, pt);
bmp.Save("E:/Images/Test.bmp");
bmp.Dispose();
image.Dispose();
AnswerRe: Image Saving into SQL Database Pin
N a v a n e e t h24-Feb-09 21:28
N a v a n e e t h24-Feb-09 21:28 
GeneralRe: Image Saving into SQL Database Pin
Robymon24-Feb-09 22:03
Robymon24-Feb-09 22:03 
AnswerRe: Image Saving into SQL Database Pin
N a v a n e e t h24-Feb-09 22:04
N a v a n e e t h24-Feb-09 22:04 
QuestionAdd control in UpdatePanel Pin
mehrdadc4824-Feb-09 20:36
mehrdadc4824-Feb-09 20:36 
AnswerRe: Add control in UpdatePanel Pin
sarang_k24-Feb-09 22:47
sarang_k24-Feb-09 22:47 
AnswerRe: Add control in UpdatePanel Pin
Mark Graham25-Feb-09 1:01
Mark Graham25-Feb-09 1:01 
Questionstring Encryption/Decryption using AES Algorithm in asp.net Pin
mani.thirumalai24-Feb-09 19:46
mani.thirumalai24-Feb-09 19:46 
AnswerRe: string Encryption/Decryption using AES Algorithm in asp.net Pin
Christian Graus24-Feb-09 20:15
protectorChristian Graus24-Feb-09 20:15 
GeneralRe: string Encryption/Decryption using AES Algorithm in asp.net Pin
mani.thirumalai24-Feb-09 20:40
mani.thirumalai24-Feb-09 20:40 
GeneralRe: string Encryption/Decryption using AES Algorithm in asp.net Pin
N a v a n e e t h24-Feb-09 21:18
N a v a n e e t h24-Feb-09 21:18 
GeneralRe: string Encryption/Decryption using AES Algorithm in asp.net Pin
mani.thirumalai24-Feb-09 22:17
mani.thirumalai24-Feb-09 22:17 
QuestionImport Excel Option Pin
Guvera24-Feb-09 19:34
Guvera24-Feb-09 19:34 
AnswerRe: Import Excel Option Pin
Christian Graus24-Feb-09 19:39
protectorChristian Graus24-Feb-09 19:39 
AnswerRe: Import Excel Option Pin
Jörgen Andersson24-Feb-09 20:38
professionalJörgen Andersson24-Feb-09 20:38 
AnswerRe: Import Excel Option Pin
Abhishek Sur24-Feb-09 21:22
professionalAbhishek Sur24-Feb-09 21:22 
GeneralRe: Import Excel Option Pin
Jörgen Andersson24-Feb-09 21:55
professionalJörgen Andersson24-Feb-09 21:55 
GeneralRe: Import Excel Option Pin
Greg Chelstowski24-Feb-09 22:28
Greg Chelstowski24-Feb-09 22:28 

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

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