User Profile

Collapse

Profile Sidebar

Collapse
SaintPatrick
SaintPatrick
Last Activity: Oct 14 '07, 07:32 AM
Joined: Feb 25 '07
Location: Oklahoma City
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • SaintPatrick
    replied to .Net webservice or remoting?
    in .NET
    Go the web service route.
    See more | Go to post

    Leave a comment:


  • SaintPatrick
    replied to Downloading a file using vb.net
    in .NET
    You'll probably want to associate users with particular files, record some file information such as date uploaded, size, etc.

    This starts looking like a database. You can store the binary there too, then when you want to run backups, etc...you'll be doing it all in the data store.
    See more | Go to post

    Leave a comment:


  • SaintPatrick
    replied to vb.net: strip path
    in .NET
    I agree that split is the way to go. Split the string into an array based on the "/" delimiter and grab the element indexed at array.count-1....
    See more | Go to post

    Leave a comment:


  • SaintPatrick
    replied to need to allot userid uniquely
    in .NET
    I'm not really clear on what the issue is that you are experiencing. If you're using a DataTable.NewRo w() this should be taken care of for you. At least as far as the unique ID is concerned if your Access db has autonumber going.

    If you want a true user name, use a parameterized query to check the name against your db and if rows>0 then they need to pick a new one. If not, we insert it and go on our way. Just a thought.
    See more | Go to post

    Leave a comment:


  • What you'll probably want to end up doing is working with a couple of roles and allow access to the protected areas of your site through one of these roles.

    The trick is using the <location path="/protectedstuff" > tags under the configuration section of your web.config.

    Search this Patterns & Practices page for the above mentioned tag and you should be on your way.

    Hope this helps....
    See more | Go to post

    Leave a comment:


  • SaintPatrick
    replied to positive no
    in .NET
    Here's how we can accomplish this easily

    Code:
    Imports System.Text.RegularExpressions
    
    Public Class BlahBlahBlah
            
            Private Sub NoNegativeZero()[INDENT] 
            Dim MyRE As New Regex("^[0-9]+$")
            Dim MyMatch As Match = MyRE.Match(TextBox1.Text)
            If MyMatch.Success = False Then
                MsgBox("I'm not cool with -0")
           [/]
    ...
    See more | Go to post

    Leave a comment:


  • This would more likely be TextBox8 in the example, but you get the idea....
    See more | Go to post

    Leave a comment:


  • Here's one way you could do it.

    Code:
         'How many ints can we have?
         Dim intArray(6) As Integer
            Dim Ctrl As New Control
            Dim i As Integer = 0
            Dim total
            'Loop through the textbox controls looking for ints to add
            For Each Ctrl In Me.Controls
                If TypeOf Ctrl Is TextBox Then
                    If Ctrl.Text <> String.Empty
    ...
    See more | Go to post

    Leave a comment:


  • SaintPatrick
    replied to Urgent help Please
    in .NET
    First, I'm thinking that having an .mdf without an instance of SQL Server to attach to is fairly useless. Check the following usenet post for support Google Usenet Posting

    So, thats rough and might need rethinking.

    Second, to not display we just don't bind it to a control that renders to the page. Instead, we can read the .csv into a dataset, get a dataset of the table we pushing to and get on with life.
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...