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: 21 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:













anybody interested in a fully functional .net store

help!!! about order process

need better search functionality

thumbnail module

best way to process credit cards and payments with the commerce kit???

req: aspdotnetstorefront feedback wanted

outputcache duration="3600"

the old chestnut - parser error line 1

viewstate and header file issue

help me

xml as data for small store

anyone using ms wse 1.0 & concerned about clause #6

setting default selected in databound dropdown list

custom shopping cart

ecommerce starter kit....how do i csv or import export?

login failed: reason:.... help plz!

help! help! searchresults

ups xml rate query c# code sample - click here

ibuyspy store using c# and oledb

first e-business portal $ comparision via web services of made to specification & catalog products

can't download starter kits?

paypal using forms

installing starter kit

two separate forums for the commerce starter kit?

can't install!

error bc30455 - argument not specified for parameter 'password'

could not find stored procedure 'shoppingcartmigrate'

object reference not set to an instance of an object.

error in register.aspx

register button problem

sql problem

i tried to modify the look of the header.ascx file in dw (as visual studio is a pain) but now the search feature wont work

cookies and cookieless ibuyspy shopping cart.

cannot open database requested in login 'commerce'

new page questions

can not even run the install.

aspnet 1.1

installation problem: unsuccessful database connection

urgent: my shopping cart cannot work properly

problems with commerce starter kit??!!??

about shoppingcart

configuring ibs to work on virtual server

create new site using starter kit

dhl shipping services

login page(dll error)

admin site error

looking for suggestions as to where to find prospects for made to spec e-commerce

why does the code ask for the cartid?

migrate commerce starter kit database to different web app

default login to the commerce site

   
  Privacy | Contact Us
All Times Are GMT