Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Control embedded in ModalPopup and pass it a parameter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jeffbellus@gmail.com - 21 Mar 2008 20:10 GMT
Hi,

I've been struggling with this....I have a web page (VS 2008) that
contains a modal popup.  That modal popup has a panel in it that is a
user control.  How can I pass that user control a parameter?  I will
be using this control on a few different pages.

It goes like this:  A gridview displays results.  User clicks gridview
item.  Modalpopup displays with details of the item clicked.  However,
I can't pass  anything into that control.

I am not using any object datasources.  All items are populated
manually.  Anyone ever encounter this?  Thanks.
bruce barker - 22 Mar 2008 03:28 GMT
you control just has to expose some properties. not sure how you planned
on coding it.

there is no postback when you use the modal popup, it just displays its
contents (which where rendered hidden). did you render all the editing
controls for each item in the gridview? are you using an update panel,
for which you must trigge a postback.

-- bruce (sqlwork.com)

> Hi,
>
[quoted text clipped - 9 lines]
> I am not using any object datasources.  All items are populated
> manually.  Anyone ever encounter this?  Thanks.
jeffbellus@gmail.com - 24 Mar 2008 02:57 GMT
> you control just has to expose some properties. not sure how you planned
> on coding it.
[quoted text clipped - 20 lines]
> > I am not using any object datasources.  All items are populated
> > manually.  Anyone ever encounter this?  Thanks.

Thanks Bruce.  I am using an update panel (update panel is hosting the
gridview, then a seperate update panel outside of that one hosting the
popup) but have not tried the trigger aspect.  I am not rendering any
editing on the grid itself (I'm new to this).  Does the trigger just
need to postback?  And the trigger would be off of the linkbutton
within the grid, true?  Where would the parameters come into play?  I
will keep playing with it and try what you suggested, but any input
would be greatly appreciated....Thanks again!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.