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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:32:16+00:00 2026-06-18T15:32:16+00:00

I runned business logic when user submit form. such as; . . . //some

  • 0

I runned business logic when user submit form. such as;

.
.
.
//some process
if(model.UserName == "foo")
{
//some process
}
if(model.City != "Istanbul")
{
   //Alert user; Are you sure you want to continue bla bla bla...
  //Then user click if 'yes' some process else some process
}

I thought, keep object in session and show javascript confirm message. if user click ‘yes’ or no i create hidden input match viewModel’s property and set input value user’s choise. then submit form automatcally.
but i thought again, it’s way not good. What is the bestpractice for?

  • 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-18T15:32:17+00:00Added an answer on June 18, 2026 at 3:32 pm

    What u have thought about javascript is quite right. JS is the best practise for this type of scenario. It will add some attraction to ur page. Though u can do this from C# itself by putting a ‘visible’ property true/false when a event would be triggered.

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

Sidebar

Related Questions

In node.js vm module , i can execute some javascript in another node.js process.
Hello I've runned in to a problem again that I can't solve on my
I'm trying the following code http://code.google.com/apis/ajax/playground/#change_the_playing_video It works well when runned from the playground
I'm asking for help so my life, and more importantly my user's lives will
I have runned cap deploy:setup & cap deploy:check, everything looks fine and dandy... However
I'm using the Windows Media Player OCX in a program runned on hundreds of
Can anyone explain why DbgView misses some of my trace writes ? I'm using
I need to have some of my C++ classes, functions and namespaces renamed as
When you are creating a Search for your Website, you Want the user experience
I have a bash script runned every day via cron. In this bash I

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.