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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:54:00+00:00 2026-06-04T07:54:00+00:00

What is the best way to resolve problem with ShowDialog in webgui ? I

  • 0

What is the best way to resolve problem with ShowDialog in webgui ?

I have two Forms. MainForm i LogonForm.
On page load of MainForm I want to show LogonForm (via ShowDialog) for user to connect into db.
And when result is ok, rest of mainform will load.

But in webgui ShowDialog works differently as in WinForms. And after showing LogonFrom it doesn’t wait for response (so the response is not ok).

How can I resolve it ?

  • 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-04T07:54:03+00:00Added an answer on June 4, 2026 at 7:54 am

    Due to the nature of websites, the entire Load method must complete before anything can be sent to the client. You could, in theory, build the entire page, hide all of the content, and then show it after a successful login, but that would still require all of the information of the page to be sent to the client, and any moderately savvy user would be able to view all of that content if they wanted to.

    What you need to do is to not generate anything on the page underneath the dialog, and when the user presses the ‘submit’ (or whatever) button on the login popup you should send a new request to the server (rather than trying to handle it client side) in which you authenticate the user, and if appropriate, redirect them to the homepage.

    Now normally sites will just have a separate login page which sends you to a regular page. If you want to have a popup you can, but it will merely be a popup on top of a blank site which redirects to an entirely new page without a pop (on successful login).

    Web environments are inherently different from desktop applications and it requires a significant paradigm shift for you as a programmer. The solution is more than just “how do I block the form load until the popup completes” because blocking the form load means the user never sees a thing (which leads to a deadlock).

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

Sidebar

Related Questions

I think the best way to resolve this problem is just to paste my
The best way of describing this is I have a table of people with
the best way to explain is with example so: this is the model public
The best way I can think of to ask this is by example... In
The best way to store images into MySQL is by storing the image location
What is the best way to maintain upgrade scripts between versions of a product?
What is the best way to view the HTTP response headers from a request
What's the best way in C# to set up a utility app that can
What is the best way to implement a three item hashMap? For example, I
Possible Duplicate: Best way to stop SQL Injection in PHP I am creating a

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.