Click here to Skip to main content
15,887,898 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to handle Invalid Session State on callback Pin
Kornfeld Eliyahu Peter1-Jul-14 19:14
professionalKornfeld Eliyahu Peter1-Jul-14 19:14 
GeneralRe: How to handle Invalid Session State on callback Pin
David Mujica2-Jul-14 2:44
David Mujica2-Jul-14 2:44 
AnswerRe: How to handle Invalid Session State on callback Pin
Kornfeld Eliyahu Peter2-Jul-14 2:51
professionalKornfeld Eliyahu Peter2-Jul-14 2:51 
GeneralRe: How to handle Invalid Session State on callback Pin
David Mujica2-Jul-14 10:39
David Mujica2-Jul-14 10:39 
GeneralRe: How to handle Invalid Session State on callback Pin
Kornfeld Eliyahu Peter2-Jul-14 16:50
professionalKornfeld Eliyahu Peter2-Jul-14 16:50 
QuestionHow to populate Model that has a property referring to detail\child table in MVC 4 Pin
jeAntoni1-Jul-14 6:56
jeAntoni1-Jul-14 6:56 
AnswerRe: How to populate Model that has a property referring to detail\child table in MVC 4 Pin
Gourab Bose8-Jul-14 21:28
Gourab Bose8-Jul-14 21:28 
QuestionResize image without change in master image Pin
mor kan1-Jul-14 4:26
mor kan1-Jul-14 4:26 
i have a image in database.
i want change size my image in html website without change to master image.
i used this code for resize me image:
C#
string newPathToSave = @"\Images\Thumbnail\sample.jpg";
MemoryStream memory = new MemoryStream(File.ReadAllBytes("./Images/run.png"));
Image img = Image.FromStream(memory);

System.Drawing.Bitmap bmpResized = new System.Drawing.Bitmap(img, 248, 80);
bmpResized.Save(memory, img.RawFormat);
 bmpResized.Save(newPathToSave);
img.Dispose();
bmpResized.Dispose();

i use this namespace:
C#
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Drawing;
using System.Drawing.Bitmap;
using System.IO;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;


but,i get error :
Error  10  A using namespace directive can only be applied to namespaces; 'System.Drawing.Bitmap' is a type not a namespace    F:\Education\Education\sendNewsPage.aspx.cs 15  7   Education

AnswerRe: Resize image without change in master image Pin
Richard Deeming1-Jul-14 5:49
mveRichard Deeming1-Jul-14 5:49 
GeneralRe: Resize image without change in master image Pin
mor kan1-Jul-14 7:58
mor kan1-Jul-14 7:58 
GeneralRe: Resize image without change in master image Pin
mor kan1-Jul-14 8:03
mor kan1-Jul-14 8:03 
GeneralRe: Resize image without change in master image Pin
Richard Deeming1-Jul-14 8:31
mveRichard Deeming1-Jul-14 8:31 
Questionctl Prefix in ClientID Pin
Ali Al Omairi(Abu AlHassan)30-Jun-14 2:22
professionalAli Al Omairi(Abu AlHassan)30-Jun-14 2:22 
AnswerRe: ctl Prefix in ClientID Pin
Kornfeld Eliyahu Peter30-Jun-14 3:29
professionalKornfeld Eliyahu Peter30-Jun-14 3:29 
GeneralRe: ctl Prefix in ClientID Pin
Ali Al Omairi(Abu AlHassan)1-Jul-14 0:41
professionalAli Al Omairi(Abu AlHassan)1-Jul-14 0:41 
AnswerRe: ctl Prefix in ClientID Pin
Kornfeld Eliyahu Peter1-Jul-14 0:43
professionalKornfeld Eliyahu Peter1-Jul-14 0:43 
GeneralRe: ctl Prefix in ClientID Pin
Ali Al Omairi(Abu AlHassan)1-Jul-14 21:51
professionalAli Al Omairi(Abu AlHassan)1-Jul-14 21:51 
AnswerRe: ctl Prefix in ClientID Pin
Kornfeld Eliyahu Peter1-Jul-14 21:54
professionalKornfeld Eliyahu Peter1-Jul-14 21:54 
Questioncms open source suggesions Pin
Tumtum2126-Jun-14 23:34
Tumtum2126-Jun-14 23:34 
AnswerRe: cms open source suggesions Pin
thatraja26-Jun-14 23:39
professionalthatraja26-Jun-14 23:39 
QuestionUmbraco 6 help please , have an error Pin
Tumtum2126-Jun-14 23:32
Tumtum2126-Jun-14 23:32 
AnswerRe: Umbraco 6 help please , have an error Pin
Richard Deeming27-Jun-14 2:26
mveRichard Deeming27-Jun-14 2:26 
Questionasp.net Emergency Assistance Pin
ozanadiaa26-Jun-14 22:36
ozanadiaa26-Jun-14 22:36 
AnswerRe: asp.net Emergency Assistance Pin
thatraja26-Jun-14 23:36
professionalthatraja26-Jun-14 23:36 
SuggestionRe: asp.net Emergency Assistance Pin
Thanks787226-Jun-14 23:47
professionalThanks787226-Jun-14 23:47 

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.