Solved

datagrid button column

Posted on 2004-09-21
4
238 Views
Last Modified: 2010-04-23
Hi

   I have a datagrid with button column in that. when i click the button new window should pop up and display the details of

the corresponding row. I know that in the Command property of the button column I can write something as

 Private Sub dgDisplayExpenses_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) _
    Handles dgDisplayExpenses.ItemCommand

             Response.Redirect("webform1.aspx")

    End Sub
is there any way that i can reduce the size of the webform1.aspx so that it looks like a pop up window not the full webform
and display the details.

I know how to do this with hyperlink column. or is there a way i put hyperlink column instead of the button column and display a button instead of hyperlink.


any idea

tx
sandeep
0
Comment
Question by:sandeep437
4 Comments
 
LVL 10

Accepted Solution

by:
123654789987 earned 250 total points
ID: 12119712
U can do it this way

by opening the child window using window.Open();
Eg:
HTML>
<HEAD>
  <title>WebForm1</title>
  <script language="javascript">
    function pop_window()
    {
      var confirmWin = null;
      confirmWin = window.open('PopUpWindow.aspx','anycontent',
                               'width=455,height=435,status');
    }
  </script>
</HEAD>
<body>
  <form name="Form1" method="post" action="WebForm1.aspx"
        id="Form1">
    <input type="button" onClick="pop_window()" value="Open Window">
  </form>
</body>
</HTML>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Encryption Decryption in Oracle 12 107
Populating an array of locale_time_info 8 37
Visual Studio .Net 2012 and Crystal Reports 9 48
Close tabpage of custom control 9 23
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now