locked
Simple automation in C# web applicaton RRS feed

  • Question

  • Hello, could somebody help us in following:

    1) There is an WEB application in which via Search text box, we filter unique codes in column (ColumnName) in a form e.g., 12345 

    2) Upon having displayed found row of data from the database:

    3) We must select that filtered row of data by checking check box

    4) Final step is to click button which calls certain procedure (Get Largest number in column "Column Name ORDER")

    Namely, after the first filtered code, we must manually select(via checking check box) filtered row and after that click on button.....that runs function get Largest number. Outcome of this are values in column "Oreder" in format: 1,2,3,4,5,6,etc.....

    I.e., like in EXCEL function FILL IN, with step = 1

    Please, what would be the way to automate the second and third step in order to avoid them completely i.e.

    To manually type unique code in Search box and to have the rest of two steps to be performed automatically,  i.e, upon having filtered certain row from database, to have steps SELECT AND PUSH BUTTON EVENT automatically performed.

    Because, there are around 1000 different code numbers and, manual actions take too much of time. We need to speed it up......


    namespace BallotLottery.UI
    {
      
    partial class ShowPartyVuk2010GENTable
            : BaseApplicationPage
    // Code-behind class for the ShowPartyVuk2010GENTable page.
    // Place your customizations in Section 1. Do not modify Section 2.
    {
            
    
    
          #region "Section 1: Place your customizations here."
    
          public ShowPartyVuk2010GENTable()
            {
                this.Initialize();
            }
    
            public void LoadData()
            {
                // LoadData reads database data and assigns it to UI controls.
                // Customize by adding code before or after the call to LoadData_Base()
                // or replace the call to LoadData_Base().
                LoadData_Base();
    			
            }
          
          public override void SaveData()
          {
              this.SaveData_Base();
          }          
        
    #region "Ajax Functions"
    
            [System.Web.Services.WebMethod()]
            public static Object[] GetRecordFieldValue(string tableName , 
                                                        string recordID , 
                                                        string columnName, 
                                                        string title, 
                                                        bool persist, 
                                                        int popupWindowHeight, 
                                                        int popupWindowWidth, 
                                                        bool popupWindowScrollBar)
            {
                // GetRecordFieldValue gets the pop up window content from the column specified by
                // columnName in the record specified by the recordID in data base table specified by tableName.
                // Customize by adding code before or after the call to  GetRecordFieldValue_Base()
                // or replace the call to  GetRecordFieldValue_Base().
    
                return GetRecordFieldValue_Base(tableName, recordID, columnName, title, persist, popupWindowHeight, popupWindowWidth, popupWindowScrollBar);
            }
    
            [System.Web.Services.WebMethod()]
            public static object[] GetImage(string tableName,
                                            string recordID, 
                                            string columnName, 
                                            string title, 
                                            bool persist, 
                                            int popupWindowHeight, 
                                            int popupWindowWidth, 
                                            bool popupWindowScrollBar)
            {
                // GetImage gets the Image url for the image in the column "columnName" and
                // in the record specified by recordID in data base table specified by tableName.
                // Customize by adding code before or after the call to  GetImage_Base()
                // or replace the call to  GetImage_Base().
                return GetImage_Base(tableName, recordID, columnName, title, persist, popupWindowHeight, popupWindowWidth, popupWindowScrollBar);
            }
            
        
          protected override void BasePage_PreRender(object sender, EventArgs e)
          {
              base.BasePage_PreRender(sender, e);
              Base_RegisterPostback();
          }
        
          
          #endregion
    
          // Page Event Handlers - buttons, sort, links
          
    
    
    #endregion
    

    • Edited by daredavil3011 Tuesday, December 22, 2020 1:23 PM Code behind ASP added
    • Moved by Dave PatrickMVP Tuesday, December 22, 2020 1:40 PM looking for forum
    Tuesday, December 22, 2020 1:04 PM

Answers

  • I'd try asking for help over here.

    C# | The ASP.NET Forums

    dotnet-csharp - Microsoft Q&A

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.


    • Edited by Dave PatrickMVP Tuesday, December 22, 2020 1:40 PM
    • Proposed as answer by Guido Franzke Tuesday, December 22, 2020 2:00 PM
    • Marked as answer by daredavil3011 Wednesday, December 23, 2020 10:16 AM
    Tuesday, December 22, 2020 1:39 PM