Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8342367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:44:59+00:00 2026-06-09T05:44:59+00:00

I have to send an email which contains some checkboxes.My aspx form also have

  • 0

I have to send an email which contains some checkboxes.My aspx form also have same checkboxes which is in html email template but form checkboxes are asp controls.

If user ticks on 1 checkbox and other checkbox is unselected,
then how can i send the check value to html template and get into html template and select,unchecked the
checkboxes in html template according to selected by user in form.

html checkboxes and aspx form checkboxes both have same text.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:45:01+00:00Added an answer on June 9, 2026 at 5:45 am

    How are you generating and formatting the email? Are you doing it in VB.NET/C# with System.Net.Mail? If you are doing it the way I think you may be, I think your best bet would be to pass an array of true/false values when you format the body of the email using the template, and check/uncheck the checkboxes in the email using these values. For example:

    //Determine which checkboxes are checked and add them to the array.
    Dim checkedBoxes New ArrayList
    checkedBoxes.Add(IIf(chk_first.Checked, "checked", ""))
    checkedBoxes.Add(IIf(chk_second.Checked, "checked", ""))
    checkedBoxes.Add(IIf(chk_third.Checked, "checked", ""))
    
    //Then you'd have your email generation code here. This is only the body part of it.
    email.Body = String.Format(File.ReadAllText([YourTemplateFile]), checkedBoxes.ToArray())
    

    Of course I’m making a lot of assumptions here. Then, in your template file, each checked value would use a true/false value from the array, so the first one would have:

    <input type="checkbox" name="check1" value="check1" {0} />
    

    I hope this helps. If I am way off, post the code you are using to generate and send the email and I’ll be able to help more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to send an email which contains a picture and some text around
I have the following code to send users a verification email, which contains some
I have an application in which I need to send an email which contains
I have written a function which receives some parameters (email addresses) and send email.
I have a form which contains some unique input fields and some others with
I send out an email which has an html attachment. Some recipients read the
I have a page called send.email.php which sends an email - pretty simple stuff
I have a page called send.email.php which sends an email - pretty simple stuff
I have to made a page which will send Email to Newsletter subscribers. There
I have send an email using php mailer class. mail was sending successfully but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.