CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 4/8/2004 11:35:14 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
gibby
Asp.Net User
Server controls displaying visual elements4/8/2004 11:35:14 PM

0/0

I downloaded the source for this site some time ago and through studying it saw that all the html is added by ascx files. I understand principally how this done but could not get it to work at all. If I wanted to use server controls instead of user controls are the options that I have either, to display using a HtmlTextWriter or using the method that was used in this forum?
master4eva
Asp.Net User
Re: Server controls displaying visual elements4/9/2004 9:07:59 AM

0/0

I cannot remember the source of the forums but it should be achievable with composite controls (if they use the LoadControl method, you will find that it will become tiresome with the composite control method). I have written an article on this area over here:

http://aspalliance.com/359
-- Justin Lovell
FancyKetsup
Asp.Net User
Re: Server controls displaying visual elements4/9/2004 9:46:35 AM

0/0

User controls are server controls and if you can't get a user control to work then you probably are not going to get a custom control to work, user controls are the easiest to implement. If you asking about the rendering of a server-control such as a datagrid, button, textbox or whatever there are a lot of pre-built server-controls, the answer is you don't do anything they render themselves all you do is declare then in the html and let asp.net handle it for you... data bound controls take a couple more lines of code but they are easy lines :)
Answering a question increases your knowledge asking a question shows your Intelligence!
gibby
Asp.Net User
Re: Server controls displaying visual elements4/9/2004 12:54:40 PM

0/0

I've got lots of user controls working already - ascx controls with code behind. Thats all fine but in the method used on this site code behind files for pages are compiled and then have a tag prefix applied to them. So when the tag prefix is put into the HTML on the main pages the code behind pages are executed. From the code behind page a skin (ascx) file is called to load the layout of the desired control.
Using the method of having a tag prefix refer to a code behind file instead of a user control I wanted to know what my options were for HTML. Either using the method i described above or the HTML writer.
Thanks master4eva but the link didnt work, gave me an error.
master4eva
Asp.Net User
Re: Server controls displaying visual elements4/9/2004 5:36:50 PM

0/0

It seems that ASP Alliance is having technical difficulties... I did email Steven Smith on the issue some 12 hours ago and I have not got a reply yet. I will tell you when it is confirmed that the site is up and running again. However, abandon the idea that I had because you have already done a lot of work.

And ah - I see what your true question is. What I would do is map ".htm" to the ASP.NET engine in IIS and then build a HttpHandler handler. That handler will then "rewrite" the path internally to a ASP.NET page. That page will then grab the HTML file and render the HTML contents into a LiteralControl... and that way, your pattern for skinning does not change.

Hope that helps put you in the right direction,
Justin
-- Justin Lovell
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
Developing Web Applications with Visual Basic.NET and ASP.NET Authors: John Alexander, Billy Hollis, Pages: 400, Published: 2002
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Sams Teach Yourself ASP.NET in 21 Days Authors: Chris Payne, Pages: 1104, Published: 2002
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
Developing and Implementing Web Applications with Visual Basic .NET and Visual Studio .NET: Exam Cram 2, 70-305 Authors: Kirk Hausman, Mike Gunderloy, Ed Tittel, Pages: 624, Published: 2003

Web:
ASP.NET.4GuysFromRolla.com: A Custom ASP.NET Server Control for ... Oct 29, 2003 ... To add the control to an ASP.NET Web page without using Visual Studio . ... NET server control. Learn more at Displaying RSS Feeds - A Look ...
Walkthrough: Creating Reusable Elements with ASP.NET User Controls User controls are made up of one or more ASP.NET server controls—Button controls ... Visual Web Developer. Walkthrough: Creating Reusable Elements with ASP. ...
How to: Use Custom ASP.NET Server Controls in Visual Studio You can make your custom server controls available in the Visual Studio ... that will be used to display the control in the visual designer at design time. ...
CodeProject: Chat User Control with WebBrowser Control as ... Oct 15, 2008 ... Sure, the WebBrowser control is a very powerful display engine. Try to be creative by adding complicated HTML elements and structures to the ...
InformIT: Controls for Microsoft Visual Basic .NET and Microsoft ... The Image Web server control can display images from BMP, JPEG, PNG, and GIF files. The control is rendered as an HTML element on the Web page. ...
User Controls and Custom Server Controls, Part 3 | O'Reilly Media Example 6-13 shows the code for a page that uses the Blog control from Visual Studio .NET, including the xmlns attribute added to the element. ...
CodeProject: User controls in ASP .NET. Free source code and ... These are self contained visual elements that can be placed on a web page in the same way ..... General, Displaying User Control without overlapping, member ...
Visual Basic .NET Developer's Guide to ASP.NET, XML and ADO.NET ... Server controls are a high-level abstraction of functionality utilized during page execution to place user-interface elements onto the page. ...
THE HARTMANN SOFTWARE GROUP - ASP.NET USING VISUAL C# 2005 TRAINING NET 2.0 and how to use the new server controls. ... Displaying XML Data Using the XmlDataSource Control ... A Hierarchy of Nested siteMapNode Elements ...
ITCourseware - ASP.NET USING VISUAL C# 2005 NET 2.0 and how to use the new server controls. ... Introducing Data Source Controls; Reading and Write Data Using the SqlDataSource Control; Displaying and ...

Videos:
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming environmen...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....




Search This Site:










custom controls

server controls and viewstate

schema usage

createchildcontrols not being called in postback?

custom controls and vs.net designer ...

component controls

textbox looses value in code behind

design time control deserialization problem

maintaining viewstate on dropdown menu

please help me ! (load webusercontrol)

file management

suggestion

forms onsubmit() method not called when submit() invoked

bubbling events in user controls

cant drag-and-drop web custom control to web form!

user control missing ?

library of composite controls for sale or download?

seperatortemplate

asp .net designer question

how to get rid of clients?

composite controls

user control does not reload

godaddy.com and mysql.data.dll problems.

finding a suitable web host ...

custom webcontrol - "error creating control" error in designview

control designer - help needed

document properties in sql show like outlook.

cheap .net webhosting?

databinding and viewstate with server controls

terminal services hosting solution

  Privacy | Contact Us
All Times Are GMT