|
//use system.web.mail
using System.Web.Mail;
//and make and object of web.mail class
MailMessage myMail = new MailMessage();
//and pass ur email id in the obejct.to
myMail.To = txtto.Text.ToString();//ur email id
myMail.Bcc = txtbcc.Text.ToString();
myMail.Cc = txtcc.Text.ToString();
myMail.From = txtfrom.Text.ToString() ; // sender email id
myMail.Subject = txtsubject.Text.ToString();// subject
myMail.BodyFormat = MailFormat.Html; // here you can choose: Plain or HTML
string body = " Bolded message The Message ";
myMail.Body = body;
SmtpMail.Send(myMail);
vijay
vijay
|
|
|
|
|
I have a number of elements on a web page, each assigned their own unique IDs.
If I try to retrieve the element's width by calling document.getElementById('myElement').style.width , I get a null return value. The only way I get a non-null value back is if I manually set the element's width using javascript.
Why?
How do I retrieve the width of an element using javascript without first having to specifically set the value?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You should never do this in one step, you should call getElementById and make sure it found something.
I believe the width property will only contain a value, if a specific value was set. If there is no width value in the style for the control, the control still has a width, but it's set by the browser, not by styles, and so the style is empty.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
The width property is most definitely set in a style sheet.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You are reading the value from the style setting of the element. That's what you set using the style property:
<div style="width:200px">
If you read the style.width from that element, you will get the string "200px".
The style property might affect the size of the element, but the size of the element never affects the style property.
---
single minded; short sighted; long gone;
|
|
|
|
|
I have a gridview in my application. The header of the gridview has the label for the header and also an imagebutton (a downward triable) beside the label so that when one clicks on the header the imagebutton, the imagebutton will load another picture(a colored downward triangle). The gridview has allowsort="true" set.
In the code, I have made the header so that clicking the header will trigger Commandname="Sort" and commandarugment = <some constant="" associated="" to="" the="" header=""> so that in the codebehind I can track which header is clicked and then change the triangle picture. However i realize that having Allowsort="true" is overriding that. The markup code will change the arrow back to the path written in the makrup.
How do i override the Sort function of gridview? is there anyway to tell it not to reset my headers?
thxthx
|
|
|
|
|
Is there any software to generate web forms? I like SQL reporting service but it doesn't let you edit or delete records.
Thanks
|
|
|
|
|
If I developed website using ASP.net does visitors to my website, or those who are
filling up forms and ordering from website ,does they also require to download .net platform.
I know little about ASP and ASP.net, But one thing is sure I cannot tell all my clients to download .net platform. Basically I am VC++ programmer so I cannot go to Java world.
and basically dont want to go away from microsoft. So please give me some guidance
where should I go ASP or ASP.net.
|| ART OF LIVING ||
|
|
|
|
|
You have been a member long enough to know not to use 'urgent' in your message titles.
______________________
stuff + cats = awesome
|
|
|
|
|
You only need the framework on the server, as this is where all your .net code will be executed. You might want to do a little bit of reading about how server side technologies work.
|
|
|
|
|
Your question shows that you do not know enough about web development to even attempt this project. ASP.NET is always the only choice, buy a book and work through it before you begin.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Christian Graus wrote: ASP.NET is always the only choice
I always choose .NET but I'm not sure it's always the only choice. CP is still running ASP, no?
|
|
|
|
|
hi all
i m creating a VBScript which is place as Hyperlink when user click on it the vbs
download specific software from Server to client & installed it on Client machine.
tx.
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
tell me abotu the IT solutions wha is it.and whats its working in our future life.
|
|
|
|
|
What are you talking about?
|
|
|
|
|
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
If you dissolve a computer in acid, that would be an IT solution. I'm not sure how it works in your life, but be certain not to drink it.
In other words, what on earth are you trying to ask ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Christian Graus wrote: If you dissolve a computer in acid, that would be an IT solution. I'm not sure how it works in your life, but be certain not to drink it.
LOL
Apurva Kaushal
|
|
|
|
|
Christian Graus wrote: If you dissolve a computer in acid, that would be an IT solution. I'm not sure how it works in your life, but be certain not to drink it.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
There is this big big big mess of cables that goes round the world called the internet. This internet thing carries all kind of stuff, letters faxes, mail, email, pictures and postcards, Sometimes even people although internet travel hasn't really took off yet due to packet loss; nothing worse arriving at your destination without your packet.
In the future everything will be on the internet, food, clothes, water and ice (only if its piped via the north pole). Thats why people talk about pipes a lot on the internet. The bigger the pipe the more cool stuff that can fit through it.
I can't wait for a pipe big enough I can drive through.
|
|
|
|
|
You forgot to mention that you'll have to stop and scrabble around if you dropped your packets.
|
|
|
|
|
Frank Kerrigan wrote: There is this big big big mess of cables that goes round the world called the internet.
Thank you, I needed a new cool signature;P
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Did you try to turn it off and on again?
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Basically, computers were meant for fishing but sometimes they are used for other purposes, I suppose you are using your computer as a piece of furniture which's also good!
Are you missing the joke icon??
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|