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
>
general_asp.net.web_parts_and_personalization
Tags:
Item Type:
NewsGroup
Date Entered:
3/23/2005 8:09:28 PM
Date Modified:
Subscribers:
0
Subscribe Alert
Rate It:
(NR, 0)
XPoints:
N/A
Replies:
1
Views:
31
Favorited:
0
Favorite
Can Reply:
No
Members Can Edit:
No
Online:
Yes
2 Items, 1 Pages
Sort By
Date Dsc
Date Asc
Votes Dsc
Votes Asc
1
|<
<<
Go
>>
>|
WhatMeWorry
Asp.Net User
Possible to use .ascx WebParts versus Custom Control/Web Part Libraries
3/23/2005 8:09:28 PM
0/0
Right now I'm trying to find away to migrate a number of configurable User Controls (.ascx/.ascx.cs) to having base clases inheriting from WebPart.
Now, I am aware that it is possible to use User Controls directly in a Web Zone and that they become GenericWebParts. However, I wanted to see if it was possible to use the PropertyGridEditPart to edit and configure the custom properties associated with the User Controls. I've been able to get the PropertyGridEditPart to work as has been documented when I made an example Web Control Library and inherited the custom control from WebPart and added some test custom properties (with the WebBrowsable, and Personalizable attributes). Is this possible to get working with a User Control and Generic Web Part? Just implement IWebPart?
What confuses me, with my limited understanding of the .Net framework, is if it is possible to use the .ascx UserControls and still inherit from WebPart?
Doesn't appear so. Looking at the ancestor classes of the WebPart, there is WebControl and Control. But I guess to use the .ascx, it would be necessary to have the UserControl as a base class?
I'd prefer not to override the Render method because I have many User Controls with hundreds of lines of html in the .ascx.
Sorry if this isn't clear, I'm just trying to find what limitations I have to work with or around to create the simplest transition available.
Thanks.
(I don't know I just think it would be convenient to have a .aswx or some other html template file associated with webparts. )
Fredrik N
Asp.Net User
Re: Possible to use .ascx WebParts versus Custom Control/Web Part Libraries
3/24/2005 5:36:11 AM
0/0
User Controls can use the WebBrowsable and Personalizable attributes.
User Control can't inherit the WebPart class, use the IWebPart interface instead.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT
Cornerstone
My Blog, ASP.Net 2.0 etc
2 Items, 1 Pages
Sort By
Date Dsc
Date Asc
Votes Dsc
Votes Asc
1
|<
<<
Go
>>
>|
Free Download:
Web:
Possible to use .ascx WebParts versus Custom Control/Web Part ...
Possible to use .ascx WebParts versus Custom Control/Web Part Libraries. Last post 03-24-2005 1:36 AM by Fredrik N. 1 replies. Sort Posts: ...
Amazon.com: Professional Web Parts and Custom Controls with ASP ...
Custom controls, user controls, and Web Parts can make you more productive in .... A month or so ago VS 2005 arrived. One of the new things is Web Parts. ...
Writing Custom Webparts for Sharepoint 2007 | Sahil Malik - blah ...
Do I have to use the SmartPart whenever I want to put a user control into a web part? Is it possible to take the xml from an .ascx ...
How to: Build and Run the Data-bound Web Parts Control Example
Obtain the source code for the custom data-bound WebPart control from ... Configuring an application to use Web Parts requires only that you have an ASP. ...
Developing Web Parts for SharePoint Portal Server 2003 in .NET
Unfortunately, you can't create Web Parts visually; instead, you must create ASP .NET custom controls—which don't support VS . ...
Pranab Paul's Blog - SharePoint 2007 (MOSS/WSS 3.0) Development ...
Jul 2, 2008 ... Without it developing custom SharePoint applications in VS 2008 was ... We will use Web User Controls for both the Web Parts and also the ...
Enterprise .NET Community: WebParts - From Sharepoint to ASP.NET 2.0
Mar 8, 2005 ... ASP.NET pages support two types of WebParts—classic user controls (ASCX files) and ad hoc WebPart custom controls. To employ user controls ...
JOPX on SharePoint 2007 (MOSS and WSS V3 ), Office and SOA ...
Net 2.0 you can use a web user control (ascx) as web part when it .... Were you able to use custom Code Access Policy in the WSP file using this method? ...
[ajaxpro] AJAX.Net, SharePoint 2007 (MOSS), User Controls, and Web ...
Oct 20, 2006 ... My web part is a class in a VS class library project. ... from a unit testing page and hard coded them into my user control's ASCX file. ...
Publishing sites: field controls or Web Parts... that is the question
You can also write forms in you web parts or use SharePoints default edit forms ... online or print, that can help me learn to create custom field controls? ...
Search This Site:
Invite
History
Resources
SiteMap
getting started with iis question
install problems
.net remoting security permission
issues with users online & survey mods
grabbing classic asp code - objwebclient.downloaddata
store data from aspnet_profile to custom database table...
active directory and dnn authentication
remember me check box 2.0 membership not working
external stylesheet on a content page
hosting list
webmatrix
how to get rounded corners for the webpart?
opening .ascx files in the same module
what's different between vwd 2005 express edition beta 2 and .net framework 2.0????
best way to set selecteditem for menu using navigateurl?
xml/xsl module in 2.0.4 problem...
default.aspx
new website
programatically editing web.sitemap
collection property's items in inner tags for datagrid
parent and child portals
should the admin's top control panel be in a separate frame?
database query using a dropdown list
first post
screen scrapping my own aspx file - help
windows authentication: storing additional user information?
re-using functions
mind-bending problem with class library function
role based login.
iis
All Times Are GMT