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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:00:00+00:00 2026-05-21T03:00:00+00:00

I’m having trouble figuring out something that should be simple but I’m having trouble

  • 0

I’m having trouble figuring out something that should be simple but I’m having trouble trying to figure it out.

I have a Page (Default.aspx) which contaiins a WebTab Control (Infragistics, but shouldn’t matter really). Inside each Tab Control of the WebTab is another page, Page1.aspx, Page2.apx, so it’s like this:

Default.aspx
WebTab
    WebTabControl(0)
        Page1.aspx <-- I'm in this codebehind after 
                   calling __doPostBack from JavaScript 
                   as I have a parameter from a WebDataGrid.
    WebTabControl(1)
        Page2.aspx <-- I want to open this page and pass it a parameter.

I’m in Page1.aspx codebehind doing a postback as I have a parameter that I need to pass to the next page, and I want to open Page2.apx which is inside the 2nd Tab.

Basically, I think I need to do the following steps.
1. Set the Active Tab to WebTabControl(1)
2. Give it the Parameter that I have for it to do something with.

I know I’ll have to shoot myself once someone tells how to do it 🙂
Thanks!

  • 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-21T03:00:01+00:00Added an answer on May 21, 2026 at 3:00 am

    Thanks very much for the response, but that’s not what I was looking for.

    What I actually did to resolve this problem was to create a JavaScript function in the Default.aspx page that I was able to call from Page1.aspx.

    This is the function in the Default.aspx Page, which activated the Tab that I needed and populated the search box with the value I needed from the WebDataGrid from Page1.aspx.

        <script type="text/javascript">
        function activateTab(rowId, tabId) {
            var tab = $find("WebTab1");
            var ctl;
            if (tabId == 3) {
                ctl = window.frames.document.frames[tabId].window.document.getElementById("WebDialogWindow2_tmpl_txtAddressNumber");
            }
            else if (tabId == 2)
                ctl = window.frames.document.frames[tabId].window.document.getElementById("WebDialogWindow2_tmpl_txtAccount");
    
            if (ctl != null) {            
                ctl.value = rowId;
                tab.set_selectedIndex(tabId, true, null);
                window.frames.document.frames[tabId].window.DoSearch(rowId);
            } 
        }
    </script>
    

    I was then able to call the activateTab() function from Page1.aspx with the following function, which is called from the DoubleClick event of the WebDataGrid (I needed to grab a value from the row that was selected.)

            function doubleClickRow() {
            var grid = $find("WebDataGrid1");
            //Get the ADDRESS_NUMBER value.
            var rowId = grid.get_behaviors().get_selection().get_selectedRows().getItem(0).get_cell(2).get_value();
            window.parent.activateTab(rowId, 3);
        }
    

    The next step was to call this JavaScript function on Page2.aspx from the activateTab() function on Default.aspx as shown in the first code example.

            //Force a Postback
        function DoSearch(id) {
            HideSearch();
            __doPostBack("WebDataGrid1", id);
        }
    

    This actually did the post back that I needed so that’s all I had to do. If I wanted to pass those 2 __doPostBack() values into the Page2.aspx Page_Load event, I would have to do the following. However in my case the Post back was all I needed as I had already populated the search box.

                //Don't need these right now, but just in case we might I'll leave them in.
            string eventTarget = Page.Request.Params.Get("__EVENTTARGET");
            string eventArgument = Page.Request.Params.Get("__EVENTARGUMENT");
            Search();
    

    For those who don’t understand the last part with the __EVENT* code, it’s possible if you use a ScriptManager, otherwise you have to code your own Parameters, which I won’t get into here.

    That’s all there was to it. I certainly learned some JavaScript along the way here so I hope it’s useful for someone else out there.

    Thanks
    Dave

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a French site that I want to parse, but am running into
Seemingly simple, but I cannot find anything relevant on the web. What is the
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am trying to loop through a bunch of documents I have to put
I'm making a simple page using Google Maps API 3. My first. One marker
this is what i have right now Drawing an RSS feed into the php,

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.