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:873230
More Search Options
RSS Available
Matching Posts
Automatic photo resizing
My program takes the photos and saves them into the correct folder while also putting the link in correctly. The only problem I'm still having is that it isn't resizing the photos for me like it should be. Below is the C# code. Any ideas on how to make it resize the photos correctly? private void UploadImage() { try { int file_append = 0; if (VTUpload.HasFile) { //Check selected file is image file or not if (CheckFileType(VTUpload.FileName)) { string type = VTUpload.PostedFile.ContentType;
Posted to
Getting Started
(Forum)
by
tcreynolds
on 8/28/2009
Re: Automatic photo resizing
Tried the code above with some tweaks to make it valid C#, but it still doesn't seem to be saving the photo. Any idea why it isn't saving it in the thumbimages folder? Code is below: string Filename = VTUpload.FileName; string ThumbnailPath = Server.MapPath("/ThumbImages/") + Filename; System.Drawing.Image originalImage; System.Drawing.Bitmap resizedCanvas; System.Drawing.Graphics objGraphics; // Get a stream from the file Stream newstream = new System.IO.MemoryStream(VTUpload.FileBytes
Posted to
Getting Started
(Forum)
by
tcreynolds
on 8/28/2009
Re: Automatic photo resizing
This is the error I get: "A generic error occurred in GDI+." It just pops up at the top of the page. Also, I have the code enclosed in the same try catch as it was before, minus the Response.Redirect so I could stick around to see errors. Any ideas? EDIT: Reading through some articles, the GDI issue seems to have something to do with not using image.dispose() at certain key parts, though I'm vague on when it should be used. Any experience with this sort of problem?
Posted to
Getting Started
(Forum)
by
tcreynolds
on 8/28/2009
Re: Insert javascript code into SQL field
I definitely need it in the database, because I need it spit back out by the repeater control on another page. You think parameters would help with the problem of the database not taking it?
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
tcreynolds
on 8/23/2009
New Table Row for Repeater Control after 3 items/New page after 9.
I need for my repeater control to make a new table row every 3 items and have no more than 9 to a page. Can I do this with the repeater control? Below is what I have currently: <asp:Repeater ID="SPSRepeater" runat="server"> <HeaderTemplate> <Table width="500px" style="font: 8pt verdana; float:left;" /> </HeaderTemplate> <ItemTemplate> <th style="width: 150px;"> <%# DataBinder.Eval(Container.DataItem, "SPSCode"
Posted to
Data Presentation Controls
(Forum)
by
tcreynolds
on 8/23/2009
Insert javascript code into SQL field
For this form I'm trying to set it up so an administrator can input a javascript widget from another site into a table in the database. The data will then be pulled into a table on another page to order all of these widgets. However, right now the data is not going into the database like it should be. I set ValidateRequest="false" in the Page Directive so that it wouldn't give me an error, but still no luck. Below is my C# code, though I strongly suspect the problem is the database
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
tcreynolds
on 8/21/2009
Re: Insert javascript code into SQL field
Here it is: <script type="text/javascript" src=" http://singlepropertysites.com/display/_widget.php?s=10&iframeH=277px&iframeW=182px&iframeOption=true&idp=41090"></script >
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
tcreynolds
on 8/21/2009
Re: Javascript Ad in AdRotator Control
Sorry. I didn't explain well. The widget does not rotate. I have 5-10 widgets I would like to be rotated since each is for a different property. Is there a way to make that work?
Posted to
Getting Started
(Forum)
by
tcreynolds
on 8/19/2009
Javascript Ad in AdRotator Control
I'm using an adrotator control and would like to, instead of the normal adrotator fields, have it rotate ads based on a javascript widget from another site. Is there any way to do this?
Posted to
Getting Started
(Forum)
by
tcreynolds
on 8/18/2009
Commas for Price-Repeater Control
I've just gotten my repeater control working but can't figure out how to put commas for every three digits in front of the decimal like a normal price would have. Is there an easy way to do this? Here is the code: <asp:Repeater ID="VTRepeater" runat="server"> <HeaderTemplate> <Table border="1" width="500px" style="font: 8pt verdana; float:left;" /> <th> Picture </th> <th> Address </th> <th> Price
Posted to
Data Presentation Controls
(Forum)
by
tcreynolds
on 8/17/2009
Page 1 of 17 (162 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online