Search results for query: *

  1. W

    Drop down list value remain selected even after submit button click

    Hi, I have 2 drop down lists and 1 submit button. It works such that after the user has selected values from BOTH the drop down lists, then the user will click a "Search" button. My problem is, after the user click the "Search" button, the second drop down list is no longer displayed with the...
  2. W

    Any recommended control for Sign Out Function?

    Hi, I have an HTML page being framed to 3 parts, such that the topmost frame is a SignOut.aspx page. I would like to know which control shall I opt for in order to allow user to sign out, is it Hyperlink or normal submit button? For your info, I would like to redirect the user to login page...
  3. W

    Auto Login to Website to Retrieve Useful Information

    Hi, I need to write a windows application to automatically login to a website(with username and password being provided) to retrieve some data from the website. Can someone show me an example on how to accomplish this in VB.NET? Thanks alot.
  4. W

    Error Retrieving Single Data Using ExecuteScalar Method

    GUID is my column name, its data type is unique identifier. :)
  5. W

    Error Retrieving Single Data Using ExecuteScalar Method

    Hi cjard, thanks for your reply. I tried ur suggestion, but i still receive the same error, "No default member found for type 'Guid". Actually the GetSingleData function works pretty fine in my other applications(I used this function before, no such problem). Function GetSingleData(ByVal...
  6. W

    Error Retrieving Single Data Using ExecuteScalar Method

    Hi, I received this error "No default member found for type 'Guid'." when I execute my program. db = New SqlConnection(GetConnectionString()) db.Open() Dim strSQL As String strSQL = "SELECT GUID FROM MyLog WHERE MyID = '" & strID & "'" strGUIDTracker = GetSingleData(strSQL)...
  7. W

    Automate Unzip Function

    Haha TechGnome, thanks alot! I got mixed up ledi, now I understand, thanks for your clear explanation here. :)
  8. W

    Automate Unzip Function

    Hi all, I've figured out on how to pre-select the zipped file from a specified directory, but I'm getting this error, "Cast from string "C:\temp\FileName.zip" to type 'Integer' is not valid." Below is my coding, I got this error in the bold line. May I know what does the casting error mean...
  9. W

    Automate Unzip Function

    Hi, anyone has any idea?
  10. W

    How to omit the first line when reading from a text file?

    Hi JuggaloBrotha, Ya, by placing this line oReader.ReadLine ahead of Do While oReader.Peek <> -1 Str.Append(oReader.ReadLine & Environment.NewLine) Loop really does the magic of skipping first line! Thanks for sharing. :)
  11. W

    Automate Unzip Function

    Hi, I am writing a function to unzip a zipped file, using OpenFileDialog method. Below is my coding, may I know how can I automate my unzip function, means pre-select the zipped file(without having to pop up the directory prompt to let user select the location of the zip file)? Is there any way...
  12. W

    How to omit the first line when reading from a text file?

    Ok, I'll use the ReadLine method then. But my question here is that is there any method/ function that can allow me to skip reading the first line?
  13. W

    How to omit the first line when reading from a text file?

    Hi, I am writing a function to read from a text file. May I know is there any vb.net built in function that I can use to omit the first line while reading the text file. My current code is Dim oReader As New System.IO.StreamReader(strFilePath) XXXXXXXXXXXXXXXXXXXXXXXXXX strTextLine =...
  14. W

    Renaming a file extension

    Hi all, I've solved my problem, by using File.Move method. :) Anyway, thanks for everyone's suggestions earlier. ;)
  15. W

    Renaming a file extension

    Hi, I've just tried another method Dim sourcePath As String = "C:\temp\testing.csv" Dim destPath As String = "C:\temp\testing.txt" Dim fInfo As FileInfo = New FileInfo(sourcePath) fInfo.MoveTo(destPath) But I received an error saying that "Unable to find the specified file". Can someone...
  16. W

    Renaming a file extension

    Yaya, this path "C:\temp\mcom20070403141406.csv" really exists one, the extract method is working fine here, I only have problem renaming my CSV file to become TXT file. :(
  17. W

    Renaming a file extension

    Hi, I've tried ur suggestion, using absolute paths, so my rename file name coding became Microsoft.VisualBasic.FileSystem.Rename("C:\temp\mcom20070403141406.csv", "C:\temp\mcom20070403141406.txt") But I still getting this error "Procedure Call or argument is not valid". If the method...
  18. W

    Renaming a file extension

    Hi, I was coding a function which unzips a zip file and then changed the extension from ".csv" to ".txt" but I received this error., "Procedure Call or argument is not valid." The highlighted statement is the line which cause this error. Can someone let me know what's wrong with my arguments...
Back
Top