demausdauth's Profile User Rating: -----

Reputation: 179 Stalwart
Group:
Expert
Active Posts:
655 (0.38 per day)
Joined:
03-February 10
Profile Views:
13,157
Last Active:
User is online 22 minutes ago
Currently:
Viewing Forum: ASP.NET

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Saturn
Dream Kudos:
50
Icon   demausdauth Getting frustrated with paydays -- nothing left :(

Posts I've Made

  1. In Topic: Returning object from function call gives me '800a03f3' error

    Posted 17 Oct 2014

    See if you can upgrade to ASP.NET before you go insane, IMO.
  2. In Topic: Deleted Handler keeps coming back.

    Posted 9 Oct 2014

    Check the design properties of PortfolioCombox and clear anything in the KeyDown event.
  3. In Topic: RepeatColumns doesn't work

    Posted 7 Oct 2014

    To get the five images that you are expecting - your select statement needs to return 5 rows of data.

    For example:
    Assuming your data is something like this: (since I don't know your database schema - I will make up some stuff up)
    Id(PK)  UserId     ImageAltText   ImageUrl
    1       4          My Image 1     userId4Image1.jpg
    2       4          My Image 2     userId4Image2.jpg
    3       4          My Image 3     userId4Image3.jpg
    4       4          My Image 4     userId4Image4.jpg
    5       4          My Image 5     userId4Image5.jpg
    6       3          My Image 1     userId3Image1.jpg
    7       3          My Image 2     userId3Image2.jpg
    8       3          My Image 3     userId3Image3.jpg
    9       3          My Image 4     userId3Image4.jpg
    10      3          My Image 5     userId3Image5.jpg
    
    



    SELECT * FROM [portfolio] where userID = 3 returns the following:


    Id      UserId     ImageAltText   ImageUrl
    6       3          My Image 1     userId3Image1.jpg
    7       3          My Image 2     userId3Image2.jpg
    8       3          My Image 3     userId3Image3.jpg
    9       3          My Image 4     userId3Image4.jpg
    10      3          My Image 5     userId3Image5.jpg
    
    



    Your datalist code should be something like this:
    <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="5" RepeatDirection = "RepeatDirection.Horizontal" Width="230px">
         <ItemTemplate>
              <asp:Image ID="userImage" runat="server" CssClass="image2" Height="171px" ImageUrl='<%# Eval("ImageUrl") %>' AlternateText='<%# Eval("ImageAltText") %>' Width="199px" />
         </ItemTemplate>
    </asp:DataList>
    
    


    Since I have 5 rows of data returned, the datalist will parse that into five columns based on the Repeat Columns and Repeat Direction properties.

    I added the Repeat Direction property since you were missing it. I may have it a bit wrong but when adding it to your code you should be able to see with intellisence.

    If you are returning a single row of data with five fields for the images - then you will need to adjust your item template to display all five fields of data. The thing to remember and take away from this - the Item Template will parse whatever fields of data are available in a single row of data - for each row that the datalist source is handed. If it gets 10 rows of data it will instantiate 10 Item Templates and arrange them based on the repeat properties.
  4. In Topic: Weird cache problem HttpRequest

    Posted 1 Oct 2014

    I know I always seem to run into something similar with css files. Not sure if it will work with an web request, but you could try something along these lines:

    Dim request2 As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(String.Format("http://www.myserver.com/text.txt?{0:hhmmssffff}", DateTime.Now))
    
    
    
  5. In Topic: Project Help #1. From label to Progressbar Value

    Posted 24 Sep 2014

    I have to admit - I am not sure what you are trying to accomplish. The code provided does what it should, I think you need to provide us with more of your code.

My Information

Member Title:
D.I.C Addict
Age:
Age Unknown
Birthday:
February 2
Gender:
Location:
Minnesota
Interests:
my family, reading, programming, DDO
Full Name:
Aaron
Years Programming:
8
Programming Languages:
VB.NET, C#.NET, ASP.NET, SharePoint 2007 - 2010 development,
Javascript

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    .nethelp Icon

    07 Apr 2012 - 14:31
    why did u put -1 on my reputation coz u know better? werent u like me before ? thanks anyways this truely shows ur good spirit and what a good mentor u are .
    bye
  2. Photo

    .nethelp Icon

    07 Apr 2012 - 14:31
    why did u put -1 on my reputation coz u know better? werent u like me before ? thanks anyways this truely shows ur good spirit and what a good mentor u are .
    bye
  3. Photo

    Guest 

    29 Jun 2010 - 13:54
    http://www.dreamincode.net/forums/topic/179550-updatepanels-placeholders-and-usercontrols/
  4. Photo

    joker_1 Icon

    13 Jun 2010 - 21:37
    Hi quick question.. What is the "e" argument??
    thanks heaps
  5. Photo

    demausdauth Icon

    11 Jun 2010 - 06:05
    lol -- not trying to break any records
  6. Photo

    CharlieMay Icon

    10 Jun 2010 - 18:31
    Just wanted to say, you keep answering questions like you do and your rep is going to sky-rocket.
Page 1 of 1