Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:812800
More Search Options
RSS Available
Matching Posts
Re: Create thumbnail and keep aspect ratio
Thanks a lot AceCorban! BTW: You are creating the original image two times, only with different names.
Posted to
System.Drawing/GDI+
(Forum)
by
cgilbu
on 9/10/2009
Create thumbnail and keep aspect ratio
Could someone tell me how to create a thumbnail 200 x 200 px out of an original image and at the same time keep the aspect ratio by cropping the image? Thanks a lot!
Posted to
System.Drawing/GDI+
(Forum)
by
cgilbu
on 9/9/2009
Re: How set an index on an array?
The case is solved! I combined kavita and kaus suggestions and came up with this solution: string [] Images = new string [30]; Images[7] = "13.jpg" ; Images[23] = "2.jpg,6.jpg,10.jpg,19.jpg" ; string ImageRow = Images[23].ToString(); string [] SplitImageName = ImageRow.Split( new char [] { ',' }); Random RandString = new Random(); string RandomImage = SplitImageName[RandString.Next(0, SplitImageName.Length)]; Response.Write(RandomImage); Kaus: Your random-thing did not
Posted to
C#
(Forum)
by
cgilbu
on 4/8/2009
Re: How set an index on an array?
Thanks for the solution, but is it not an easier way to do this? Imagine that ImageIndex 9 contains 50 ImageNames. Then I'll have to write a LOT of code! In the php-example above, it's much easier like this: $Images[23] = array('2.jpg','6.jpg','10.jpg','19.jpg'); Thanks!
Posted to
C#
(Forum)
by
cgilbu
on 4/8/2009
Re: How set an index on an array?
The hashtable can only hold one picturename per index, so I can't use it. "radomImageName" does not give me a random imagename (either 2.jpg or 3.jpg), but just a string containing "2.jpg,3.jpg". I want to be able to random get one of the imagenames (here, either 2.jpg or 3.jpg) from a specific index (here, 9). How can I do this? Thanks!
Posted to
C#
(Forum)
by
cgilbu
on 4/8/2009
Re: How set an index on an array?
Thanks, this is nice. How can I know get a random picturename from oImage[9]?
Posted to
C#
(Forum)
by
cgilbu
on 4/7/2009
How set an index on an array?
I wonder how it is possible to do like this in C#. The example is in php: $Images = array(); $Images[77] = array('13.jpg'); $Images[23] = array('2.jpg','6.jpg','10.jpg','19.jpg'); $Images[17] = array('21.jpg'); I want to be able to get a random picture from the array with index set to 23. How can I do this in C#? Thanks for any help!
Posted to
C#
(Forum)
by
cgilbu
on 4/7/2009
Re: using a editor in .net
I use this with C# and it's very good: http://www.fckeditor.net/
Posted to
Getting Started
(Forum)
by
cgilbu
on 1/24/2009
Working with arrays
Hi, I got an array like this: string [] strArray = new string [] {"Word1 Word2", " Word3 Word4 ", " Word5 Word6 ", " Word7 Word8 "}; I want to remove the first word in every block (Word1, Word3, Word5 etc), and then foreach all the blocks and get the remaining words (Word2, Word4, Word6 etc) one by one. I want the result to look something like this: Word2 Word4 Word6 etc... How can I do this? Thanks for any help!
Posted to
C#
(Forum)
by
cgilbu
on 1/23/2009
Re: Update GridView with dd/MM/yyyy?
Answer: Add this to your SqlDataSource: [DateAdded] = CONVERT(datetime, @DateAdded, 104) And remember to set the parameter as Type = String. For more information, visit: http://technet.microsoft.com/en-us/library/ms187928(SQL.90).aspx Thanks for the help!
Posted to
Data Presentation Controls
(Forum)
by
cgilbu
on 1/5/2009
Page 1 of 19 (182 items) 1
2
3
4
5
Next >
...
Last »
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online