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 > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 10/11/2006 9:02:52 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
sorzy
Asp.Net User
WAP and dynamically loaded user controls10/11/2006 9:02:52 PM

0/0

Hi all,

I have a user control ascx being dynamically loaded in a superclass of all my aspx files which works fine. Superclass is in App_Code and user controls, superclass and all aspx's are in same namespace. However passing values to the user control fails if the value is an object from a class in same namespace and not a primitive type.

This works:
  ucTop ctlTop = (ucTop)LoadControl("ucTop.ascx");
  ctlTop.ID = "ucTop";
  ctlTop.TestMethod("a string");

But this fails with a CS1502: The best overloaded method match for 'ANameSpace.ucTop.TestMethod2(ANameSpace.MyDomainObject)' has some invalid arguments
  ucTop ctlTop = (ucTop)LoadControl("ucTop.ascx");
  ctlTop.ID = "ucTop";
  ctlTop.TestMethod2(new MyDomainObject());

I am guessing it has something to do with different code being compiled at different stages (App_Code vs. aspx/ascx) but the question is basically if there is any workaround for this?

Thanks,
Frank
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
The New Navigators: From Professionals to Patients Authors: Robert Baud, Marius Fieschi, Pierre Le Beux, Patrick Ruch, Pages: 903, Published: 2003
The Software Catalog: Microcomputers Authors: unknown, Pages: 2916, Published: 1987
Ubiquitous Services and Applications: Exploiting the Potential ; EURESCOM Summit 2005 : Conference Proceedings, 27-29 April 2005, Marriott Hotel, Heidelberg, Germany Authors: Claudio Carrelli, David Kennedy, European Institute for Research and Strategic Studies in Telecommunications, Pages: 350, Published: 2005
Wireless Internet Handbook: Technologies, Standards, and Applications Authors: Borivoje Furht, Mohammad Ilyas, Pages: 599, Published: 2003
Wireless and Mobile Communications: APOC 2001, Asia-Pacific Optical and Wireless Communications, 12-15 November 2001, Beijing, China Authors: Hequan Wu, Jari Vaario, Credit Suisse First Boston, Credit Suisse First Boston Technology Group, Australian Optical Society, Australian Optical Society., Society of photo-optical instrumentation engineers, Telecom World (China), Tong xun shi jie (China), Credit Suisse First Boston., Oputoronikususha, Optronics (Japan), Society of Photo-optical Instrumentation Engineers, Pages: 550, Published: 2001
Interactive Applications of Mobile Computing: Proceedings of the Workshop IMC '98 in Rostock, Germany, November 24-25, 1998 Authors: Thomas Kirste, Bodo Urban, Pages: 144, Published: 1999
Emerging Technologies in Wireless LANs: Theory, Design, and Deployment Authors: Benny Bing, Pages: 853, Published: 2007
Practical WAP: Developing Applications for the Wireless Web Authors: Chris Bennett, Pages: 424, Published: 2001

Web:
Fixing DotNetNuke localization for child and dynamically loaded ... Sep 10, 2008 ... Fixing DotNetNuke localization for child and dynamically loaded UserControls. The DotNetNuke localization engine depends heavily on the ...
CodeProject: ViewState Management for dynamically loaded ... Apr 17, 2007 ... NET Framework retains the state of every user control (even of those dynamically loaded) and associate them with their programmatic ID's; ...
Tehnical Publication Update PAWriter.vb to support package WAP modules using DNN built-in "Create Module Package" option ... Dynamic Load User Controls in DotNetNuke ...
Reusing Web User Controls accross applications I am attempting to build a User control Library using your option #3. The controls will be dynamically loaded in my website through a class file in the ...
How To: Dynamically Load A Page For Processing - Palermo4 re: How To: Dynamically Load A Page For Processing. Saturday, July 07, 2007 10: 56 AM by Dee. What's the advantage of this over a user control ? ...
CodeProject: Dynamically Loading User Control on a Webform using ... All that to say; If anyone needs help figuring out how to dynamically load a user control I'd be happy to help out. Smile ...
Easily Raise Events From ASP.NET ASCX User Controls - Brendan ... I am attempting to use this technique with dynamically loaded user control. I am not finding that the event is wired up correctly. Any thoughts? ...
Some things you lose when using Web Application Projects - Rick ... So when I look at some of the things I lose by going to WAP, here's what I come .... So Schemes that try to dynamically load user controls out of 'template' ...
Web Sites/Portals/Intranets/Content Managment/WAP/Mobile ... Mobile device support for WAP/WML and Pocket Browser devices. ... Pages are constructed from dynamically-loaded .NET user controls. ...
Steven Smith : CodeFile or CodeBehind So for example if the user control was foo.ascx then in foo.ascx.cs I ... If you dynamically load you pretty much can't reference the ASCX codebehind class. ...

Videos:
XML11: An Abstract Windowing Protocol Google TechTalks June 1, 2006 Arno Puder Arno Puder received his masters and Ph.D. in computer science and is currently working as an Assistant Prof...




Search This Site:










dnn perfomance issues! over 300 tabs in portal...

warning received...

cyberkat rich content rotator

books for vsts tester?

full name for a user

free with full source code modules with licences

migration issues in ui portion of .net 1.1 from vs 2003 to vs 2005

debug javascript

updating a masterpage property

new skin: high tech grey (dotnetnuke xxl 10 only)

new to asp

skin information webservice

disabled design-time masterpage.

why do controls which require postback get stored in viewstate?

cookies on localhost..

multiple portals on subdomains

help: ie explorer controls

database diagrams gone?

html tag outlining feature

default roles in visual web developer 2k5,

automatic login and localisation. please advise you're a great bunch and i appreciate your help

start web server without start vs 2005

secure login question

listing of availiable modules, module

update linq when database schema udpated

determine what roles are required for a webpage

a helpful module (free)

unable to connect to visual studio's local host web server

master pages with themes problem (how to i convert c# code to vb)

createuserwizard customisation

 
All Times Are GMT