Wrox Programmer Forums
| 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 5th, 2006, 09:08 PM
Authorized User
 
Join Date: Jun 2006
Location: Chelmsford, MA, USA.
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp.net frames and gridview

I have gridview inside the frame. ( total 2 columns..one column with value and other with checkbox) and save button is outside the frame(ie. save button is in main window).

when i click on save button, how can i get gridview checked values in frame as i want to import these to database.

any help greatly appreciated.

Thanks

__________________
Rams
 
Old July 5th, 2006, 09:39 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmmm. What you will probably have to end up doing is when you click submit write a JavaScript back to the client that raises the postback event in the datagrid frame and then write another javascript back to the client that will refresh the submit frame and pass the values from the grid view to that frame via query string.

On a personal note, I hate frames, for this very reason. (Not to mention they look horrible)

"The one language all programmers understand is profanity."
 
Old August 2nd, 2006, 10:04 AM
Authorized User
 
Join Date: Jun 2006
Location: Chelmsford, MA, USA.
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Finally i ended up with following solution.

Creating datagrid in frames is hectic. Instead create datagrid in div tag and set height and width of <div> and it appears like frame and you don't get scrollbars in you webpage.

Thanks
Ram

Rams




Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net 2.0 Gridview control vertical scroll bar kulkarnimonica ASP.NET 2.0 Professional 2 March 8th, 2010 08:14 AM
Help related to GridView using C# in asp.net 2.0 suneet.pant ASP.NET 2.0 Basics 0 April 20th, 2008 01:26 PM
storing a gridview to session in asp.net 2.0 thas123 ASP.NET 2.0 Basics 0 December 20th, 2006 06:12 AM
Frames in ASP.NET knagendrak ASP.NET 1.x and 2.0 Application Design 7 September 24th, 2004 08:43 AM
I need help with Frames and Forms in ASP.NET leex Classic ASP Basics 1 August 19th, 2004 11:44 PM





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