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: 10/12/2005 6:15:14 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 34 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
snaayk
Asp.Net User
Control in dll10/12/2005 6:15:14 PM

0/0

Reference: http://weblogs.asp.net/scottgu/archive/2005/08/28/423888.aspx

The above article by Scott illustartes how to create user controls and save them as a dll. This works great. But, there are some issues. First, the namespace defaults to ASP. Secondly, the tagname default to the file name with "_ascx" as a suffix.

I created a simple ascx file that has a drop down and some code-behind logic. I then pre-compile it into a dll. (Hopefully, the tool he mentions where you can name your own dll and have one for teh entire project will be released soon). In a separate web site project, I have an aspx page where I want to use the user control. I register it like so:

<%@ Register TagPrefix="Cam" Namespace="ASP" Assembly="App_Web_hyshd3rr" %>

<Cam:defaultcommunityselection_ascx ID="camCommunitySelection" runat="server" />


You can skip the register part if you register in the web.config file. You can see that the tagname leaves a lot to be desired. especially if this is going to be released to the public.

Is there a way to change the namespace for usercontrols and is there a way to change what the tagname will be when the project is compiled?

snaayk
Asp.Net User
Re: Control in dll10/14/2005 1:12:11 PM

0/0

Has anybody used this feature? I can't seem to find options to change default naming conventions...

bitmask
Asp.Net User
Re: Control in dll10/15/2005 1:41:41 PM

0/0

I did something similar that wasn't quite as messy with the directory setup and uses ILMerge to put together and rename the assembly being built: http://odetocode.com/Blogs/scott/archive/2005/10/06/2326.aspx. The namespace will still be ASP, and the control name will change if you are using a CodeFile instead of inline code.

SimonCal
Asp.Net User
Re: Control in dll10/18/2005 4:41:24 PM

0/0

Yes we are wqorking on the merge tool and it's affiliated Web Deployment Projects too and you'll be able to use this utility to manage the naming and content that drives the assembly created from the web application. That said, these do not change any default namespace used for the pages or user controls themselves.

You can simply use the following to create a namespace in your user controls


<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserAddress.ascx.cs" ClassName="SharedControls.UserAddressControl" Inherits="SharedControls.UserAddress" %>

namespace SharedControls {
  public partial class UserAddress : System.Web.UI.UserControl {
     ..
  }
}

Hope this helps.


Simon
This posting is provided "AS IS" with no warranties, and confers no rights.
snaayk
Asp.Net User
Re: Control in dll10/19/2005 3:04:01 PM

0/0

Excellent. Will the name of the control in the assembly also be configurable? so that the page name and page extension is not the tagname used?
SimonCal
Asp.Net User
Re: Control in dll10/19/2005 4:11:56 PM

0/0

merge is a post compilation step. It only allows you to rename the output assembly.
Simon
This posting is provided "AS IS" with no warranties, and confers no rights.
snaayk
Asp.Net User
Re: Control in dll10/19/2005 8:42:07 PM

0/0

That did it. With the exception of the assembly name, this work great.

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


Free Download:

Books:
Programming C# 3.0 Authors: Jesse Liberty, Donald Xie, Pages: 607, Published: 2007
Programming C#: Building .NET Applications with C# Authors: Jesse Liberty, Pages: 644, Published: 2005
Artificial War: Multiagent-based Simulation of Combat Authors: Andrew Ilachinski, Pages: 747, Published: 2004
Visual Basic 2005 with .NET 3.0 Programmer's Reference: Programmer's Reference Authors: Rod Stephens, Pages: 1200, Published: 2007
Developer's Guide to Web Application Security: A Guide for Developers and Penetration Testers Authors: Michael Cross, Pages: 489, Published: 2007
Programming .NET Components: Design and Build .NET Applications Using Component-Oriented Programming Authors: Juval Lowy, Pages: 624, Published: 2005
Mastering Visual C# .NET Authors: Jason Price, Mike Gunderloy, Pages: 978, Published: 2002

Web:
Microsoft's Common Control DLL and MSIE4.0 One of these files is Comctl32.dll, which is an important file, apparently referred to as the common control dll. Mr. Glaeske says this is one of ...
Barcode ActiveX Control, DLL & OCX by IDAutomation® Barcode ActiveX Control, DLL & OCX; Easy to use with Microsoft® Access, Excel, Infopath, Internet Explorer, Visual Basic and C++. Free demo download.
Barcode .NET Windows Forms Control & DLL Create barcodes in .NET with the IDAutomation Barcode Windows Forms Control & DLL. Includes examples for Visual Studio .NET, VB.NET and C#.NET.
Free .NET Barcode Forms Control DLL free download. The Free .NET ... Apr 21, 2006 ... NET Forms Control and DLL is really freeware - it is not a demo. It creates bar- codes in Visual Studio and the .NET Framework.
Autodesk DWF Viewer Control "AdView.dll" Arbitrary File Download Oct 10, 2008 ... Help Net Security is a daily updated security related site. We offer information on the latest advisories, viruses, press releases, papers, ...
D-Link MPEG4 SHM Audio Control (VAPGDecoder.dll 1.7.0.5) BOF Exploit Feb 26, 2008 ... D-Link MPEG4 SHM Audio Control (VAPGDecoder.dll 1.7.0.5) remote overflow exploit (Internet Explorer 7/XP SP2) check a live camera ...
Barcode ActiveX Control & DLL 4.8 - Free software downloads and ... Come to CNET Download.com for free and safe Barcode ActiveX Control & DLL 4.8 downloads. Create barcodes without fonts in Access, Excel, VB, and C++.
Barcode ActiveX Control and DLL IDAutomation ActiveX Controls are easy-to-use graphic objects that create barcodes as images without the use of bitmaps or special fonts.
ComponentSpace Event Log Control - ActiveX/DLL - V1.8 ComponentSpace Event Log Control - ActiveX/DLL - V1.8 by ComponentSpace.
rmoc3260.dll - rmoc3260, Real Player ActiveX Control Dll, Delete ... rmoc3260.dll and information about Real Player ActiveX Control Dll.

Videos:
VB Custom Controls This video will show you how to make Custom Controls in Visual Basic.net 2008, or more commonly known as .dll's Controls: Slider
Remote Control Lego Mindstorm from PC Remote Control Lego Mindstorm from your PC via bluetooth.. Joystick support Written in free-pascal using CPPNXTMindstorm.dll ( http://dias.aueb.gr/~...
How To Control Dreams- Lucid Dreams http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=140206411283
.nnnnn1 - out of control www.boomdll.ilive.ro/nnnnn1-out_of_control.rar Another awp_rooftops movie featuring romanian player .nnnnn1 Pls visit www.romanian-jumpers.com Idle ...
RL Control of SL objects and avatars Another work in progress video that shows how we can use a USB interface and the libsecondlife DLL to control Second Life objects and avatars from re...
AudFile.dll ActiveX Control Remote Buffer Overflow Mais uma vídeo aula do site 0v3rfl0w http://www.overflow.byethost22.com/ NCTsoft AudFile.dll ActiveX Control Remote Buffer Overflow
1989 Toyota Corolla Deluxe Wagon parts car 1988 1990 1989 Toyota Corolla Deluxe Wagon Buy it on eBay now http://cgi.ebay.com/ebaymotors/ws/eBayISAPI.dll?ViewItem&ssPageName=STRK:MESELX:IT&item=13025371...
Custom N64 Nintendo 64 matching control, blue LED on Ebay http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=160215554781 Auction# 160215554781
1989 Toyota Corolla Deluxe Wagon parts car 1988 1990 video 2 1989 Toyota Corolla Deluxe Wagon Buy it on eBay now http://cgi.ebay.com/ebaymotors/ws/eBayISAPI.dll?ViewItem&ssPageName=STRK:MESELX:IT&item=13025371...
Cubase SX With Promix 01 Control Surface A video of my Promix 01 acting as a control surface for Cubase SX, with full flying fader automation. I'm selling the Promix on ebay. See this link ...




Search This Site:










does using dnn somehow decrease my sites possibility of appearing in google search results??

not automatically login after creatin a user

removing open option for a download

anyone to provide automatic logon link to users?

search engines

sql error

same user names for a child subportal

problem including skins and containers in install

using unc format in <asp:image> tags

form module

authentication

only one form tag???

using session_end to log out a client machine

sqlserver databind to form, changing value in form, pushing ir back to sqlserver

adding javascript to master pages!!

declare variables inside/outside main code block

add control

download the sigmapro draconis v4.0 beta project

hi folks. been working with dnn for about a year now...never seen this issue before...

regex/string formatting question

differnce between java script and asp validation

java style inline coding or mix inline code with code behind

a roles example

question regarding windows authentication

webpart personalization + sqlserver 2000

? re: experience with dnn content builder

getting object name

dnn 2.x localization?

help needed with webparts - urgent

trouble getting started with rebulding dnn in vs2003

 
All Times Are GMT