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 > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 11/8/2003 1:31:44 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 14 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
robinmthomas
Asp.Net User
Can't use code behinds when creating user controls11/8/2003 1:31:44 AM

0/0

I have to aplogize for posting this twice, but I am in dire need to get past this.
This question is in reference to the Portal Starter Kit, which I believe is a derivative of IBS, so hopefully you can help.

I have the following page control which I declare using this statement
(which I got from the Portal documentation)
<%@ Control language="c#" Inherits="ASPNET.StarterKit.Portal.PortalModuleControl" CodeBehind="TestConfigurations.ascx.cs" AutoEventWireup="false" %>

Then the code in page_load in the code-behind never gets called.
I think my inherits has to reference the class in my code-behind (or so says another posting)

If I change the inherits statement then my code will compile but when I try to access the page it goes belly up with this error:
Parser Error Message: Could not load type 'ASPNET.StarterKit.Portal.TestConfigurations'.

This also fails with just my class:
Inherits="TestConfigurations"

So, what does my inherits statement need to look like?
nemi
Asp.Net User
Re: Can't use code behinds when creating user controls11/8/2003 8:49:17 PM

0/0


Robin:

Try:
<%@ Control language="c#" Inherits="ASPNET.StarterKit.Portal.TestConfigurations" CodeBehind="TestConfigurations.ascx.cs" AutoEventWireup="false" %>


In your code behind:
public class TestConfigurations : PortalModuleControl {

.... Your Inits and Code
}

I'm not that familiar with C# so syntax may be in question.

Nemi



You're fine! How am I?
robinmthomas
Asp.Net User
Re: Can't use code behinds when creating user controls11/10/2003 8:26:00 PM

0/0

Thank you so much! This worked.
Someone else suggested the following in my code-behind:
public class TestConfiguration : ASPNET.Starterkit.Portal.PortalModuleControl {}

Which I think is the basically the same thing you suggested.
Either way it works! Thanks again!
nemi
Asp.Net User
Re: Can't use code behinds when creating user controls11/10/2003 8:56:07 PM

0/0


You're very welcome!

Nemi
You're fine! How am I?
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Beginning ASP.NET 2.0 E-commerce in C# 2005: From Novice to Professional Authors: Cristian Darie, Karli Watson, Pages: 681, Published: 2005
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. LeBlond, Pages: 989, Published: 2005

Web:
code behind can't access user control - .NET ASP code behind can't access user control. ... having a 100% working aspx page I wanted to create a user control from a ...
Silverlight Tutorial Part 6: Using User Controls to Implement ... Alternatively they can create re-usable User Controls - which make it easy to use a ... event handler method in the code-behind file of the user control. ...
Using ASP.NET Web User Control with Code Behind in SharePoint Create Web User Control (.ascx). The Web User Control will look like ... you can use textbox we declared in code behind like this --> ...
A User Control as Code Behind - 123aspx.com ASP.NET Resource Directory User Controls can use code behind in a similar manner to Web Forms. ... Intriging example but I can't see the tie between the web form's reference to the ...
Re: Accessing UserControls in ASPX code-behind pages code behind you create declare the variable protected ... User Control, you still MUST use the varioation of the @ Register directive ...
Cutting Edge: Reusability in ASP .NET: Code-behind Classes and ... They look like user-defined controls, but their composite nature—a mix of HTML and code—make them .... you can't just use their IDs in code-behind classes. ...
Tutorials : The Official Microsoft Silverlight Site Define it in .xaml and use it in the code-behind (Click to view full-size image) .... That's it for creating the User Control, but it isn't of much value if ...
Code Behind - ASP.NET Controls Explained: Part 1/2 ... Apr 4, 2002 ... Now that we've covered user controls, HTML controls, and server controls, it's time to look at the code behind method, which you can use to ...
User Controls a .vb code-behind file. User controls can contain just about anything a web page ..... You can’t create a user control object directly, like you can with ...
Dynamically creating ASP.NET controls from the code behind files ... The code works only for the first time. We can't create the 4 textboxes repeatedly. ... Problem with implementing tab control using AJAX in user control ...

Videos:
New PlayTV video for PlayStation 3 & PSP New PlayTV video for PlayStation 3 Sony announced today that PlayTV will be released September 19th for £69.99 UK Turn Subtitles on / off Turn Audi...
Online Coupon Code http://www.EscapeTheCycle.com Online Coupon Code Online retailers often refer to Internet Coupons as "coupon codes," "promotional codes," "promotio...
Coupon http://www.EscapeTheCycle.com In marketing a coupon is a ticket or document that can be exchanged for a financial discount or rebate when purchasing...
Core Patterns for Web Permissions Google TechTalks July 19, 2006 Tyler Close Visiting Scientist Hewlett-Packard Laboratories Mr. Close is a researcher and developer, working in the...
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...
Michael Schwern - Perl is unDead yapcasia2008
Achievable Futures Google TechTalks April 26, 2006 James Lyndsay James Lyndsay is actively involved in the international software testing community. He received 'Best ...
Dauger Research profiled on Keeping America Strong Dauger Research is the proud recipient of the "Keeping America Strong" award, part of a special television broadcast hosted by William Shatner. This ...
A Googly MySQL Cluster Talk Google TechTalks April 28, 2006 Stewart Smith Stewart Smith works for MySQL AB as a software engineer working on MySQL Cluster. He is an active memb...
An Introduction to SQLite Google TechTalks May 31, 2006 Richard Hipp ABSTRACT SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQ...




Search This Site:










web application

aspnet and custom tables

photos stored in db vs. file system

web app projects on a remote iis

how to grab userid of currently logged in user to place in textbox

anyone noting issue with sp dnn_findbanners

user account module question

image paths or skin

localizing text from attributes.

how can i read the exsting users from active director

dnn2: where'd the files go?

convert image buttons to normal buttons on login screen

dotnetnuke only on localhost, how can i connect from another pc

webparts x ajax 1.0

stylesheet won't load for the signon form

how to add version number to a setup.exe file?

member directory and listserver modules

sitemapnode url with two keys

asp.net 1.1 - asp.net 2.0 relative links in the html of my usercontrols

authorization and controlling the users

installing a dotnetnuke module in the portal starter kit

text box on parent master page

help - smtp server in host settings

my photos aren't showing up on my site ?

dnnjungle helloworld module tutorial

vs2008 standard edition and windows mobile

navigation questions… solpartmenu or something else?

help with sqltableprofileprovider

iframe issue with local.live.com

web.config organization

 
All Times Are GMT