CodeVerge.Net Beta


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




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 2/28/2005 5:32:35 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 31 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
Salameh
Asp.Net User
custom server control script file2/28/2005 5:32:35 AM

0

is there a way to install the javascript js file along with the control. My javascript file is rather large and if the same control that is dropped onto the same page more than once all will use the same script. I know about you can use output.write in the control to output javascript, but I would like to keep it in a .js file for cacheing purposes.
WilcoB
Asp.Net User
Re: custom server control script file2/28/2005 8:25:31 AM

0

In ASP.NET 2.0, there is a web resource handler. It can expose resources embedded in an assembly. The client script API is also more advanced in 2.0, which allows you to register an embedded script resource directly. ASP.NET will then render the proper script include statement, and browsers can cache the script.

However, in .NET 1.x there is no out of the box functionality for this. You could write such a handler yourself, but this can be tricky if you want to do it properly. A better way is probably to just "deploy" the JS as a separate file on the server (optionally in the shared scripts directory). In your control you could then just render a script include, where the link to the script is for example based on a setting in the web.config, or based on a rule you define where the script should be deployed.
- Wilco Bauwer / http://www.wilcob.com
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP. Net 3. 5 Server Controls and AJAX Components Authors: Rob Cameron, Dale Michalk, Pages: 740, Published: 2008
Foundations of ASP.NET AJAX Authors: Robin Pars, Laurence Moroney, John Grieb, Pages: 268, Published: 2007
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006
ASP.NET AJAX Programmer's Reference: With ASP.NET 2.0 Or ASP.NET 3.5 Authors: Shahram Khosravi, Pages: 1522, Published: 2007
Visual Basic .NET Developer's Guide to ASP.NET, XML, and ADO.NET Authors: Jeffrey P. McManus, Chris Kinsman, Pages: 592, Published: 2002
Beginning ASP.NET 2.0 AJAX: Written and Tested with the Final 1.0 Release Version of ASP.NET AJAX for ASP:NET 2.0 Authors: Wallace B. McClure, Paul Glavich, Scott Cate, Steve C. Orr, Craig Shoemaker, Steven A. Smith, Jim Zimmerman, Pages: 344, Published: 2007
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
ASP.NET 3.5 AJAX Pocket Guide Authors: Matthew Ellis, Pages: 232, Published: 2008
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Developing Microsoft ASP.NET Server Controls and Components Authors: Nikhil Kothari, Vandana Datye, Pages: 689, Published: 2002

Web:
Custom Server Control Syntax Custom server control syntax is used to declare user controls and custom server controls as markup elements in ASP.NET application files, including Web ...
Adding Client Capabilities to a Web Server Control This topic shows you how to create a custom Web server control that uses AJAX .... In this example, this is a URL to the script file named SampleTextBox.js, ...
Creating Custom ASP.NET Server Controls with Embedded JavaScript ... To allow the custom control to write out tags, the target JavaScript file must first be added as a resource into the project as ...
ASP.NET.4GuysFromRolla.com: A Custom ASP.NET Server Control for ... Oct 29, 2003 ... To solve this problem I decided to create a custom ASP.NET server control, which I call RssFeed. RssFeed is an open-source control, ...
User Controls and Custom Server Controls, Part 1 | O'Reilly Media User controls consist of HTML, a server-side script, and controls, ... see how to improve this user control by turning it into a custom server control. ...
CodeProject: ASP.NET Custom Controls - Client-Side Script ... attribute that references our script file. This allows the control, ..... scripts would be a great alternative to the normal, server-side custom control. ...
Dominic Pettifer - Blog: JavaScript/CSS and Custom Controls Dec 18, 2006 ... This is a custom server control that relies heavily on JavaScript and ... code to the page ourselves, or use an external script code file, ...
svnserve, a custom server The server processes the repository's conf/svnserve.conf file, and begins to .... In this example, /path/to/svnserve might be a custom wrapper script around ...
Injecting Client-Side Script from an ASP.NET Server Control ... NET server control. The first method is to insert client-side script blocks using the ... by inserting client-side script into your custom server controls. ...
Curiosity is bliss: Custom C# ASP.NET webcontrols The Load() method is called when the server control is loaded into the Page object ... to handle resources like image and script file in custom webcontrols: ...

Videos:
DeepSec 2007: Daniel Fabian - Browser Hijacking Current XSS attacks make use of the document object model to steal session credentials from unsuspecting users, allowing the attacker to impersonate ...
Shmoo1847 EoinMiller &Adair Collings - Auditing Cached Credential With Cachedump Recorded at the www.ShmooCon.org HACKING AND COMPUTER SECURITY CONFERENCE, March 23, 2007 in Washington, D.C. Content produced by www.MediaArchives.c...
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...
The Archimedes Palimpsest Google TechTalks March 7, 2006 Will Noel Roger L. Easton, Jr. Michael B. Toth ABSTRACT The Archimedes Palimpsest is a 10th Century medieval manuscr...












detection problem

vwd/asp.net 2/c# - menu error parsing control uri cannot be created

compiler error message: bc30451: name 'textinput' is not declared.

"wizard control" & "navigational controls" /help>

having very basic problems with beta 2

help....vwd stopped working

dynamically creating my page

very good vwd tutorial for those who are new to vwd and asp.net

no sqlcmd90

connection string encryption

in vwd 2005, use odbc connect the sybase 11, it reports:schema could not be retrieved." why?

missing templates

can vbd express connect to an access database?

compile time error: "[value] is not a valid value for the 'color' (or 'background-color') property

detailsview text in edit fields won't wrap

object are not movable in my webform

sources refresh in vwd

first project, intellisense not working on dll

image field ???

annoyance: i have to register every time i open vwd

new add-on to vs 2005 is available: css properties window

can't find global.asax in my root directory

intelligense in sitemap section of web.config

system.net.mail namespace

problem in object

vwd development web server vs iis security

clear table cell height, width attributes

how to keep the headers of a gridiview fixed when using vertical scroll bar

mouseover img button wont change asp.net textbox border color

help a newbie... please!!!

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT