|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Image auto sizing in asp.net1.iN ASP.NET how to do autosizing of the image, so that image will be
displayed as it is with out being squished. 1.In ASP.net While for browsing for images, i just just want to restrict the user to select only Files of type pictures (*.gif,*.jpg) Thanks in advance, -P I have a sample that generates thumbnail images by doing the resizing in
the server: http://staff.develop.com/ballen/blog/PermaLink.aspx?guid=2d8b430b-8361-416d-9df8-9aff48bf2481 -Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > 1.iN ASP.NET how to do autosizing of the image, so that image will be > displayed as it is with out being squished. > 1.In ASP.net While for browsing for images, i just just want to > restrict the > user to select only Files of type pictures (*.gif,*.jpg) > Thanks in advance, > > -P > Thanks for educating, but am uploading one image at any point of time and
every time image will be of differnet resolution, so for this do i have to always use thumbnail images and then how would i restrict the user to select only jpeg or gif images. thanks again, any help on this is most welcome, -P Show quoteHide quote "Brock Allen" wrote: > I have a sample that generates thumbnail images by doing the resizing in > the server: > > http://staff.develop.com/ballen/blog/PermaLink.aspx?guid=2d8b430b-8361-416d-9df8-9aff48bf2481 > > -Brock > DevelopMentor > http://staff.develop.com/ballen > > > > > 1.iN ASP.NET how to do autosizing of the image, so that image will be > > displayed as it is with out being squished. > > 1.In ASP.net While for browsing for images, i just just want to > > restrict the > > user to select only Files of type pictures (*.gif,*.jpg) > > Thanks in advance, > > > > -P > > > > > > > Thanks for educating, but am uploading one image at any point of time Well, you could always do the resizing at upload time and store that at a > and every time image will be of differnet resolution, standard resolution/size. > so for this do i have to always use thumbnail images and then how You'd have to look into the Bitmap class more to see what image formats it > would i restrict the user to select only jpeg or gif images. supports. You can never restrict what type of file a user uploads, so you'll just have to write very defensive code on the upload. -Brock DevelopMentor http://staff.develop.com/ballen
CreateUserWizard Control
Hidden Controls yield inconsistent behavior on Postbacks Automatic updating an ASPX page DropDownList - Programmatically setting the background colour of i Drop down list viewstate; please HELP! Can I set initial focus from server-side into textbox? custom webcontrol : render and then get "html" result in server side VS.NET 2003 using ASP.NET & VB.NET -- IDE design time problems? Adding control to datagrid Column span datagrid header |
|||||||||||||||||||||||