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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:05:51+00:00 2026-06-12T13:05:51+00:00

I am developing a screen in c# dot net where i have a search

  • 0

I am developing a screen in c# dot net where i have a search screen which contains a hyperlink field containing some querystring values, on clik of hyperlink field i have to open a pop up window which is working fine however i dont want adress bar or menu items to be displayed in pop up window also size should be specific, can anyone please tell me how to achive it.

I am using below code however its only changing size of window and not hiding menu etc moreover first pop up window gets loaded in full size and then gets changed to size i have specified.

<asp:HyperLinkField DataNavigateUrlFields="FileName" DataTextField="FileName"
Target="_blank" DataNavigateUrlFormatString="javascript:var NewWin=window.open
('abc.aspx?EMPId={0}',null,'width=800,height=200,top=100,left=100,scrollbars=no,
directories=no,status=no,toolbar=no,resizable=no');"HeaderText="EMPId">

</asp:HyperLinkField>

Also, i could use a linkbutton where this pop up window is working fine however i have a requirement of adding querystring in rowdatabound of grid to URL which gets fired on click on my linkbutton and pop up window gets open however i am not able to do so by using below code.

protected void grdDisplayResult_RowDataBound(object sender, GridViewRowEventArgs e)
{

if (e.Row.RowType == DataControlRowType.DataRow)
{
HyperLink hyperlink = (HyperLink)e.Row.Cells[2].Controls[0];
Label lblRowNumber = ((Label)e.Row.FindControl("lblRowNum"));
hyperlink.NavigateUrl += "&RowNum=" + lblRowNumber.Text;
}
} 

if i get solution for any of them it would be of great help.

  • 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-12T13:05:52+00:00Added an answer on June 12, 2026 at 1:05 pm

    You can achieve this by calling a javascript function & passing parameters to it. You can find your control server side using RowDataBound event of gridview & attach a client side event to open popup. There you pass parameters to your function using Eval & open a popup with your desired query string values. Something like this
    On aspx

        <script language="text/javascript">
         function OpenPopup(id,name)
         {
              window.open('myWindow.aspx?id='+id+'&name='+name,'_blank',width=800,height=200,top=100,left=100,scrollbars=no,menubar=no,directories=no,status=no,toolbar=no,resizable=no,url=no');
         }
         </script>
    

    On server side inside RowDataBound event of your gridview

    if (e.Row.RowType == DataControlRowType.DataRow)
            { 
              LinkButton myLinkBtn= (LinkButton)e.Row.FindControl("yourControlid");
              if(myLinkBtn !=null)
              {
                  myLinkBtn.Attributes.add('onclick','javascript:OpenPopup('"+ Eval(e.row.DataItem,"yourDbField1")+ "','"+ Eval(e.row.DataItem,"yourDbField2")+ "');return false;");
              }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an application in which there will be a search screen where
In the app I am currently developing, I have to implement a screen which
I am facing some problems while developing a screen involving a tabWidget. I have
I have been developing an app which should support multiple screen sizes. It works
Developing a project of mine I realize I have a need for some level
I am developing an application, in which one of the screen i am using
Hey guys, I'm having some trouble with a screen from the app I'm developing.
I am developing a lock screen in my application and i have the same
I am developing a portal site with asp.net 3.5/4.0. The screen likes below: I
I am developing a java application. I have scenario to take screen shot of

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.