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...
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...
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
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...
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...
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?
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.
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...
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.
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...
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...
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.
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.