Solved

datagrid button column

Posted on 2004-09-21
4
237 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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