|
i want to send a mail from vb.net windows application.using the following code can't send mail.
cmd = New SqlCommand("select email from tblCompany", con)
dr = cmd.ExecuteReader
While dr.Read
sb.Append(dr.GetString(0) + ";")
End While
Response.Redirect("mailto:kumar@indocanapparel.com?Bcc=" + sb.ToString)
in this code sb is string builder,dr is sqldatareader.using above code,can't send mail,but didn't show any error.i have dout in response.redirect line.instead of response.write anything will come.plz help me.
|
|
|
|
|
|
SimulationofSai wrote: And a good teacher to spank you for the mistake you've done above.
That's a bit harsh. At least he made the attempt! Which is more than can be said of many of the people who ask questions on these forums.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Yes. He did. But his code more or less looked like it was put together using copy paste even before understanding what each line does. How else can one explain a Response.Redirect in apparently what is a Windows Application?
Anyway, a spanking now is better than a whipping from his Project Manager later!;P
SG
|
|
|
|
|
Colin Angus Mackay wrote: That's a bit harsh. At least he made the attempt!
GOOD Reply ... my friend Colin Angus Mackay ....
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Respected Gurus
i m working with vb.net and making a windows application.
any how i m not able to create an instance of the datagrid control on my form.
whenever i drag and drop the datagrid on my form,i left with the error
An exception occurred while trying to create an instance of system.windows.forms.datagrid.The exception was "External component has thrown an exception"
I found the system.windows.forms.datagrid.dll in
C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE
copied this dll from another machine.
and again trying to use it,but left with the same error.
wht to do?
|
|
|
|
|
You cant use a datagrid meant for Mobile app on a Windows Application.
SG
|
|
|
|
|
I've been using VB6 as front end and MSSQL 2003 as back end. I am also using OS XP Service Pack 2. Now when i tried to install my program to other computer it prompt an error that "Cannot continue setup some of the systme files or files are older than the existing files. Please re-install your system."
what's the problem? until now i can't install the program to other computer...
Enlighten me.
|
|
|
|
|
VB6 is a dead. I highly suggest moving to VB.NET.
But, as for your problem, This[^] is why you're getting that message.
|
|
|
|
|
hello frnds,
i am developed a application and want's to create a EXE of that applciation on click of a button...
can i do this ???
if any one have code then plzz help
I am using vb.net 2.0
thankx in advance and regards,
koolprasad2003
If the Message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Set the project output type to Windows Application or Console Application and press compile.
|
|
|
|
|
Thankx......blessing
-koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi,
I have problem this one
Dim url As String="http://www.codeproject.com/"
dim str As string
str= url.Remove(0,7)
I got the string "www.codeproject.com/"
after i want to cut string "/"
so it will be "www.codeproject.com".
But when the url like this "http://www.codeproject.com/about.asp"
I want to get result like this "www.codeproject.com" only please help me.
Socheat
................
|
|
|
|
|
Sounds like you want to either use the built in class that knows how to parse a URL, or use the Split method on the string class, splitting on the / and then grabbing the section you want.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
What is your answer?
Socheat
................
|
|
|
|
|
If you use the split method of the string class on the URL, you will get a string array and one of those elements will be www.codeproject.com, if you split on the /
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Socheat,
you can either use a regex or simply use split method with /.
If this is all you want accomplish, I will go with split.
rAm
i Think, i Wait, i Fast -- Siddartha
|
|
|
|
|
Hi
Check this code
string strURL = "http://www.yahoo.com/quick/a.asp";<br />
string strURLremove = strURL.Remove(0,7);<br />
if (strURLremove.IndexOf("/") > 0)<br />
{ <br />
strURLremove = strURLremove.Remove(strURLremove.IndexOf("/"),<br />
(strURLremove.Length - strURLremove.IndexOf("/")));<br />
}<br />
Response.Write("<br>" + strURLremove.ToString());
Read the code in bold font carefully. Hope you are clear with this.
Harini
|
|
|
|
|
Thank you so much, i hope this helpful.
Socheat
................
|
|
|
|
|
hi Socheat
i think u have to use Split() function and the saparator should be "/"
like this,
dim szStr as string= "http://www.codeproject.com/about.asp"
Dim szArr as string()
szArr = Split(szStr,"/",-1)
in szArr(BLABLA) U should get the string like
"www.codeproject.com"
Hope it helps.
Regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Thanks, i hope this helpful.
Socheat
................
|
|
|
|
|
Relatively new to programming in VB. I am currently writing an application that will use a SQL db. The database itself is pretty small and uncomplicated.
I am able to write the program using the embedded data source features within express, but I need to write this program to use a SQL server database. When I attempt to use the data connection wizards in VB express it will not let me connect to server-based DB's only AttachDBFile.
Is there anyway that I can attach a VB express app to a SQL server db and still use the DataSet designer, table adapters, etc.
I'm not new to programming, but I am new to the .net world. Any help would be greatly appreciated...
Also, I have attempted to find this answer using forum searches and wed searches to no avail. Please forgive me if this answer is posted elsewhere in this forum and please direct me if that is the case.
Thanks!
|
|
|
|
|
DigitOptic wrote: Is there anyway that I can attach a VB express app to a SQL server db and still use the DataSet designer, table adapters, etc.
Not that I know of. The Data Explorer in the Express Editions is crippled compared to the larger editions.
|
|
|
|
|
I was afraid of that answer...
Which version would you recommend?? Standard or Professional?
|
|
|
|
|