Click here to Skip to main content
15,923,051 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ObjectDataSource in a label Pin
Mircea Grelus16-Jun-06 15:56
Mircea Grelus16-Jun-06 15:56 
GeneralRe: ObjectDataSource in a label Pin
xps.tsunami17-Jun-06 9:02
xps.tsunami17-Jun-06 9:02 
GeneralRe: ObjectDataSource in a label Pin
Mircea Grelus17-Jun-06 9:44
Mircea Grelus17-Jun-06 9:44 
AnswerRe: Shadow on a label Pin
RichardGrimmer16-Jun-06 5:14
RichardGrimmer16-Jun-06 5:14 
QuestionHow to transfer data from Mobile Wireless Application to Web Application using GPRS in .Net? Pin
selatan7916-Jun-06 4:11
selatan7916-Jun-06 4:11 
AnswerRe: How to transfer data from Mobile Wireless Application to Web Application using GPRS in .Net? Pin
mnaveed16-Jun-06 5:12
mnaveed16-Jun-06 5:12 
Questionhow to show image into thumbnail [modified] Pin
surshbabuk16-Jun-06 3:25
surshbabuk16-Jun-06 3:25 
AnswerRe: how to show image into thumbnail Pin
mnaveed16-Jun-06 5:05
mnaveed16-Jun-06 5:05 
try this
 public static Bitmap CreateThumbnail(string lcFilename,int lnWidth, int lnHeight)<br />
<br />
  {<br />
            System.Drawing.Bitmap bmpOut = null;<br />
            try <br />
            {<br />
                  Bitmap loBMP = new Bitmap(lcFilename);<br />
                  ImageFormat loFormat = loBMP.RawFormat;<br />
                  decimal lnRatio;<br />
                  int lnNewWidth = 0;<br />
                  int lnNewHeight = 0;<br />
<br />
                  //*** If the image is smaller than a thumbnail just return it<br />
                  if (loBMP.Width < lnWidth && loBMP.Height < lnHeight) <br />
<br />
                        return loBMP;<br />
<br />
                  if (loBMP.Width > loBMP.Height)<br />
<br />
                  {<br />
                      lnRatio = (decimal) lnWidth / loBMP.Width;<br />
<br />
                        lnNewWidth = lnWidth;<br />
<br />
                        decimal lnTemp = loBMP.Height * lnRatio;<br />
<br />
                        lnNewHeight = (int)lnTemp;<br />
<br />
                  }<br />
<br />
                  else <br />
<br />
                  {<br />
                        lnRatio = (decimal) lnHeight / loBMP.Height;<br />
<br />
                        lnNewHeight = lnHeight;<br />
<br />
                        decimal lnTemp = loBMP.Width * lnRatio;<br />
<br />
                        lnNewWidth = (int) lnTemp;<br />
<br />
                  }<br />
                  // System.Drawing.Image imgOut = <br />
<br />
                  //      loBMP.GetThumbnailImage(lnNewWidth,lnNewHeight,<br />
<br />
                  //                              null,IntPtr.Zero);<br />
                 <br />
                  // *** This code creates cleaner (though bigger) thumbnails and properly<br />
<br />
                  // *** and handles GIF files better by generating a white background for<br />
<br />
                  // *** transparent images (as opposed to black)<br />
<br />
                  bmpOut = new Bitmap(lnNewWidth, lnNewHeight);<br />
<br />
                  Graphics g = Graphics.FromImage(bmpOut);<br />
<br />
                  g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;<br />
<br />
                  g.FillRectangle( Brushes.White,0,0,lnNewWidth,lnNewHeight);<br />
<br />
                  g.DrawImage(loBMP,0,0,lnNewWidth,lnNewHeight);<br />
<br />
                  loBMP.Dispose();<br />
<br />
            }<br />
<br />
            catch <br />
<br />
            {<br />
                  return null;<br />
            }<br />
<br />
            return bmpOut;<br />
      }<br />
<br />
}




Nav.
QuestionAnother querry problem Pin
Commickey16-Jun-06 3:08
Commickey16-Jun-06 3:08 
AnswerRe: Another querry problem Pin
Paddy Boyd16-Jun-06 3:35
Paddy Boyd16-Jun-06 3:35 
QuestionTool to create screen shot for web site Pin
cppdotnet16-Jun-06 2:48
cppdotnet16-Jun-06 2:48 
QuestionCalender Control(Urgent) Pin
varshavmane16-Jun-06 1:31
varshavmane16-Jun-06 1:31 
QuestionHow to integrate an ACR30 smart card reader with ASP.NET(using VB.NET) Pin
ultimatesaad16-Jun-06 0:45
ultimatesaad16-Jun-06 0:45 
Questionremove special character from string Pin
yogesh m16-Jun-06 0:18
yogesh m16-Jun-06 0:18 
AnswerRe: remove special character from string Pin
Commickey16-Jun-06 3:11
Commickey16-Jun-06 3:11 
AnswerRe: remove special character from string Pin
Mircea Grelus16-Jun-06 16:01
Mircea Grelus16-Jun-06 16:01 
QuestionAdding Link Button in DataTable Pin
varshavmane16-Jun-06 0:09
varshavmane16-Jun-06 0:09 
AnswerRe: Adding Link Button in DataTable Pin
Justin_Joseph16-Jun-06 1:43
Justin_Joseph16-Jun-06 1:43 
GeneralRe: Adding Link Button in DataTable Pin
varshavmane16-Jun-06 2:14
varshavmane16-Jun-06 2:14 
GeneralRe: Adding Link Button in DataTable Pin
Mircea Grelus16-Jun-06 16:04
Mircea Grelus16-Jun-06 16:04 
QuestionGridViewUpdateEventArgs [modified] Pin
AnhTin15-Jun-06 23:53
AnhTin15-Jun-06 23:53 
Questionasp.net 2.0 setup Pin
fmardani15-Jun-06 23:36
fmardani15-Jun-06 23:36 
AnswerRe: asp.net 2.0 setup Pin
Chikuu16-Jun-06 5:11
Chikuu16-Jun-06 5:11 
Questionno frame in asp?? [modified] Pin
campbells15-Jun-06 23:34
campbells15-Jun-06 23:34 
AnswerRe: no frame in asp?? Pin
Paddy Boyd15-Jun-06 23:35
Paddy Boyd15-Jun-06 23:35 

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.