User Profile

Collapse

Profile Sidebar

Collapse
cluce
cluce
Last Activity: Oct 1 '08, 07:40 PM
Joined: Sep 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • OK I modified my code to this:
    Code:
             Dim filepath As String = Server.MapPath("test_user_pass.csv")
            Dim pattern As String = ",(?=(?:[^""]*""[^""]*"")*(?![^""]*""))"
            Dim regex As New Regex(pattern)
            Dim sr As New StreamReader(File.OpenRead(filepath))
            Dim line As String = sr.ReadLine()
            Dim
    ...
    See more | Go to post

    Leave a comment:


  • my csv file looks like this:

    Code:
    user1	pass1	email1	first1	last1	add11	add12	city1	state1	zip1	phone1
    user2	pass2	email2	first2	last2	add11	add12	city2	state2	zip2	phone2
    user3	pass3	email3	first3	last3	add11	add12	city3	state3	zip3	phone3
    user4	pass4	email4	first4	last4	add11	add12	city4	state4	zip4	phone4
    user5	pass5	email5	first5	last5	add11	add12	city5	state5	zip5	phone5
    See more | Go to post
    Last edited by Curtis Rutland; Oct 1 '08, 03:33 PM. Reason: Added Code Tags - Please surround your code with [CODE] and [/CODE]

    Leave a comment:


  • reading a csv file and inserting it to the aspnet_membership table

    I am trying to read a csv file with user info (username, password, email, address, city, zip, state, etc.) I am inserting the username, password, email into the aspnet_memberhs ip table using the membership class and trying to insert the rest of the related info with a stored procedure into the custom table I created called aspnet_UserInfo using a one - one relationship by UserID but its not working. can someone look at my stored procedure for me?...
    See more | Go to post

  • the selected values in my checkboxlist are not adding correctly

    I am trying to add only my selected values but its only adding the first selected value in my list repeatedly to the amount of selected items. can someone help me with this?

    for example, lets say I check off 2 in my list. than I check off three other boxes are inline after 2's box in my list not before. no matter what value is in those boxes I still get 8. 2+2+2+2


    Code:
    Protected Sub Page_Load(ByVal sender As Object,
    ...
    See more | Go to post

  • the selected values in my checkboxlist are not adding correctly - ASP.NET

    I am trying to add only my selected values but its only adding the first selected value in my list repeatedly to the amount of selected items. can someone help me with this?

    for example, lets say I check off 2 in my list. than I check off three other boxes are inline after 2's box in my list not before. no matter what value is in those boxes I still get 8. 2+2+2+2


    Code:
    Protected Sub Page_Load(ByVal sender As Object,
    ...
    See more | Go to post
    Last edited by jhardman; Mar 17 '08, 02:50 PM. Reason: moved to the .NET forum, ASP forum is for "classic" ASP

  • I figuerd out this but its not adding my values correctly[
    it gives me 36 for 10 + 18

    Code:
    Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click
        Dim total as Int32
        Dim i as Int32
    
        For i=0 to CheckBoxList1.Items.Count - 1
          If CheckBoxList1.Items(i).Selected Then  
            total += Int32.Parse(CheckBoxList1.SelectedValue.ToString)
    ...
    See more | Go to post

    Leave a comment:


  • trying to add up selected values in checkboxlist

    I have some prices listed in a checkboxlist that I am trying to add up. First I was going to add the mto a list box and add them up that way but I forgot how to do it. Its been awhile and I dont have my notes with me. Need help please.
    Or fi somenoe knows any easy way to add up checkbox list values please suggest it. Also, the first loop is only adding the first selected checkbox item not all of them.

    Code:
    Protected
    ...
    See more | Go to post

  • great. thanx a million
    See more | Go to post

    Leave a comment:


  • trying to seperate my string with a space, html, or something ??

    Can someone tell me how to manipulate my body string so that when the user semds the email, the info that was in the textboxes are on different lines.

    ex.

    trying to get this:
    Sam doe
    1234 lemon st
    New Orleans, LA

    instead of like this:
    Sam doe 1234 lemon st New Orleans, LA

    Code:
        Inherits System.Web.UI.Page
    
        Protected Sub Wizard1_FinishButtonClick(ByVal
    ...
    See more | Go to post

  • cluce
    replied to trying to cascade two combo boxes??
    thanks. that worked.

    so how or when I would use the control source property?
    See more | Go to post

    Leave a comment:


  • cluce
    replied to trying to cascade two combo boxes??
    my record source for the form is nothing. I did try to use the table car but that is no different.

    Someone told me I needed to use a dlookup instead of SQL because its a control source so i tried this:

    Me.txtPrice.Con trolSource = DLookup("fldPri ce", "tblCar", "fldModel=' " & Me.cboModel & "'")

    this still didnt make any difference..
    See more | Go to post

    Leave a comment:


  • cluce
    replied to trying to cascade two combo boxes??
    I am trying to populate a textbox with a Price from a table based on selection in combo box but this only works with a combo box. can someone help me with this? Thanks in advance

    This works:
    Private Sub cboModel_AfterU pdate()
    Me.cboPrice.Row Source = "SELECT fldPrice FROM tblCar WHERE fldModel = '" & Me.cboModel & "'"
    End Sub

    This don't: ( I get a #NAME? )
    Private...
    See more | Go to post

    Leave a comment:


  • cluce
    replied to trying to cascade two combo boxes??
    I can do this functionalty with three combo boxes but a textbox is a little different.
    the control source is not working like a rowsource....
    See more | Go to post

    Leave a comment:


  • cluce
    replied to trying to cascade two combo boxes??
    I have two combo boxes and one text box.

    I have a combo box that populates from another combo box.

    And from the second combo box I want to display a price in a text box according to selection in the second combo box....
    See more | Go to post

    Leave a comment:


  • cluce
    replied to trying to cascade two combo boxes??
    thanks I got it.

    can someone tell me why I get this #Name? instead of the price in my txtprice textbox?

    Code:
    Private Sub cboModel_AfterUpdate()
    Me.txtPrice.ControlSource = "SELECT fldPrice FROM tblCar WHERE fldModel = '" & Me.cboModel & "'"
    End Sub
    See more | Go to post

    Leave a comment:


  • cluce
    started a topic trying to cascade two combo boxes??

    trying to cascade two combo boxes??

    I can't get no values in my second combo box. can someone help me with this?

    I have a table(tblCar) and 2 combo boxes)cbomake and cboModel)

    table car has five fields(ID, make, model, price)

    cboMake gets populated by this:
    Code:
    Private Sub Form_Load()
    Me.cboMake.RowSource = "SELECT DISTINCT fldMake FROM tblCar"
    End Sub
    and I am trying to populate...
    See more | Go to post

  • cluce
    started a topic how to error check if combo box is selected

    how to error check if combo box is selected

    I am trying to check and see if the user selects an item in the cbobox and if not it will display them a message but it gives me an error saying "argument not optional"

    I have tried the following snippets but neither one works
    can someone help me with this? thanks in advance

    Code:
    If Me.cboBeverages="" Or  Me.cboDoughnuts = "" Then
    MsgBox "A selection is required",
    ...
    See more | Go to post

  • whats a thrusted folder?...
    See more | Go to post

    Leave a comment:


  • cluce
    replied to how do I disable a text box in access??
    thanks I got it now.
    See more | Go to post

    Leave a comment:


  • cluce
    replied to syntax error near keyword"where"???????
    great, thanks I solved this.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...