ASP.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a ASP.NET Expert!

Join 300,439 ASP.NET Programmers for FREE! Get instant access to thousands of ASP.NET experts, tutorials, code snippets, and more! There are 1,482 people online right now. Registration is fast and FREE... Join Now!




Replace Equivalent

 

Replace Equivalent

mansi sharma

28 Jun, 2009 - 12:01 PM
Post #1

New D.I.C Head
*

Joined: 19 Feb, 2009
Posts: 33



Thanked: 1 times
My Contributions
Can somebody what is the Replace equivalent in ASP.Net..Below is the VB.Net code..I Searched on the net..but not able to do it....I hope so it will be too simple..

CODE

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim sID As String = "ABC1"
        Dim lId As Integer
        sID = Replace("ABC1", "ABC", "")
        lId = Int(sID)
    End Sub



User is offlineProfile CardPM
+Quote Post


eclipsed4utoo

RE: Replace Equivalent

29 Jun, 2009 - 06:02 AM
Post #2

Not Your Ordinary Programmer
Group Icon

Joined: 21 Mar, 2008
Posts: 1,808



Thanked: 201 times
Dream Kudos: 500
Expert In: .NET

My Contributions
ASP.Net is not a language. ASP.Net applications can be written in either C# or VB.Net. So you code would work perfectly fine if you are writing an ASP.Net application in VB.Net.
User is offlineProfile CardPM
+Quote Post

Karthik_rao

RE: Replace Equivalent

30 Jun, 2009 - 04:31 AM
Post #3

New D.I.C Head
*

Joined: 15 Jun, 2009
Posts: 5

C#: (Web Application)
-----


string sID = "ABC1";
int lId;
sID = sid.Replace("ABC", "");
lId = Int(sID);

VB : (Web Application)
---

Dim sid As String = "ABC1"
Dim lid As Integer
sid = sid.Replace("ABC", "")
lid = CType(sid, Integer)


QUOTE(mansi sharma @ 28 Jun, 2009 - 12:01 PM) *

Can somebody what is the Replace equivalent in ASP.Net..Below is the VB.Net code..I Searched on the net..but not able to do it....I hope so it will be too simple..

CODE

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim sID As String = "ABC1"
        Dim lId As Integer
        sID = Replace("ABC1", "ABC", "")
        lId = Int(sID)
    End Sub



This post has been edited by Karthik_rao: 30 Jun, 2009 - 04:32 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 01:06AM

Live ASP.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

ASP.NET Tutorials

Reference Sheets

ASP.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month