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 6681355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:34:51+00:00 2026-05-26T04:34:51+00:00

I have a website, published here . On the contact us page, linked above,

  • 0

I have a website, published here.

On the contact us page, linked above, there is a drop down menu.

Depending on the selection of the content type in that menu, a different person is emailed.

The original developer, apparently to my inexperienced eyes at least, hardcoded the email addresses for those people.

Several of them have left the company, and we are maintaining their email addresses and checking them solely for the purpose of these web contacts.

Ideally, I would like to set up a control on the website admin page to allow the addresses to be edited in the future.

I can see and edit the contact us page in VS 2010 (currently using web matrix and VS 2010 Express but I have VS 2010 Professional as well.)

My experience is very limited, so I will have to learn a lot, I expect, to make this happen.

Enough background, I hope. What I need is to find where the emails are coded. The dropdown shows a identifier which relates to the selected choice, but I can’t find what that relates to, or what control relates it to an email (or where it posts to when “Send” is clicked.)

I apologize in advance for my lack of knowledge. I’m trying to learn, and I have a job to do. I’ll try not to suck up too much of anybody’s time, and I’ll try to work out on my own, what I can. Please let me know what further data I can provide.

This is the code for the dropdown. If there is a reference here to where the data I need is, I can’t find it. I can post the rest of the code for the page if necessary.

EDIT: I posted the whole page. The dropdown seemed too basic to be of help.

EDIT: Posted source code

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Mail;

public partial class ContactUs : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{

    Calendar cal = new Calendar();
    string dat = cal.TodaysDate.Date.ToLongDateString();

        System.Web.Mail.MailMessage mm = new MailMessage();
        mm.From = "WBS Website<info@wbs.ae>";
        if (DrpDwnType.SelectedItem.Value == "G")
            mm.To = "david@wbs.ae";
        else
            mm.To = "robert@wbs.ae";

        mm.Cc = "wolfi@wbs.ae";
        mm.Bcc = "precise.customer@gmail.com";
        mm.Subject = "Online comments from WBS website visitor, " + TXTFname.Text;
        mm.Body = "<div style='border:solid 2px RED; padding:25px 25px 25px 25px'><br><br> <strong>Online comments from WBS website</strong><br> <br> ------------------------------------- <br> Date : " + dat + "<br> <br> First Name : " + TXTFname.Text + "<br>Last Name : " + TXTLastName.Text + "<br> Email Address : " + TXTEmail.Text + "<br> Contact No : " + TXTMob.Text + "<br> Enquiry Type : " + DrpDwnType.SelectedItem.Text + "<br> <br> <br> The visitor comment : <br> --------------------------------------- <br> " + TXTComment.Text + "</strong><br><br>Further Information : " + RadioButtonList1.SelectedItem.Value.ToString() + "<br><br><br></div>";
        mm.BodyFormat = MailFormat.Html;
        SmtpMail.Send(mm);
        TXTFname.Text = "";
        TXTLastName.Text = "";
        TXTMob.Text = "";
        TXTComment.Text = "";
        TXTEmail.Text = "";
        TXTMess.Text = "Thank you for your interest in WBS!!! ";



}

}

  • 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-05-26T04:34:51+00:00Added an answer on May 26, 2026 at 4:34 am

    In the BIN folder of the website on the web server you will find one or more DLL files.

    Those files can be “decompiled” to their source code using tools such as ILSpy.

    After decompiling the whole code search for the keyword “DrpDwnType” and you should see where the email addresses are hard coded. After compiling it again you should be able to update the DLL files on the website to reflect the changes.

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

Sidebar

Related Questions

I have created a clickonce deployment and published it to a website. I want
I have published a website on my windows server using IIS 7.0 and visual
I have finally finished my web site. I published it, and I was surprised
I would like to publish a website using msbuild. Since I have a website
I have a webservice that exists in an asp.net website. When I publish the
I have website, usually all looks fine but sometimes one div is on the
I have website on the server, which is not precompiled (with source code, so
I'm using jQuery. I have website feature that does an ajax search and returns
I have a website that plays mp3s in a flash player. If a user
I have a website that I've just uploaded onto the Internet. When I browse

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.