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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:12:43+00:00 2026-06-14T06:12:43+00:00

I have managed to achieve requested functionality in WinForms, though as I’m still a

  • 0

I have managed to achieve requested functionality in WinForms, though as I’m still a beginner in ASP.NET (which is far more complex platform than Windows, variables ‘loses’ they’re everything they owned before) and client VS. server, I kind of ask my self where to start.

In WinForms using system reflection I was able to be repotted

(via a ListView placed on the current form ) ListView is than populated

with every single Function information (timings parameters etc…)

but I can’t really think about a web site to host that ListView even though I could lose it before publishing the application. Instead,

I thought of something like the following, and I would like to check with you experienced developers, how do you take care of your business?

I can actually be satisfied with Visual studios own debugging capabilities .

This is my approach

A click on a submit button for example

protected void imgBut_Submt_Click(object sender, ImageClickEventArgs e)
{
    //debugging and logging via methods that's in a namespace/ classses showed below         
    SeSn.Modify(Act.Edit,SeSn.CurrentStage, Mod.submitedFreshQuery); <-----=======
    App.Add(AppFlags.SubmitButtonWasPressed);<------===========

    Display.Show(DV_UsersInTblTime); 
    tblTimeDataLists.getReportFromSP(Convert.ToInt32(DDL_ChosenBranch.SelectedItem.Value), SelectedReportMonth, SelectedReportYear);
    Visibility.Hide(imgBut_Submt);
    var m = Request.Form["DDLmonth"];
    var y = Request.Form["DDLyear"];

    string branchName = GetTableData.AsString(HTDB_Cols.TblBranches.BranchName, HTDB_Tables.TblBranches, HTDB_Cols.TblBranches.BranchID, DDL_ChosenBranch.SelectedItem.Value);
    if (tblTimeDataLists.TheresNoRecordForThatSnif(Convert.ToInt32(DDL_ChosenBranch.SelectedItem.Value), Convert.ToInt32(m), Convert.ToInt32(y)))
        JsTemplates.Alert(string.Format("No data for {0} at period   {1}/{2}", branchName, m, y));
    DisplayRepResults();

}

You can have a little look on the methods I’m using to “harvest” systems session data

namespace DebugTests
{
    namespace Sesseion
    {

    public static class SeSn
    {
        public const string CurrentStage = "CurrStage";
        public static bool isNotEmpty()
        {
            return HttpContext.Current.Session.Keys.Count > 0;
        }
        public static bool Raised(string FlagName)
        {
            return GetValueAS.Bool(FlagName);
        }
        public static void Modify(Act action, string NewQs_paramName, string NewP_Value = "", string CurSes_ParamName = null, bool redirectWithNewQuerySettings = false)
        {
            switch (action)
            {
                case Act.Remove:
                    if (isNotEmpty())
                        HttpContext.Current.Session.Remove(CurSes_ParamName);
                    break;
                case Act.Replace:
                    HttpContext.Current.Session.Remove(CurSes_ParamName);
                    HttpContext.Current.Session.Add(NewQs_paramName, NewP_Value);
                    break;
                case Act.Edit:
                    HttpContext.Current.Session.Remove(CurSes_ParamName);
                    HttpContext.Current.Session.Add(CurSes_ParamName, NewP_Value);
                    break;

                case Act.Add:
                    HttpContext.Current.Session.Add(NewQs_paramName, NewP_Value);
                    break;
                case Act.AddFlag:
                    HttpContext.Current.Session.Add(NewQs_paramName, true);
                    break;

            }


        }

    }
    public enum Act
    {
        Edit, Add, AddFlag, Remove, Replace
    }
    public sealed class SesVals
    {
        public const string state = "Cstate";
        public const string custid = "custid";
        public const string recordID = "recordID";
        public const string SelectedMonth = "SesMonth";
        public const string SelectedChosenWorker = "SesChosenWorkerSelected";
              //etc....
    }
    public sealed class Mod
    {
        public const string FirstloadeViaLink = "Link",
                            submitedFreshQuery = "submitedFreshQuery",
                            canceledInsert = "cancelInsert",
                            filteredByTable = "filteredByTable",
                            filterByColumn = "filterByColumn";
        //etc....


    }
    public sealed class App
    {
        public static void Add(string flagName)
        {
            Sesseion.SeSn.Modify(Act.AddFlag, flagName);
        }
    }
    public sealed class AppFlags
    {
        public const string SubmitButtonWasPressed = "SubmitButtonWasPressed";
        public const string MainDataSetIsPopulated = "MainDataSetIsPopulated";
        public const string HTDB_DisplayCpa_Cols_WasSelected = "HTDBCpa_ColsWasSelected";
           //etc....
    }

  }
}

Is this the way to do it If i want to avoid Extra programs / plugins for VS
or is it a must to use them?

How are you managing your apps maneuvers?

  • 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-14T06:12:44+00:00Added an answer on June 14, 2026 at 6:12 am

    (Ignoring whole bunch of text/code in question that does not seem to be related to question in title)

    You can debug both ends of web application written using ASP.Net by using Visual Studio.

    Browser side debugging with VS is limited to IE, but generally it is not a problem as all modern browsers for desktop systems include developer tools (usually avaialble by clicking F12).

    Server portion can be directly debugged on either built in Web server or on IIS. In case if you don’t use default deployment you can simply attach VS debugger to w3wp process that contains app pool for given site.

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

Sidebar

Related Questions

I have managed to create a custom action in C# using MakeSfxCA which is
I have managed to extract the filename and the extension and passed that to
I have managed to confuse myself whether I should return E_NOTIMPL or E_NOINTERFACE from
I have managed to set up Cassandra + Thrift and the Python wrapper for
I have managed to get a cron job to run a rake task by
I have managed to bring the following output with this query SELECT DISTINCT IF(purchaseproduct_customerid=0,contactperson,vendorname)
I have managed to put this condition and rule below together to redirect a
I have managed to run hadoop examples grep, wordcount... however I am finding some
I have managed objects that have image properties. Since storing large blobs in CoreData
I have managed to reload the list item in a list when the activity

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.