Search

You searched for the word(s): userid:873230

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?
  • 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
  • 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 >
  • 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 »