User Profile

Collapse

Profile Sidebar

Collapse
MBoogie
MBoogie
Last Activity: Aug 24 '10, 01:17 AM
Joined: May 20 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • MBoogie
    replied to C# WEB: Submit textbox value as hex
    in .NET
    Saw it on EE so I can't take credit for it, but try this out:


    using System.Text;

    ...

    StringBuilder hex = new StringBuilder() ;

    byte[] bytes = ASCIIEncoding.A SCII.GetBytes(t extBox1.Text);

    foreach (byte b in bytes)
    hex.Append(" " + b.ToString("X") );

    label1.Text =...
    See more | Go to post

    Leave a comment:


  • MBoogie
    replied to File Upload Control
    in .NET
    I tried a few more things inspired by your post, but I think the users may just have to select the file to be uploaded again.

    1. These files could be named anything so I can't hard-code it.
    2. This property of the control is read-only so I can't use a hidden text field to hold on to the filename through the trip and set it again on the postback.

    So I will put this annoyance to rest. Thanks again.
    See more | Go to post

    Leave a comment:


  • MBoogie
    started a topic File Upload Control
    in .NET

    File Upload Control

    Is there any way to keep the filename property of a file upload control across page loads? If some other control in the form fails validation, the user has to select the file to upload again. ViewState is enabled. Thanks!

    Regards,

    MB
    See more | Go to post

  • MBoogie
    replied to Search inside MS word using vb.net
    in .NET
    Try this out -
    Dim fileContents As String
    fileContents = My.Computer.Fil eSystem.ReadAll Text(file)

    If fileContents.Co ntains(textBox. Text) Then
    'blah blah
    End If

    fileContents = Nothing
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...