I am newbie to the asp.net and need help to create a Technical Support Help Form with different topic such as Hardware, Software, PDA etc. I need to send email to specific person if user selected "Hardware" and specific persons (multiple 3-4 email addresses)
if the user Selected Software option from the drop down list. My form will look like as below
First Name:
Last Name:
Email:
Help Requested: Hardware | Software | PDA (Dropdown list)
Comment
Submit
So when user fills out the information and from the dropdown if the user selected Hardware than the email should go to
abc@domain.com, zyx@domain.com, pqu@doamin.com email addresses and if user had selected Software than the email should go to
I am newbie to the asp.net and need help to create a Technical Support Help Form with different topic such as Hardware, Software, PDA etc. I need to send email to specific person if user selected "Hardware" and specific persons (multiple 3-4 email addresses)
if the user Selected Software option from the drop down list. My form will look like as below
First Name:
Last Name:
Email:
Help Requested: Hardware | Software | PDA (Dropdown list)
Comment
Submit
So when user fills out the information and from the dropdown if the user selected Hardware than the email should go to
abc@domain.com, zyx@domain.com, pqu@doamin.com email addresses and if user had selected Software than the email should go to
In order to resolve your issue, please add DropDownList control in your page at first. When onselectedindexchanged is fired, change the email in the code behind. Please check the demo below and modify it to meet your reqirement.
Please don't forget to set AutoPostBack as true which will lead a postback to the server automatically occurs when the user changes the list selection.
Best wishes,
emailform
Please mark the replies as answers if they help or unmark if not.
Feedback to us
ypanchal
Member
1 Points
14 Posts
Technical Support Help Form
Apr 19, 2012 08:53 PM|LINK
Hello,
I am newbie to the asp.net and need help to create a Technical Support Help Form with different topic such as Hardware, Software, PDA etc. I need to send email to specific person if user selected "Hardware" and specific persons (multiple 3-4 email addresses) if the user Selected Software option from the drop down list. My form will look like as below
First Name:
Last Name:
Email:
Help Requested: Hardware | Software | PDA (Dropdown list)
Comment
Submit
So when user fills out the information and from the dropdown if the user selected Hardware than the email should go to
abc@domain.com, zyx@domain.com, pqu@doamin.com email addresses and if user had selected Software than the email should go to
xyz@domain.com, RXM@domain.com, anyone@domain.com addresses only.
Could someone please help me to get it started.
Thanks in advance,
YashuPa
email form
piram
Member
127 Points
151 Posts
Re: Technical Support Help Form
Apr 19, 2012 09:35 PM|LINK
Look here:
http://www.4guysfromrolla.com/articles/072606-1.aspx
email form
Catherine Sh...
All-Star
23373 Points
2490 Posts
Microsoft
Re: Technical Support Help Form
Apr 24, 2012 08:02 AM|LINK
Hi ypanchal,
Welcome to asp.net forum!
In order to resolve your issue, please add DropDownList control in your page at first. When onselectedindexchanged is fired, change the email in the code behind. Please check the demo below and modify it to meet your reqirement.
In the .aspx
<asp:DropDownList ID="DropDownList1" runat="server" onselectedindexchanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True"> <asp:ListItem>Please select</asp:ListItem> <asp:ListItem>software</asp:ListItem> <asp:ListItem>hardware</asp:ListItem> </asp:DropDownList> <br /> <asp:Label ID="Label1" runat="server" Text="Email"></asp:Label> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>In the .cs
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { if (DropDownList1.SelectedIndex == 1) { TextBox1.Text = "xyz@domain.com, RXM@domain.com, anyone@domain.com "; } else if(DropDownList1.SelectedIndex == 2) { TextBox1.Text = "abc@domain.com, zyx@domain.com, pqu@doamin.com "; } }Please don't forget to set AutoPostBack as true which will lead a postback to the server automatically occurs when the user changes the list selection.
Best wishes,
email form
Feedback to us
Develop and promote your apps in Windows Store