CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 4/18/2004 9:45:01 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
thenetrealtor
Asp.Net User
Useer Control within User COntrol4/18/2004 9:45:01 PM

0/0

I have a simple, or thought it was, Address Control which contains a few drop down lists,
some text boxes, and a bunch of validators.

This control functions properly when added to a page.

Now I added this control to another UC and added that UC to a page, and when I change a ddl, no postback occurs, but when I cause the page to refresh, the event from the ddl is received and processed.

Anyone see something like this before
FancyKetsup
Asp.Net User
Re: Useer Control within User COntrol4/19/2004 1:13:52 AM

0/0

I just duplicated your scenario sort of. I just used dropdowns though. I put one drop in an ascx and then created another ascx and put a dropdown in it and load the 1st ascx into it then loaded the second ascx into an aspx and it worked just fine. Be sure you have auto postbacks set to true and that the validators are not preventing postbacks in someway. Good luck!
Answering a question increases your knowledge asking a question shows your Intelligence!
thenetrealtor
Asp.Net User
Re: Useer Control within User COntrol4/19/2004 7:14:20 AM

0/0

Thanks for the response, but postback is set on all required components.

This may have something to do with my structure. I have a PlaceHolder in a page
template and dynamically load my UC.

This UC contains the second UC WHen a postback should be triggered in the contained
UC, it seems to not cause a postback on the containing page.
thenetrealtor
Asp.Net User
Re: User Control within User Control4/19/2004 12:34:40 PM

0/0

Problem seems to be in the javascript generated for the _doPostBack call, which
is failing for my basepage/template set-up.

I have a BasePage which loads a Template (User Control). This has a form,
the header, content - placeholder, and footer and required html.

When a page is created inheriting from the BasePage, it simply adds the required UC
to the placeholder.

Works nice and simple except it now appears that the javascript generator for the
_doPostBack routine can't deal with the fact the base Form is inherited and thus the
_doPostBack fails, back to the drawing board.
master4eva
Asp.Net User
Re: Useer Control within User COntrol4/20/2004 1:13:59 PM

0/0

It is not to do with the JavaScript.

When you create/insert controls dynamically, you must do so every time that there is a post back. The reason: the page does not persist over HTTP requests. So if I have to request your page, whatever controls that you created dynamically will be lost because HTTP is stateless (it does not remember me by keeping an active connection). When I post back to the server, you will know that I am posting back but you will not know about the controls that you added into the placeholder in the previous request. For postback to be completed successfully, the control that the post back is destined for must exist for the event to be raised... and that is why you recreate the controls throughout every postback.

The other thing that could be wrong is that you are caching the user controls that do not vary the cache version.
-- Justin Lovell
thenetrealtor
Asp.Net User
Re: Useer Control within User COntrol4/20/2004 3:10:27 PM

0/0

I do reload the UC on postback and am not caching. What is weird is that the buttons all work
and are able to post the form but the _doPostBack calls fail to cause a page post on
drop down lists, (the buttons do not call doPostBack)

When I force the page post, button, the events occur
and are processed.

It may not be the javascript but the page is not posted back, hence no UC reload and no
ViewState application. The proper Page is detailed in the form action so thats why I assume
the javascript.

Weird stuff, but have dumped the template structure and am using a single page and
dynamic UC loading and all works fine now.

6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
The Information Universe Authors: Eli Cohen, Pages: 0, Published: -1
Virtual Environments and Scientific Visualization '96: Proceedings of the Eurographics Workshops in Monte Carlo, Monaco, February 19-20, 1996, and in Prague, Czech Republic, April 23-25, 1996 Authors: Martin Göbel, J. David, P. Slavik, J. Van Wijk, Pages: 324, Published: 1996
Financial Services Authors: M Y Khan, Pages: 0, Published: 2004
Upgrading and Repairing Networks Authors: Terry William Ogletree, Scott Mueller, Pages: 1248, Published: 2003

Web:
Useer accounts - Microsoft Windows Vista Community Forums - Vistaheads Useer accounts. I have a problem that is keep me up at night. ... Control Panel and User Accounts to manage my accounts I have ONLY THREE ...
Useer accounts Post subject: Useer accounts Add to elertz ... Control Panel and User Accounts to manage my accounts I have ONLY THREE ...
HELP!!!new useer - iPod - iPhone - iTunes Forums at iLounge HELP!!!new useer Windows iPod Discussion & Problems. ... User Control Panel, Private Messages, Subscriptions, Who's Online, Search Forums ...
End Useer Access Fee : Sherline’s Opinionfest ... but otherwise the agency has no control over what charges appear on a bill.” ... >End User Access Fee: A charge to offset the cost of network access and ...
AGH!!! Problem with EAW filefornt !!!!!!!!!!!! - FileFront Gaming ... User Name, Remember Me? Password .... What exactly are you referring to by "User Control?" ... icon_question Useer Control ...
几句翻译,不要翻译软件的,谢谢_百度知道 (3) 运输:运出和进入实验室的设备和材料要有登记以及相应USEER的签字,以确保资产 ... (1)Details of the storage record: good management and control laboratory ...
net user Resources | TechRepublic Useer Groups: WIndows XP home - Ctl Panel - User Accounts I see two users .... Serv-U .NET Admin gives you complete control of Serv-U from within your C#, ...
INmobil - Main page With e-mail control it is possible to determine exactly who can send mail to a INmobil useer, how big it can be, where it can come from ond where itis to go ...
XDCAM Pro User Group-News It also supports powerful authority management, host access control, .... Over at the DVI and DVX User Forums there's been some lengthy discussion on the ...
Coded cooperation under slow fading, fast fading, and power ... possible to employ this method within the context of exist-. ing wireless systems. ..... Furthermore, under conventional power control, User ...




Search This Site:










menu control - display first-level child nodes with the root node

querying a date

themes and third-party controls

make a project the root web?

skinning and flash

error:....database 'dotnetnuke' cannot be opened because it is version 611. this server supports version 607 and earlier.

getting ref cursors from oracle procedure in data access application blocks

imageclickeventhandler not triggering after .net 2 install

how to convert integer variable to character

free voting module for ibs?

data update c# .net 2.0

custom work needed

free scroller module?

source code updates

data refresh every minute

objects

asp.net configuration

search function using postcode (zipcode)

ho to encrypt a string on .aspx (with no code behind)

object reference not set to an instance of an object. (dnn 4.0.1)

asp.net interactive user and dcom

object vs object

loginview and outputcache

error message with image gallery

adding users to db without using dnn. we had it working in 2 but can't get it working in 3.

session question

listbox +array+object ???

database deployment from sql express 2005 to regular 2005

asp.net 2.0 compiling problem

debug mode parser error

 
All Times Are GMT