| Ping in VB.NET? (5 replies) |
| ASPFriends.com 'aspngvb' list |
| Al Bsharah Network Insight http://www.networkinsight.com http://www.networkinsight.com/ AL@networkinsight.com 858.450.1180 (main) 858.362.8383 (direct) 619.843.2565 (cell) 858.450.1141 (fax) |
|
| Erro using State Object (2 replies) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngstart] to [aspngvb] by devin devinr@drone interactive.com Hello All: I'm trying to use the State Object, but the Server retuns an Compilation Error. Code Example: 20 %@ Page Language 3D"VB" clienttarget 3Duplevel % html script language 3D"VB" runat 3D"server" Sub Page Load(Sender As Object, E As EventArgs) If NOT Page.IsPostBack Then State("vezes") 3D 1 Else State("vezes") 3D Cint... |
|
| Finding a zero in a string (14 replies) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngfreeforall] to [aspngvb] by devin devinr@drone interactive.com Hi, This is probably something very simple but I am too tired now to figure it out. Could someone help me in finding a zero in a string? Let's say I have a string like this Dim strOfficerId As String 3D "22,20,0" Now I want some code to test to see if there is a 0 in this string. Note the problem is that since my value... |
|
| SV: Finding a zero in a string (2 replies) |
| ASPFriends.com 'aspngvb' list |
| Here you go, use regular expressions: Dim strString As String 3D "22,20,1" 'This is a no strString 3D Replace(strString,","," ") Dim objRegexp As RegEx objRegexp 3D New RegEx("\b0{1}\b") 09 If objRegexp.IsMatch(strString) Then Response.write("Yes") Else Response.write("No") End If 09 (Vilken diskussion du satte ig E5ng) Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, S... |
|
| Writing a Public Class Function to set variables dynamically (3 replies) |
| ASPFriends.com 'aspngvb' list |
| All, I've been trying to figure out a way to set my class variables dynamically as I loop through a set of variables that vary for each user I return. Essentially I want to do what Javascript allows you to do with the eval() function but can't seem to find it's equivalent in VB.Net. However, my other thought was that I could set the variable by passing the variable name and the variable value and ... |
|
| Add a day string (4 replies) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngfreeforall] to [aspngvb] by Marcie Jones marciejones@yahoo.com !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV "Content Type" CONTENT "text/html; charset us ascii" META NAME "Generator" CONTENT "MS Exchange Server version 5.5.2652.35" TITLE Add a day string /TITLE /HEAD BODY P FONT SIZE 2 Hi all, /FONT /P P FONT SIZE 2 I have a date dimed as a string /FON... |
|
| Translation problem from C# to VB.net (3 replies) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngclient] to [aspngvb] by Ryan Trudelle Schwarz ryants@aspelite.com Hi all Im trying to translate this to VB and I get an error. This is the C# code m Btn new Button(); m Btn.Click new System.EventHandler (this.Btn Click); and this is my vb.net code m Btn New Button() m Btn.Click New System.EventHandler(Me.Btn Click) I get 'Public Event Click(sender As Object, e As System.EventArgs)... |
|
| HTML in code behind (3 replies) |
| ASPFriends.com 'aspngvb' list |
| Hi all,   I am running a db query that will return one of the two "Nothing in the db" and A value in the form of a number e.g. 1 or 2   Now this is then written to a label e.g   Dim value as string Value  the dataset I have filled from the db that will return those values.   Ok then what I do is   Mylabel.text  "There is " & Value & " . "   But what I want t... |
|
| Date (NOW()) add one day (3 replies, VIP) |
| ASPFriends.com 'aspngvb' list |
| Moved from [aspngfreeforall] to [aspngvb] by Marcie Jones marciejones@yahoo.com !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Diso 8859 1" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE Date (NOW()) add one day /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all, /FONT /P P FONT SIZE 3D2 I am sure th... |
|
| how do I reference a type? (2 replies) |
| ASPFriends.com 'aspngvb' list |
| In the ArrayList.ToArray(Type) method, what is the easiest way to reference a type to an object that I don't have an instance of? Andy Smith Keyboard Jockey #3 |
|