Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2006, 12:00 AM
Authorized User
 
Join Date: Mar 2006
Location: pune, Maharashtra, India.
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default don't want the page refresh on button click

hi,

I am using datagrid to display the information and one template column in datagrid to display a child window. The template column contains image button. when user clicks the image button information related to that record gets displayed in popup window.

The only problem is when user click on the image button to view the child window the parent window get refreshed.

I don't want to refresh the parent window. Any way of doing that????

I don't want to use javascript on OnClick event because I need to pass parameter to the child window which I am doing by means of click event of image button.


 
Old July 24th, 2006, 12:21 AM
Authorized User
 
Join Date: Dec 2005
Location: bangalore, karnataka, India.
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

May you can use ajax.. This can solve your problem.. Ajax dosent refreshes page.

Vamsi


vamsi
 
Old July 24th, 2006, 01:16 AM
Authorized User
 
Join Date: Mar 2006
Location: pune, Maharashtra, India.
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

thanks for reply. will you please elaborate your answer as I haven't used this term before.

 
Old July 24th, 2006, 04:49 AM
Authorized User
 
Join Date: Dec 2005
Location: bangalore, karnataka, India.
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

hai swati,
   If u r not familiar with the Ajax concept lets leave that for some time.. instead of image button cant u use navigate url and bind the parameters in the itembound event of the data grid. if u dont know how to bound to the control let me know.

Vamsi G.

vamsi
 
Old July 31st, 2006, 04:37 AM
Authorized User
 
Join Date: Oct 2004
Location: Bangalore, , India.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

your requirement seems to be impossible.You can use onclick event of the button and open one child window or can submit data back to the code behind. If you submit data back to the code behind your page will get refreshed. If you dont want want to refresh page then you should use AJAX technology its simple to use. Search in google for more details about ajax.



--------------------------------------------------
Software professional from Bangalore,INDIA
ratheesh1982@gmail.com




Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing page refresh from asp.net button hericles ASP.NET 1.0 and 1.1 Professional 2 October 8th, 2008 04:29 PM
click the button above and redirect another page crmpicco Perl 2 November 16th, 2006 08:46 AM
Refresh Page when User Clicks on Back Button testsubject Visual Studio 2005 1 June 26th, 2006 03:46 AM
How to Click a button on a web page in VB code AJD Beginning VB 6 0 June 2nd, 2006 12:08 PM
refresh the page when using back button hastikeyvan Classic ASP Professional 1 May 12th, 2006 11:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.