Click here to Skip to main content
15,880,891 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: basic questions about viewstate Pin
ThetaClear28-Aug-13 7:02
ThetaClear28-Aug-13 7:02 
QuestionHow to insert Header Rows into Gridview with custom method? Pin
arcadeRob26-Aug-13 6:57
arcadeRob26-Aug-13 6:57 
QuestionMenu Navigation Pin
Codes DeCodes26-Aug-13 0:37
Codes DeCodes26-Aug-13 0:37 
AnswerRe: Menu Navigation Pin
Paramu197326-Aug-13 4:10
Paramu197326-Aug-13 4:10 
GeneralRe: Menu Navigation Pin
Codes DeCodes26-Aug-13 18:48
Codes DeCodes26-Aug-13 18:48 
AnswerRe: Menu Navigation Pin
Priyanka Bhagwat28-Aug-13 21:33
professionalPriyanka Bhagwat28-Aug-13 21:33 
GeneralRe: Menu Navigation Pin
Codes DeCodes30-Aug-13 0:45
Codes DeCodes30-Aug-13 0:45 
QuestionUpdatePanel Image -Update Pin
Paramu197325-Aug-13 21:53
Paramu197325-Aug-13 21:53 
Hi, after to may places, I came here to clear my wavering mind..because this is the
place which helped me in many areas...

My requirement is to update the updatepanel image after doing the round corner image works...
Also without roundcorner image functions, it's working fine...But Iam looking to update the
updatepanel after doing the roundcorner image functions..

My Codes..
HTML
protected void Timer1_Tick(object sender, EventArgs e)
        {
            NameValueCollection MyImgList = new NameValueCollection();
            MyImgList.Add("Img1", "~/MyImages/Picture1.jpg");
            MyImgList.Add("Img2", "~/MyImages/Picture2.jpg");
            MyImgList.Add("Img3", "~/MyImages/Picture3.jpg");
            Random Rnd = new Random();
            int Indx = Rnd.Next(0, 4);
            //Image1.ImageUrl = MyImgList[Indx].ToString();
            // ********** Until here working fine...***************

            //Round Corner Image works...
            string path = Server.MapPath(MyImgList[Indx].ToString());
            int roundedDia = 50;
            using (System.Drawing.Image imgin = System.Drawing.Image.FromFile(path))
            {
                System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(imgin.Width, imgin.Height);
                Graphics g = Graphics.FromImage(bitmap);
                g.Clear(Color.White);
                Brush brush = new System.Drawing.TextureBrush(imgin);
                FillRoundedRectangle(g, new Rectangle(0, 0, imgin.Width, imgin.Height), roundedDia, brush);
                // done with drawing dispose graphics object.
                g.Dispose();
                // Stream Image to client.
                Response.Clear();
                Response.ContentType = "image/pjpeg";
                bitmap.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
                Response.End();
                // dispose bitmap object.
                bitmap.Dispose();
            }

            Image1.ImageUrl = ?????? how to mention here ?
                              Because the confusion is image get disposed ????
        }


Thanks for the guidancesThumbs Up | :thumbsup:
AnswerRe: UpdatePanel Image -Update Pin
jkirkerx26-Aug-13 6:52
professionaljkirkerx26-Aug-13 6:52 
QuestionDotnetnuke bootstrap Pin
sarang_k25-Aug-13 2:18
sarang_k25-Aug-13 2:18 
Questionhow to run java command on web server Pin
ianoseb24-Aug-13 23:12
ianoseb24-Aug-13 23:12 
AnswerRe: how to run java command on web server Pin
Bernhard Hiller25-Aug-13 21:24
Bernhard Hiller25-Aug-13 21:24 
QuestionViewing password Pin
larsp77723-Aug-13 3:52
larsp77723-Aug-13 3:52 
AnswerRe: Viewing password Pin
Forbiddenx23-Aug-13 4:37
Forbiddenx23-Aug-13 4:37 
AnswerRe: Viewing password Pin
Boipelo24-Aug-13 10:43
Boipelo24-Aug-13 10:43 
GeneralRe: Viewing password Pin
larsp77724-Aug-13 22:30
larsp77724-Aug-13 22:30 
GeneralRe: Viewing password Pin
Boipelo25-Aug-13 10:11
Boipelo25-Aug-13 10:11 
GeneralRe: Viewing password Pin
Deflinek27-Aug-13 4:24
Deflinek27-Aug-13 4:24 
GeneralRe: Viewing password Pin
larsp77727-Aug-13 21:26
larsp77727-Aug-13 21:26 
SuggestionRe: Viewing password Pin
Richard MacCutchan27-Aug-13 22:34
mveRichard MacCutchan27-Aug-13 22:34 
GeneralRe: Viewing password Pin
larsp77727-Aug-13 23:57
larsp77727-Aug-13 23:57 
GeneralRe: Viewing password Pin
Richard MacCutchan28-Aug-13 1:08
mveRichard MacCutchan28-Aug-13 1:08 
GeneralRe: Viewing password Pin
larsp77728-Aug-13 1:29
larsp77728-Aug-13 1:29 
GeneralRe: Viewing password Pin
Richard MacCutchan28-Aug-13 1:52
mveRichard MacCutchan28-Aug-13 1:52 
GeneralRe: Viewing password Pin
larsp77728-Aug-13 2:01
larsp77728-Aug-13 2:01 

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.