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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:10:41+00:00 2026-05-26T16:10:41+00:00

I am creating a web application for my company that needs to deal with

  • 0

I am creating a web application for my company that needs to deal with form processing and database manipulation. The application is implemented using .NET Framework 3.5 using C# and Visual Studio 2008 as the IDE and Microsoft SQL Server 2005 as the database.

Here is my problem:

  1. I have a lot of forms

  2. But my boss only want me to create a single page for the database
    processing
    (easier to extend in the future)

I figured out the only way to solve this problem is by having only 1 .aspx file (that contains everything about the database) and having it invoked as a pop up window everytime a forms need to deal with the database.

Here is another problem of mine:

  1. Due to stateless nature of HTTP, I am unable to process and pass
    variable
    between 2 different windows.

  2. I managed to create certain Javascript functions and have the
    variable transferred on display, however it can only pass a variable
    that is the primary key in the table. To process other columns in
    the table is possible but as the consequence I have to write a very
    long inline script in my .aspx page and after it is compiled people
    can easily view how to access my company database easily. Hence, I
    don’t favor this (beside to deal with 1 form, I need to create a
    long code already, imagine if i have more than 1000 forms!)

So there are two ways you guys can help me:

  1. Suggest another way other than popping up a new window for my
    problem, maybe even advise on how it’s implemented.

  2. If you think popping up is the solution, you mind to share some
    snippets that can help me figure out the variable passing between
    two different windows
    . I can use some advise especially from some
    Javascript expert on this :).

Note: Solution must be workable in ASP.NET Framework 3.5 and tested using IE browser version: 8.

P.S: This is a short explanation about my application flow

  1. Let’s say I entered data about a product (it has few properties id, name, price, etc) into the database

  2. Later on somehow I want to edit one or few properties of that product, so I have to launch a form which called "editor.aspx"

  3. Instead of entering the product id (which is the primary key) into the form (and edit the data based on the entered product id) and risking to miscalculately edit the correct data, I provide a small button in the form (let’s name it btSearch), that will launch a new popup window which contains the gridview of the database of all product (with selection enabled)

  4. Now I just need to browse through the gridview, select a particular row, it will close the popup and I expect to see few data from that row appeared on my original page (in the textboxes/labels)

I hope my explanation above clears the air, thank you.

  • 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-26T16:10:42+00:00Added an answer on May 26, 2026 at 4:10 pm

    I recently wrote something like that: A database handler as aspx file. But i invoked it by using ajax / jquery.

    When my aspx file is done, i write something to the response stream, some code, a json string, what ever.

    Example:

    $.post("yourdatabasehandler.aspx", { name: "John", lastname: "Smith" }, function(data) {
        alert("Response from page: " + data);
      });
    

    In that example, name and lastname are values that are posted to your site. You can access them like that:

    string name = Request.Params["name"]
    // Do your database , validation and whatever logic here
    Response.Write("Cool dude");
    

    The above javascript will alert “Cool dude” after your databasehandler is done. Inside your javascript you can react to the response how ever you want – For example reload a page.

    Hope that helps? Regards

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

Sidebar

Related Questions

I am creating a web application on the .NET 4.0 framework (beta2) in C#.
I'm creating a web application which loads tabs using AJAX. My problem is that
I am creating a web application that is going to send messages using NServiceBus,
I am creating a web application using C#.net. I'm using a hierarchical grid to
I'm creating a web application using C#.net My webpage contains a Hidden Field Control.
I am creating a web application using Spring. One requirement is after processing a
I am creating a web application for bidding that needs to check for the
I creating a web application using JSF,Hibernate,Spring. I have added a filter for checking
I'm creating a web application using spring mvc. I have started to incorporate the
I am creating a web application in ASP.net/VB.NET and I have an issue with

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.