internetman
New Member
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.\[code\]<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>\[/code\]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.\[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;}} \[/code\]if i get solution for any of them it would be of great help.