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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:14:43+00:00 2026-05-24T14:14:43+00:00

We have a customized asp.net web form page (generated by sharePoint). The page has

  • 0

We have a customized asp.net web form page (generated by sharePoint). The page has been customized with a button that opens up a window using javascript to a second asp.net page for a search and asp.net gridview selection process. Perhaps the platform is not important, but that second page gemerates javascript on the fly to send selected information from the selected itemon the grid to first page’s form form fields. That code is below and does work great.

Can somebody suggest a jquery alernative to this? Will I need a jquery addin if using jquery from Google’s site.

Ideally what we want is to pop up a window that allows us to search an external datasource and then select from entries found and automatically fill sharepoint form columns. the javascript code we have does work.

<a href="javascript:PS=window.open('PS.aspx','PS','width=800,height=600,scrollbars=1');PS.focus()">
CLICK HERE TO SEARCH FOR PHYSICIAN
</a>

<script language="VB"  runat="server">

    Protected Sub PhysicianGrid_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles PhysicianGrid.SelectedIndexChanged
       'session("firstname") = PhysicianGrid.SelectedRow.Cells.Item(2).Text
       Dim strjscript as string = "<script language=""javascript"">"
       strjscript = strjscript & "passvalue('lastname','"+PhysicianGrid.SelectedRow.Cells.Item(1).Text+"');"
       strjscript = strjscript & "passvalue('firstname','"+PhysicianGrid.SelectedRow.Cells.Item(2).Text+"');"
       strjscript = strjscript & "passvalue('Phone','"+PhysicianGrid.SelectedRow.Cells.Item(8).Text+"');"
       strjscript = strjscript & "<" + "/script>"
       Literal1.text = strjscript
    End Sub
 </script>
  • 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-24T14:14:44+00:00Added an answer on May 24, 2026 at 2:14 pm

    window.opener is an object that points at whatever window/tab opened the current window. You shouldn’t have to generate javascript on the fly to pass values back and forth. A simple

    window.opener.lastname = ...
    window.opener.firstname = ...
    

    should do the trick of setting those values in the parent window, and then a function call to indicate to the parent that the data’s available:

    window.opener.dataIsReady();
    

    The same goes for passing data from the parent to child windows:

    w = window.open(...);
    w.somevar = somevalue;
    w.someFunc();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net web page created with web forms. It has a number
Given: I have a website that includes both ASP.NET Web Forms and Classic ASP
I have built an ASP.NET mvc web application and it seems that some of
I have an ASP.NET MVC Page that i have to display the fields in
I've been working on a C# ASP.Net application that requires images to be customized
I have an ASP.NET web site technology that I use for scores of clients.
i have to create one asp.net mvc page that will show template of controls.
I have an existing ASP.NET web application that is for public use and any
i have taken the default asp.net mvc template and customized to work for me.
I have an application that has a list of buttons and has customized tooltips.

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.