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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:59:31+00:00 2026-06-15T04:59:31+00:00

I want to write accept messege (not messege box) after user send messege in

  • 0

I want to write accept messege (not messege box) after user send messege in “contuct us” page.
The messege need to give him acception that the messege was sent to the website manager…
something like:”Your request was received we will contact you as soon as possible”.
But I want the messege will written on the web page in good place, or clear the form
and the messege will apear on the head of the page…
I know that I can redirect to new page and write this messege on it but I looking
for An elegant solution…

the asp.net code is:

@{
    var db = Database.Open("MyProjectSite");

    var name="";
    var email="";
    var message="";
    var answer="";

    Validation.RequireField("name","please insert your name");
    Validation.RequireField("email","please insert your email");
    Validation.RequireField("message","please insert your message");
    Validation.RequireField("answer","please insert your answer");
     if(IsPost)
    {
        name=Request.Form["your_name"];
        email=Request.Form["your_email"];
        message=Request.Form["your_message"];
       var insertMessege="INSERT INTO messegesFromCustomers(name,email,content,isCustomer)"+"VALUES (@0,@1,@2,@3)";
       db.Execute(insertMessege,name,email,message,"not customer yet");
       db.Close();
    }

}

Which code I need to add in my code that the accept messege will appear?

thanks..

  • 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-15T04:59:32+00:00Added an answer on June 15, 2026 at 4:59 am

    I would recommend using two asp:Panel controls. One contains the success message, which is initially hidden; the other the form fields:

    <asp:Panel ID="pnlSuccess" Visible="false" runat="server">Success message here</asp:Panel>
    <asp:Panel ID="pnlContact" runat="server">Input fields here</asp:Panel>
    

    When the contact request is successfully saved to the database, set the Visible property of pnlSuccess to true and pnlContact.Visible to false. This will show the same page, but with the message visible and the form hidden.

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

Sidebar

Related Questions

I want to write <a href=product.php?id=5> as product/5.I am not talking about user to
I want to write a C# method that can accept any number. Something like:
I want to write a stored procedure that will accept a parameter of @searchString.
I want to write an apps that accepts user command. The user command is
I want to write a C++11 function that will only accept string literals as
I want to write a server that can accept multiple clients in python (twisted).
I want to write a DCG predicate that will accept an alphabetic label, a
I want to write a schema which accept XML documents like this: <plugin> <label
I want write a simple query which will fetch data from a table (which
I want write a little code analyzer which parses nested structures and translates into

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.