PC Review


Reply
Thread Tools Rate Thread

Bind Gridview from inside iFrame

 
 
Dave
Guest
Posts: n/a
 
      8th Oct 2009
I currently have a page with an iFrame. Once of the SRC pages has a
FormView that needs to bind a Gridview on the Parent Page when
ItemInserting has fired. How can I do this in C#? If I "HAVE TO" use
VBScript, please be explicit. That's virgin territory for me.

Thanks! (d)(d)
 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      9th Oct 2009
Dave <(E-Mail Removed)> wrote in news:d29f36b7-2810-4ad7-9f11-
(E-Mail Removed):

> I currently have a page with an iFrame. Once of the SRC pages has a
> FormView that needs to bind a Gridview on the Parent Page when
> ItemInserting has fired. How can I do this in C#? If I "HAVE TO" use
> VBScript, please be explicit. That's virgin territory for me.
>


Realistically, you will have to cause the iFrame, when submitted, to
refresh with a bit of script that causes the parent page to refresh. I
would choose JavaScript myself, but it can be done in VBScript (limiting
the app to Internet Explorer, of course).

You can dink with the resulting grid and alter it, but that is a royal
pain in the rear and would require days, if not weeks, of work to debug
it. If the user can edit every row prior to finishing with the iFrame,
the chance of error increases greatly. In addition, you will end up
having to keep a client side map of the rows in the parent Grid view (in
the child (iFramed)) to get this to have any chance of working
accurately.

If the second paragraph is a foreign language to you, consider the first
option. You can have the VBScript written out to the iFrame on submit of
the FormView.

Personally, I would see if you could re-architect the solution so the
FormView was not iFramed in a page that contains the GridView and get
rid of hte cross-page dependency. It would make your life much easier.
There are plenty of GridView/FormView examples on the web that are much
simpler.

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RowCommand: accessing ObjectDataSource from inside gridview inside a repeater? HockeyFan Microsoft ASP .NET 1 4th Jul 2007 06:49 AM
Add Row to datatable bound to gridview inside a gridview Elmo Watson Microsoft ASP .NET 0 17th Aug 2006 03:26 PM
How to access and bind a label inside a GridView Template Field? Miguel Dias Moura Microsoft ASP .NET 1 8th Mar 2006 12:11 PM
Resizing FRAMESET inside of IFRAME inside of TABLE - Bug? =?Utf-8?B?QW5kcmUgVmllbnM=?= Windows XP Internet Explorer 0 13th Oct 2004 02:43 PM
ASPX inside ASP iframe bc Microsoft ASP .NET 1 26th Feb 2004 04:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 AM.