473,714 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to insert URL in ASP.Net e-mail message

Hello,

I created an e-mail form pretty much as described in this article:
http://www.4guysfromrolla.com/webtech/080801-1.shtml. It works great, but I
cannot figure out one thing:

I need to insert a URL at the bottom of the message body. How would I do
this? If I insert just HTML - it displays HTML. I tried Response.Write
method, StringBuilder and HTMLTextWriter classes - no luck so far.

I would appreciate your advice on this.

Thank you,

--
Peter Afonin
Nov 18 '05 #1
9 1666
Not sure if this is what you're looking for, but this is how I build and send an e-mail message to
myself. Maybe it will give you some ideas.

Private Sub sendMail(ByVal msgTxt As String)
Dim msg As MailMessage = New MailMessage()
SmtpMail.SmtpSe rver = "xxxx.xxxx. com"
msg.Body = msgTxt
msg.From = "xx**@xxxxx.com "
msg.To = "xx**@xxxx. net"
msg.Subject = "Some Subject!"

Try
SmtpMail.Send(m sg)
Catch
End Try
End Sub

Private Sub SomeOtherSub()
Dim userAgent As String
Dim referringPage As String

If Not Request.UserAge nt Is Nothing Then
userAgent = Request.UserAge nt
Else
userAgent = "No user agent available!"
End If

'This is how I get a URL to string
If Not Request.UrlRefe rrer Is Nothing Then
referringPage = Request.UrlRefe rrer.ToString()
Else
referringPage = "Direct access by bookmark, local-based e-mail link, etc."
End If

Dim msgTxt As String = vbCrLf & _
"Browser Name: " & Request.Browser .Browser & vbCrLf & _
"Browser Type: " & Request.Browser .Type & vbCrLf & _
"Browser Version: " & Request.Browser .Version & vbCrLf & _
"Browser Platform: " & Request.Browser .Platform & vbCrLf & _
"Accepts Cookies: " & Request.Browser .Cookies & vbCrLf & _
"User Agent: " & userAgent & vbCrLf & _
"User Host Address: " & Request.UserHos tAddress.ToStri ng & vbCrLf & _
"User Host Name: " & Request.UserHos tName & vbCrLf & _
"Referring URL: " & referringPage

If Not Request.Cookies ("userInfo") Is Nothing Then
msgTxt = msgTxt & vbCrLf & vbCrLf & _
"This Visit: " & Request.Cookies ("userInfo")("t hisVisit") & vbCrLf & _
"Last Visit: " & Request.Cookies ("userInfo")("l astVisit") & vbCrLf & _
"Total Visits: " & Request.Cookies ("userInfo")("n umVisits") & vbCrLf
End If

sendMail(msgTxt )
End Sub

I use the Try\Catch\End Try just in case the mail server is down. If it is, I just pass on getting
that particular message because I can live without it. So I don't really need to trap that error, I
just don't want my app to crash. User agent and URL Referrer will crash my app, too, so that is why
I'm checking them first. Maybe some of the others will, too, but not sure.

Hope that helped a little. I'm just learning this stuff, so there is probably a better way to do it.
I've gotten a lot of answers in this NG, so thought I'd try to give back a little. ;-)

George

"Peter Afonin" <pv*@speakeasy. net> wrote in message news:eV******** ******@TK2MSFTN GP10.phx.gbl...
Hello,

I created an e-mail form pretty much as described in this article:
http://www.4guysfromrolla.com/webtech/080801-1.shtml. It works great, but I
cannot figure out one thing:

I need to insert a URL at the bottom of the message body. How would I do
this? If I insert just HTML - it displays HTML. I tried Response.Write
method, StringBuilder and HTMLTextWriter classes - no luck so far.

I would appreciate your advice on this.

Thank you,

--
Peter Afonin


Nov 18 '05 #2
Thank you, George.

I need a little different, I guess. I just want to display my company name
at the bottom of the e-mail body as a hyperlink, just like here:
www.mycompanyname.com , so the person could click on it and get to my site.
It should be a simple task, I've just never done this before.

Peter
"George" <------@----.---> wrote in message
news:zB******** ***********@bgt nsc05-news.ops.worldn et.att.net...
Not sure if this is what you're looking for, but this is how I build and send an e-mail message to myself. Maybe it will give you some ideas.

Private Sub sendMail(ByVal msgTxt As String)
Dim msg As MailMessage = New MailMessage()
SmtpMail.SmtpSe rver = "xxxx.xxxx. com"
msg.Body = msgTxt
msg.From = "xx**@xxxxx.com "
msg.To = "xx**@xxxx. net"
msg.Subject = "Some Subject!"

Try
SmtpMail.Send(m sg)
Catch
End Try
End Sub

Private Sub SomeOtherSub()
Dim userAgent As String
Dim referringPage As String

If Not Request.UserAge nt Is Nothing Then
userAgent = Request.UserAge nt
Else
userAgent = "No user agent available!"
End If

'This is how I get a URL to string
If Not Request.UrlRefe rrer Is Nothing Then
referringPage = Request.UrlRefe rrer.ToString()
Else
referringPage = "Direct access by bookmark, local-based e-mail link, etc." End If

Dim msgTxt As String = vbCrLf & _
"Browser Name: " & Request.Browser .Browser & vbCrLf & _
"Browser Type: " & Request.Browser .Type & vbCrLf & _
"Browser Version: " & Request.Browser .Version & vbCrLf & _
"Browser Platform: " & Request.Browser .Platform & vbCrLf & _
"Accepts Cookies: " & Request.Browser .Cookies & vbCrLf & _
"User Agent: " & userAgent & vbCrLf & _
"User Host Address: " & Request.UserHos tAddress.ToStri ng & vbCrLf & _ "User Host Name: " & Request.UserHos tName & vbCrLf & _
"Referring URL: " & referringPage

If Not Request.Cookies ("userInfo") Is Nothing Then
msgTxt = msgTxt & vbCrLf & vbCrLf & _
"This Visit: " & Request.Cookies ("userInfo")("t hisVisit") & vbCrLf & _ "Last Visit: " & Request.Cookies ("userInfo")("l astVisit") & vbCrLf & _ "Total Visits: " & Request.Cookies ("userInfo")("n umVisits") & vbCrLf End If

sendMail(msgTxt )
End Sub

I use the Try\Catch\End Try just in case the mail server is down. If it is, I just pass on getting that particular message because I can live without it. So I don't really need to trap that error, I just don't want my app to crash. User agent and URL Referrer will crash my app, too, so that is why I'm checking them first. Maybe some of the others will, too, but not sure.

Hope that helped a little. I'm just learning this stuff, so there is probably a better way to do it. I've gotten a lot of answers in this NG, so thought I'd try to give back a little. ;-)
George

"Peter Afonin" <pv*@speakeasy. net> wrote in message

news:eV******** ******@TK2MSFTN GP10.phx.gbl...
Hello,

I created an e-mail form pretty much as described in this article:
http://www.4guysfromrolla.com/webtech/080801-1.shtml. It works great, but I cannot figure out one thing:

I need to insert a URL at the bottom of the message body. How would I do
this? If I insert just HTML - it displays HTML. I tried Response.Write
method, StringBuilder and HTMLTextWriter classes - no luck so far.

I would appreciate your advice on this.

Thank you,

--
Peter Afonin


Nov 18 '05 #3
I think if you put it in a string, like I did the referring URL, it will come out as a hyperlink.
When I get the referring URL in my mail message, it is a click-able hyperlink.

Dim companyURL as string = "http://www.mycompanyna me.com"

msg.Body = msgTxt & vbCrLf & companyURL

Should work (I think). ;-)

George

"Peter Afonin" <pv*@speakeasy. net> wrote in message news:Ow******** ******@TK2MSFTN GP10.phx.gbl...
Thank you, George.

I need a little different, I guess. I just want to display my company name
at the bottom of the e-mail body as a hyperlink, just like here:
www.mycompanyname.com , so the person could click on it and get to my site.
It should be a simple task, I've just never done this before.

Peter
"George" <------@----.---> wrote in message
news:zB******** ***********@bgt nsc05-news.ops.worldn et.att.net...
Not sure if this is what you're looking for, but this is how I build and

send an e-mail message to
myself. Maybe it will give you some ideas.

Private Sub sendMail(ByVal msgTxt As String)
Dim msg As MailMessage = New MailMessage()
SmtpMail.SmtpSe rver = "xxxx.xxxx. com"
msg.Body = msgTxt
msg.From = "xx**@xxxxx.com "
msg.To = "xx**@xxxx. net"
msg.Subject = "Some Subject!"

Try
SmtpMail.Send(m sg)
Catch
End Try
End Sub

Private Sub SomeOtherSub()
Dim userAgent As String
Dim referringPage As String

If Not Request.UserAge nt Is Nothing Then
userAgent = Request.UserAge nt
Else
userAgent = "No user agent available!"
End If

'This is how I get a URL to string
If Not Request.UrlRefe rrer Is Nothing Then
referringPage = Request.UrlRefe rrer.ToString()
Else
referringPage = "Direct access by bookmark, local-based e-mail

link, etc."
End If

Dim msgTxt As String = vbCrLf & _
"Browser Name: " & Request.Browser .Browser & vbCrLf & _
"Browser Type: " & Request.Browser .Type & vbCrLf & _
"Browser Version: " & Request.Browser .Version & vbCrLf & _
"Browser Platform: " & Request.Browser .Platform & vbCrLf & _
"Accepts Cookies: " & Request.Browser .Cookies & vbCrLf & _
"User Agent: " & userAgent & vbCrLf & _
"User Host Address: " & Request.UserHos tAddress.ToStri ng & vbCrLf &

_
"User Host Name: " & Request.UserHos tName & vbCrLf & _
"Referring URL: " & referringPage

If Not Request.Cookies ("userInfo") Is Nothing Then
msgTxt = msgTxt & vbCrLf & vbCrLf & _
"This Visit: " & Request.Cookies ("userInfo")("t hisVisit")

& vbCrLf & _
"Last Visit: " &

Request.Cookies ("userInfo")("l astVisit") & vbCrLf & _
"Total Visits: " &

Request.Cookies ("userInfo")("n umVisits") & vbCrLf
End If

sendMail(msgTxt )
End Sub

I use the Try\Catch\End Try just in case the mail server is down. If it

is, I just pass on getting
that particular message because I can live without it. So I don't really

need to trap that error, I
just don't want my app to crash. User agent and URL Referrer will crash my

app, too, so that is why
I'm checking them first. Maybe some of the others will, too, but not sure.

Hope that helped a little. I'm just learning this stuff, so there is

probably a better way to do it.
I've gotten a lot of answers in this NG, so thought I'd try to give back a

little. ;-)

George

"Peter Afonin" <pv*@speakeasy. net> wrote in message

news:eV******** ******@TK2MSFTN GP10.phx.gbl...
Hello,

I created an e-mail form pretty much as described in this article:
http://www.4guysfromrolla.com/webtech/080801-1.shtml. It works great, but I cannot figure out one thing:

I need to insert a URL at the bottom of the message body. How would I do
this? If I insert just HTML - it displays HTML. I tried Response.Write
method, StringBuilder and HTMLTextWriter classes - no luck so far.

I would appreciate your advice on this.

Thank you,

--
Peter Afonin




Nov 18 '05 #4
Thank you, George, I think you're correct, I'll test it. But what if I want
to display it like "My Company" and have a URL behind it? It must be a way
of doing it.

Peter

"George" <------@----.---> wrote in message
news:2n******** ***********@bgt nsc05-news.ops.worldn et.att.net...
I think if you put it in a string, like I did the referring URL, it will come out as a hyperlink. When I get the referring URL in my mail message, it is a click-able hyperlink.
Dim companyURL as string = "http://www.mycompanyna me.com"

msg.Body = msgTxt & vbCrLf & companyURL

Should work (I think). ;-)

George

"Peter Afonin" <pv*@speakeasy. net> wrote in message

news:Ow******** ******@TK2MSFTN GP10.phx.gbl...
Thank you, George.

I need a little different, I guess. I just want to display my company name at the bottom of the e-mail body as a hyperlink, just like here:
www.mycompanyname.com , so the person could click on it and get to my site. It should be a simple task, I've just never done this before.

Peter
"George" <------@----.---> wrote in message
news:zB******** ***********@bgt nsc05-news.ops.worldn et.att.net...
Not sure if this is what you're looking for, but this is how I build and
send an e-mail message to
myself. Maybe it will give you some ideas.

Private Sub sendMail(ByVal msgTxt As String)
Dim msg As MailMessage = New MailMessage()
SmtpMail.SmtpSe rver = "xxxx.xxxx. com"
msg.Body = msgTxt
msg.From = "xx**@xxxxx.com "
msg.To = "xx**@xxxx. net"
msg.Subject = "Some Subject!"

Try
SmtpMail.Send(m sg)
Catch
End Try
End Sub

Private Sub SomeOtherSub()
Dim userAgent As String
Dim referringPage As String

If Not Request.UserAge nt Is Nothing Then
userAgent = Request.UserAge nt
Else
userAgent = "No user agent available!"
End If

'This is how I get a URL to string
If Not Request.UrlRefe rrer Is Nothing Then
referringPage = Request.UrlRefe rrer.ToString()
Else
referringPage = "Direct access by bookmark, local-based
e-mail link, etc."
End If

Dim msgTxt As String = vbCrLf & _
"Browser Name: " & Request.Browser .Browser & vbCrLf & _
"Browser Type: " & Request.Browser .Type & vbCrLf & _
"Browser Version: " & Request.Browser .Version & vbCrLf & _
"Browser Platform: " & Request.Browser .Platform & vbCrLf & _
"Accepts Cookies: " & Request.Browser .Cookies & vbCrLf & _
"User Agent: " & userAgent & vbCrLf & _
"User Host Address: " & Request.UserHos tAddress.ToStri ng &
vbCrLf & _
"User Host Name: " & Request.UserHos tName & vbCrLf & _
"Referring URL: " & referringPage

If Not Request.Cookies ("userInfo") Is Nothing Then
msgTxt = msgTxt & vbCrLf & vbCrLf & _
"This Visit: " &
Request.Cookies ("userInfo")("t hisVisit") & vbCrLf & _
"Last Visit: " &

Request.Cookies ("userInfo")("l astVisit") & vbCrLf & _
"Total Visits: " &

Request.Cookies ("userInfo")("n umVisits") & vbCrLf
End If

sendMail(msgTxt )
End Sub

I use the Try\Catch\End Try just in case the mail server is down. If
it is, I just pass on getting
that particular message because I can live without it. So I don't
really need to trap that error, I
just don't want my app to crash. User agent and URL Referrer will
crash my app, too, so that is why
I'm checking them first. Maybe some of the others will, too, but not
sure.
Hope that helped a little. I'm just learning this stuff, so there is

probably a better way to do it.
I've gotten a lot of answers in this NG, so thought I'd try to give back a little. ;-)

George

"Peter Afonin" <pv*@speakeasy. net> wrote in message

news:eV******** ******@TK2MSFTN GP10.phx.gbl...
> Hello,
>
> I created an e-mail form pretty much as described in this article:
> http://www.4guysfromrolla.com/webtech/080801-1.shtml. It works
great, but I
> cannot figure out one thing:
>
> I need to insert a URL at the bottom of the message body. How would

I do > this? If I insert just HTML - it displays HTML. I tried Response.Write > method, StringBuilder and HTMLTextWriter classes - no luck so far.
>
> I would appreciate your advice on this.
>
> Thank you,
>
> --
> Peter Afonin
>
>



Nov 18 '05 #5
Sorry, can't help you with that one. I get the same results that you do -- it just drops the HTML
code into the message as though it were text.

George

"Peter Afonin" <pa**@specialty pulltabs.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Thank you, George, I think you're correct, I'll test it. But what if I want
to display it like "My Company" and have a URL behind it? It must be a way
of doing it.

Peter

"George" <------@----.---> wrote in message
news:2n******** ***********@bgt nsc05-news.ops.worldn et.att.net...
I think if you put it in a string, like I did the referring URL, it will

come out as a hyperlink.
When I get the referring URL in my mail message, it is a click-able

hyperlink.

Dim companyURL as string = "http://www.mycompanyna me.com"

msg.Body = msgTxt & vbCrLf & companyURL

Should work (I think). ;-)

George

"Peter Afonin" <pv*@speakeasy. net> wrote in message

news:Ow******** ******@TK2MSFTN GP10.phx.gbl...
Thank you, George.

I need a little different, I guess. I just want to display my company name at the bottom of the e-mail body as a hyperlink, just like here:
www.mycompanyname.com , so the person could click on it and get to my site. It should be a simple task, I've just never done this before.

Peter
"George" <------@----.---> wrote in message
news:zB******** ***********@bgt nsc05-news.ops.worldn et.att.net...
> Not sure if this is what you're looking for, but this is how I build and send an e-mail message to
> myself. Maybe it will give you some ideas.
>
> Private Sub sendMail(ByVal msgTxt As String)
> Dim msg As MailMessage = New MailMessage()
> SmtpMail.SmtpSe rver = "xxxx.xxxx. com"
> msg.Body = msgTxt
> msg.From = "xx**@xxxxx.com "
> msg.To = "xx**@xxxx. net"
> msg.Subject = "Some Subject!"
>
> Try
> SmtpMail.Send(m sg)
> Catch
> End Try
> End Sub
>
> Private Sub SomeOtherSub()
> Dim userAgent As String
> Dim referringPage As String
>
> If Not Request.UserAge nt Is Nothing Then
> userAgent = Request.UserAge nt
> Else
> userAgent = "No user agent available!"
> End If
>
> 'This is how I get a URL to string
> If Not Request.UrlRefe rrer Is Nothing Then
> referringPage = Request.UrlRefe rrer.ToString()
> Else
> referringPage = "Direct access by bookmark, local-based e-mail link, etc."
> End If
>
> Dim msgTxt As String = vbCrLf & _
> "Browser Name: " & Request.Browser .Browser & vbCrLf & _
> "Browser Type: " & Request.Browser .Type & vbCrLf & _
> "Browser Version: " & Request.Browser .Version & vbCrLf & _
> "Browser Platform: " & Request.Browser .Platform & vbCrLf & _
> "Accepts Cookies: " & Request.Browser .Cookies & vbCrLf & _
> "User Agent: " & userAgent & vbCrLf & _
> "User Host Address: " & Request.UserHos tAddress.ToStri ng & vbCrLf & _
> "User Host Name: " & Request.UserHos tName & vbCrLf & _
> "Referring URL: " & referringPage
>
> If Not Request.Cookies ("userInfo") Is Nothing Then
> msgTxt = msgTxt & vbCrLf & vbCrLf & _
> "This Visit: " & Request.Cookies ("userInfo")("t hisVisit") & vbCrLf & _
> "Last Visit: " &
Request.Cookies ("userInfo")("l astVisit") & vbCrLf & _
> "Total Visits: " &
Request.Cookies ("userInfo")("n umVisits") & vbCrLf
> End If
>
> sendMail(msgTxt )
> End Sub
>
> I use the Try\Catch\End Try just in case the mail server is down. If it is, I just pass on getting
> that particular message because I can live without it. So I don't really need to trap that error, I
> just don't want my app to crash. User agent and URL Referrer will crash my app, too, so that is why
> I'm checking them first. Maybe some of the others will, too, but not sure. >
> Hope that helped a little. I'm just learning this stuff, so there is
probably a better way to do it.
> I've gotten a lot of answers in this NG, so thought I'd try to give back a little. ;-)
>
> George
>
>
>
> "Peter Afonin" <pv*@speakeasy. net> wrote in message
news:eV******** ******@TK2MSFTN GP10.phx.gbl...
> > Hello,
> >
> > I created an e-mail form pretty much as described in this article:
> > http://www.4guysfromrolla.com/webtech/080801-1.shtml. It works great, but I
> > cannot figure out one thing:
> >
> > I need to insert a URL at the bottom of the message body. How would I do > > this? If I insert just HTML - it displays HTML. I tried Response.Write > > method, StringBuilder and HTMLTextWriter classes - no luck so far.
> >
> > I would appreciate your advice on this.
> >
> > Thank you,
> >
> > --
> > Peter Afonin
> >
> >
>
>
>



Nov 18 '05 #6
"George" <------@----.---> wrote in
news:Mm******** ***********@bgt nsc05-news.ops.worldn et.att.net:
Sorry, can't help you with that one. I get the same results that you do
-- it just drops the HTML code into the message as though it were text.


To do it properly so it will be displayed in all clients, as well as not be
filtered by spam filters you have to make an alternative type message. .Net
mail class does NOT support this.

You can use Indy, it supports this and its free.

http://www.indyproject.org/
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #7
Thanks for the information that there are Indy components we can use in .Net
now. I used Indy with Delphi 6 and found it quite useful.

I went to the Indy site downloaded the DLL, added it to a test VB.Net
project and created me a Whois lookup application. All very easy, and it
works fine.

I then added it to my .Net tests at my main web site. Unfortunately as soon
as I tried to access the aspx page I get the following error:
System.Security .SecurityExcept ion: Security error. Apparently the hosting
company doesn't trust your DLL. I will discuss it with them, but I am
pretty sure it will be a no go.

Their security is such that they will not let ASP.Net create sockets, so I
had hoped to use Indy to get around this. At the same site I have an ISAPI
DLL created with Delphi 6 and Indy that does a Whois lookup with no problem.

"Chad Z. Hower aka Kudzu" <cp**@hower.org > wrote in message
news:Xn******** **********@127. 0.0.1...
"George" <------@----.---> wrote in
news:Mm******** ***********@bgt nsc05-news.ops.worldn et.att.net:
Sorry, can't help you with that one. I get the same results that you do
-- it just drops the HTML code into the message as though it were text.
To do it properly so it will be displayed in all clients, as well as not

be filtered by spam filters you have to make an alternative type message. ..Net mail class does NOT support this.

You can use Indy, it supports this and its free.

http://www.indyproject.org/
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #8
"William LaMartin" <la******@tampa bay.rr.com> wrote in
news:eH******** *****@TK2MSFTNG P11.phx.gbl:
I went to the Indy site downloaded the DLL, added it to a test VB.Net
project and created me a Whois lookup application. All very easy, and it
works fine.
Great!
I then added it to my .Net tests at my main web site. Unfortunately as
soon as I tried to access the aspx page I get the following error:
System.Security .SecurityExcept ion: Security error. Apparently the
hosting company doesn't trust your DLL. I will discuss it with them,
but I am pretty sure it will be a no go.
So they trust anything you put up in your assembly, but not anything in
external assemblies?
Their security is such that they will not let ASP.Net create sockets, so
I had hoped to use Indy to get around this. At the same site I have an


Ouch - if they wont let ASP.net create sockets, then its doubtful Indy will
work either. It uses the .net sockets internally as well.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #9
I have another site where I can test .Net things. There I have a lot more
permissions than I do at my own domain hosted in a shared hosting
environment. If you go to http://216.182.10.243/container/WhoisIndy.aspx ,
you will see the Whois using Indy example working properly.

Well, I guess there is not much use in asking the hosting company if they
will allow the Indy DLL if it uses the .Net sockets, since even if they did,
I still wouldn't be able to use anything from Indy that involved
sockets--which doesn't leave much, I suppose.

"Chad Z. Hower aka Kudzu" <cp**@hower.org > wrote in message
news:Xn******** **********@127. 0.0.1...
"William LaMartin" <la******@tampa bay.rr.com> wrote in
news:eH******** *****@TK2MSFTNG P11.phx.gbl:
I went to the Indy site downloaded the DLL, added it to a test VB.Net
project and created me a Whois lookup application. All very easy, and it
works fine.
Great!
I then added it to my .Net tests at my main web site. Unfortunately as
soon as I tried to access the aspx page I get the following error:
System.Security .SecurityExcept ion: Security error. Apparently the
hosting company doesn't trust your DLL. I will discuss it with them,
but I am pretty sure it will be a no go.


So they trust anything you put up in your assembly, but not anything in
external assemblies?
Their security is such that they will not let ASP.Net create sockets, so
I had hoped to use Indy to get around this. At the same site I have an


Ouch - if they wont let ASP.net create sockets, then its doubtful Indy

will work either. It uses the .net sockets internally as well.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2519
by: Howard Hinnant | last post by:
I recently asked for a survey of multimap insert with hint behavior, in support of a paper I'm writing concerning lwg issue 233. My sincere thanks to Beman Dawes, Raoul Gough, Russell Hind, Bronek Kozicki, Nicola Musatti, John Potter and Maxim Yegorushkin for helping with that survey. Since I started work on this paper at least two people I respect very much have expressed interest in nailing down the "insert without hint" function a...
6
7007
by: Mark P | last post by:
Some time ago I posted here about inserting into a set with a hint: http://groups-beta.google.com/group/alt.comp.lang.learn.c-c++/browse_thread/thread/fb75b00f73e979db/018b8d0eadb38dbf?q=%22STL+insert+with+hint%22+%22Mark+P%22&rnum=1&hl=en#018b8d0eadb38dbf I quoted the SGI STL docs describing a.insert(p, t), where p is the hint iterator and t is the inserted object: "Insert with hint is logarithmic in general, but it is amortized...
14
4293
by: serge | last post by:
I have a scenario where two tables are in a One-to-Many relationship and I need to move the data from the Many table to the One table so that it becomes a One-to-One relationship. I need to salvage the records from the many table and without going into detail, one of the reasons I can't do the opposite as there are records in the ONE table that I need to keep even if they don't have any child records in the MANY table. Below I created...
2
17104
by: Ford Desperado | last post by:
I've been reading the docs and playing around, but I'm still not getting the difference. For instance, create table a(i int check(i>0)) create table a_src(i int) go create unique index ai on a(i) with IGNORE_DUP_KEY go insert into a_src values(1) insert into a_src values(1)
0
3144
by: jtocci | last post by:
I'm having a big problem with CREATE RULE...ON INSERT...INSERT INTO...SELECT...FROM...WHERE when I want to INSERT several (20~50) records based on a single INSERT to a view. Either I get a 'too much data for field' or the query just runs on and on til I have to restart the postmaster. I have found rules to compare mine to but people limit the resulting insert to one record (the WHERE generally limits the result of the SELECT to one...
4
5484
by: Chris Kratz | last post by:
Hello all, We have run into what appears to be a problem with rules and subselects in postgres 7.4.1. We have boiled it down to the following test case. If anyone has any thoughts as to why this would be happening, we would appreciate feedback. We have tested on 7.3.4, 7.3.6 and 7.4.1 and all exhibit the same behavior. Test case one tries to populate table2 from table1 with records that are not in table2 already. Table2 gets...
2
3208
by: Geoffrey KRETZ | last post by:
Hello, I'm wondering if the following behaviour is the correct one for PostGreSQL (7.4 on UNIX). I've a table temp_tab with 5 fields (f1,f2,f3,...),and I'm a launching the following request : INSERT INTO temp_tab VALUES (1,2,3)
1
21062
by: filip1150 | last post by:
I'm trying to find if there is any performance diference between explicitly using a sequence in the insert statement to generate values for a column and doing this in an insert trigger. I noticed that th eaccess plan for the 2 situations is quite different. For the case where the trigger is in place, the optimizer applies 2 extra residual predicates. Can anybody explain where the differences come from? Also, for real life situations,...
6
3718
by: lenygold via DBMonster.com | last post by:
Hi everybody: What is the best way to I have 10 tables with similar INSERT requiremnts. INSERT INTO ACSB.VAATAFAE WITH AA(AA_TIN, AA_FILE_SOURCE_CD, .AA_TIN_TYP) AS ( SELECT AA_TIN, AA_FILE_SOURCE_CD, .AA_TIN_TYP FROM VAATAFAA WHERE AB_TP_ACNT_STAT_CD <0),
1
2647
by: EJO | last post by:
with sql 2000 enterprise Trying to build a stored procedure that will take the rows of a parent table, insert them into another table as well as the rows from a child table to insert into another table and be able to maintain the relationships between the parent/child rows of the new records. Something like old_id new_id
0
8814
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8713
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9318
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9079
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7957
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
3160
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.