Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: peebman2000
  • Order by date
  1. peebman2000

    Dropdownlist error

    Nevermind I got it to work.
  2. peebman2000

    Dropdownlist error

    Okay guys, this is vb code, that i'm struggleing with. I have a dropdownlist called DropDownlist1 and I'm trying to insert what ever value the user selects from the dropdown list into my database. I"m getting errors, and I know I have the dropdownlist coded wrong somehow, but I don't know how to...
  3. peebman2000

    Getting An Error

    Hello below is the error I'm getting when I try running my page. The page just has some labels and text boxes with requiredfieldvalidators. I also have ajax imports, but I don't think the ajax is affecting the error. I don't know why i'm getting this error below, would anyone know why? Let me...
  4. peebman2000

    error message when creating e-mail instance

    Okay I tried and it gives an error saying System.web.mail.mailmessage is obsolet: the recommended alternative is system.net.mail.mailmessage. My form is in VS2005, I just don't understand it. FYI i'm importing system.web.mail and system.net
  5. peebman2000

    error message when creating e-mail instance

    It didn't work, does anyone have any suggestions?
  6. peebman2000

    error message when creating e-mail instance

    I tried and 'dim mailmsg as new mailmessage()' still gives and error of mailmessage is not defined. Any other suggestions?
  7. peebman2000

    error message when creating e-mail instance

    Hello everyone, if you are familar with my username Peebman2000, i'm a beginner programmer with alot of questions. Anyway below is my code to send emails with an attachment. Where I declare "mailmsg as new mailmessage(textemail.text, toaddress)", i'm getting an error message of "type...
  8. peebman2000

    How to openfile an existing file in notepad

    Hey guys thanks for the all the help and suggestions, but I got it. I found some other code online and it worked. I imported System.diagnostic.Process. It opens my file in notepad. Earthandfire you had a good Idea. Thanks again. Protected Sub Button2_Click(ByVal sender As Object, ByVal e As...
  9. peebman2000

    How to openfile an existing file in notepad

    I commented out the show opefile dialog, it now says Process is not declared as my error. I tried importing windows.dorms.filedialog and I get another error. I don't know, any other suggestion on how to open an existing text file in notepad?
  10. peebman2000

    How to openfile an existing file in notepad

    For some reason I'm getting errors 1. " type 'openfiledialog' is not defined. 2. Name 'process' is not declared. I'm importing system.io, I don't know why i'm getting errors and its not working for me. Any other suggestions.
  11. peebman2000

    How to openfile an existing file in notepad

    Hey guys, i'm trying to create a button in my app to open a text file from the c: drive in notepad. I'm getting errors with the code I found below. Does anyone know how this code I found works? Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
  12. peebman2000

    write out a string as a space if date is null or nothing

    Right kind of, Sorwen they pay_period_end is set to 01/01/1900 if there is no date found in the text file when its reading it. I don't want that, I want it to be set to "" if there is no date found in the text file when its being read. Any Ideas and drink some OJ.
  13. peebman2000

    write out a string as a space if date is null or nothing

    Hey everyone, peebman2000 needs help again; still on the same project. This is my last issue though, well it should be. Anyway below is my code and look at the pay_period_end substring within the IsDate if statement. What I’m trying to do is when it reads the text file if the isdate is false I...
  14. peebman2000

    Conversion Error

    Hey guys it’s me I’m back, I’m a beginner programmer, so this is why I have some many questions. Anyway on my code below where It begins the IF statement “If Right(dept, 6) >= 1011100 and Right(dept, 6) <= 101380 and left (dept, 3) = “DAS” then Payroll = “000” Address1= payroll End if”…I’m...
  15. peebman2000

    Regular Expression Validator

    Hey guys thanks for all of your replys, I tried VBKris method and it worked and I found the Regular expression libray at http://regexlib.com/Search.aspx?k=file%20type and that worked too. Thanks for all your replys. Keep an ey out for me, I'll be post some more questions. Thanks again.
  16. peebman2000

    Regular Expression Validator

    Hello everyone, I have using the regular expression validator for an app to only upload .txt files only. When I run the app and I choose file other than .txt file it shows my validation error, but when I choose a .txt file also it still shows my validation error. It basically shows the...
  17. peebman2000

    Reformat a phone number thats a string

    Hey jbenson001, that worked, I did it this way though phone = Replace(phone, "/", "") phone = Replace(phone, "-", "") Thanks for the advise.
  18. peebman2000

    Reformat a phone number thats a string

    Okay I'm back, still the same project. I’m needing help on how to reformat a phone number which is being read in as a string. It’s being read from a text file in the format of 222/222-2222. I’m needing to write the phone number in the format of 2222222222 to another text file. I’ve tried the...
  19. peebman2000

    Converting a string into a date format

    Sorry ca8msm , I guess I didn't. Anyway I found a function on line to check the value in the string, I found this code below and it works now. Thanks for the reply. Private Shared Function IsDate(ByVal sDate As String) As Boolean Dim dt As DateTime Dim isDate1 As Boolean = True...
  20. peebman2000

    Converting a string into a date format

    Okay I’m back, again I’m a newbie still working on the same project. My project basically works now, its almost done; but I’m trying to convert a string into a date for each line it reads from the uploaded text file. Now in the text file its reading from the date is formatted at 2005-10-16...

Part and Inventory Search

Back
Top