CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.getting_started Tags:
Item Type: Date Entered: 10/24/2007 3:51:18 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 14 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
"WDK_3477" <>
NewsGroup User
Email and checkboxes10/24/2007 3:51:18 PM

0

Okay, I am VERY new to asp and I think this is probably an easy one.  I just can figure it out.

I have built a webform that solicits information from users.  Name, date, phone.  Things like that.

It also has a bunch of checkboxes for users to select exactly what they need.

I built a button with C# script that takes the info from the text boxes and puts it into an email and sends it to me.  

What I'm missing is how to get the status of a checkbox into the email.

So if the user checks the box "voicemail change", I would get an email that says the vm change box was checked.

 

thanks 

"karan@dotnet"
NewsGroup User
Re: Email and checkboxes10/24/2007 4:05:52 PM

0

Are you checking the checkbox checked property as:

if(CheckBox1.Checked)........


** I Learn Everyday ......

~ Remember To Mark The Posts Which Helped You As The ANSWER ~
"triggered" <>
NewsGroup User
Re: Email and checkboxes10/24/2007 4:11:07 PM

0

Build your Body Message using StringBuilder.

StringBuilder sbBody = new StringBuilder();
sbBody.Append("VoiceMail:" 
sbBody.Append(((chkVoiceMail.Checked)? "Changed" : "Not Changed"));
sbBody.Append(Environment.NewLine);

// and so on

MyEmailObject.Body = sbBody.ToString();
 
 
______________________________________________

Best Regards,

Ryan
"moredotnet" <>
NewsGroup User
Re: Email and checkboxes10/26/2007 11:32:42 AM

0

 

See value of Checkboxname.Checked and do your coding accordingly.

Here is how we email... http://www.dotnetuncle.com/Aspnet/77_send_email.aspx

HTH

Cheers

Vishal Khanna

(pls mark as answer if reply helps)

 


Cheers
Vishal Khanna | MCAD.NET | Intersoft Data Labs
(Please mark as answer if reply helps)


.NET Interviews & FAQs @ www.dotnetUncle.com



Search & Post Free Ads

"mydnightShadow
NewsGroup User
Re: Email and checkboxes10/26/2007 1:02:03 PM

0

 

Hi

just create a string or add to an existing string.  Write the name of the checkbox in text then just get the  value of the checkbox and convert it to a string.

string = "checkbox1 = " & checkbox1.checked.ToString()

 

Hope this helps

Regards

MydnightShadow

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:













asp.net code to upload/download files via browser

how do i flip this from c# to vb ?

transfer files between webservers

blank screen

downloads module - file listing

am i missing something?

some command problems

has anyone used the flash ad rotator for asp.net 2.0?

database constraints violation detection

collection bind

createuserwizard buttons edit

currency format

404 error on the web site - how to explain to support people what to do?

how to convert a c# code-behind into a separate class - and use it

array

sending email

sql in asp

conversion error

ajax dropdownlist crash in ie

brand new to asp.net. can someone tell me where i'm going wrong with this code?

error:server application unavailable

how to check weither the transaction is commited or not?

securely passing information between 2 websites

please help

creating a word document from a pdf

simple regex

datagrid using css , does not print format

previous page url?

help, how to install a component to the vs .net component list?

masked text box

vb image upload / download mssql server

referring to asp:label or asp:textarea

persist search criteria

how to catch usercontrol's event?

asp.net website structure???

navigateurl

web matrix versus visual studio.net 2003

how to zip a file in asp.net?

integrating asp with webbots

how to add links in datagrid?

creating a handler for feed reader

how to search file in folder

"end of file reached in invalid state for current encoding" error

i really don’t know when it’s good practice to create a component class

how to deal with null values in .net

system.web.caching.cache error

access external resource file (myresourcefile.txt)

kill session

merchant accounts

call back reminder

   
  Privacy | Contact Us
All Times Are GMT