Popular searches

Searching for free asp script



  • Overview
    new project in ASP.NET it really took some time, but now I have a foundation ( of code as well as knowlegde ) so I will soon begin rewriting my other free ASP scripts as well. I can already now say, if you have used AdMentor you will find yourself familiar with some parts of the interface and m
  • Old ASP application fixed and quick shortcuts
    I have now fixed up the download links for my old free ASP scripts. Sorry about the trouble and I do agree it wasn't too smart going on vacation the very days after a new site release, but hey, it's just a website nothing more right :) PostcardMentor http://www.aspcode.net/Download-latest-vers
  • Using ASP scripts from HTM pages
    1. What does he mean? Well I guess that's what you must be asking yourself - and I really have to agree the title looks kind of cryptic. I understand I'd better motivate you to keep reading, so I do my best: Imagine you have this site and you have a Latest news-function where news headlines are ...
  • aspECard is profiting on my script PostcardMentor
    It happens every now and then. Someone takes my free script(s) and then changes some layout, add a few things and then tries to sell it. The last one in the row is maine-net.com which with no doubt has used my TopsiteMentor and PostcardMentor. I will for now just lay out the evidence for Postca...
  • ASP.NET name mangling problem with JavaScript
    One "problem" with ASP.NET is the automatic generation of names for form variables. Sure it is convinient - and more or less a must when it comes to templated databound server controls to be able to separate the different client side controls. And it works beatifully as long...
  • Your first ASP.NET script with Ajax
    This is just a very basic example on how to deliver Ajax functionality from your ASP.NET applications. The downloadable solution contains two code files - but lets start with looking at the screenshots: The idea is we should be able to just click the "Refresh time belo...
  • Our free ASP.NET server controls
    I needed to create this page as a shortcut for you all to find my free controls. Site content is growing at an incredible speed, so some sort of extra structuring is needed. Free ASP.NET server controls     ASP.NET Thumbshots Not an actual control, but a ha...
  • ASPCode.net.Cookie released
    This library (or plugin or whatever it should be called) extends Microsoft Ajax by offering easy client side support for cookies. Not much to say about it - the code to use it in your project looks like this:
  • A watermark texbox with JQuery and asp.net
    Finally I have managed to fix the search box here at aspcode.net. I upgraded CMS, changed the layout and everything but didn't manage to get everything up and running before by summer vacation. Anyway - have you tried the search box? It is one of those  watermark textboxes  - me...
  • Step 4: Using the JavaScriptServe control (and download solution)
    Lets now use the control we created in step 3  : Apart from referencing the javascriptserve.dll we just set page1.aspx too look like this: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="page1.aspx.cs" Inherits="page1" Titl...
  • System.Web.UI.Page.RegisterClientScriptBlock(string, string) is obsolete
    The power of injecting JavaScript into your ASP.NET pages from your codebehind code is really important, considering that the controls client ID:s will not be the same as in your designtime ASPX file. In ASP.NET 1.1 it was pretty easy to inject JavaScript by using this code ...
  • Download the asp.net javascript logging console
    Javascript is indeed getting more and more important. With Ajax techniques getting spread and popular, javascripts skills are certainly becoming an valuable asset. However, doesn't matter how good a developer you are - some sort of debugging/logging tools sure are needed - and I bet I'...
  • JQuery and ASP.NET - lets involve ASP.NET
    In this example we create a table - and a span When clicked on the span an Ajax request shold be made - from the serverside the current minute should be returned - and the the current minute is label should be updated: Really easy and it's pretty much like the first Ajax example...
  • Step 2: Test case - control your Javascript
    This testcase (solution is downloadable - in related article) is really simple and basic. Master pages is used. The master page contains a single contentplaceholder Untitled Page Starting with Ajax.NET
    My journey in Ajax land continues. As I have said here in by blog  I am not sure Atlas is the way to go. In short - I have learned that the most complex (and bloated) ASP.NET server controls such as the datagrid - but also some design time controls such as the datasource controls etc...
  • Syndicate your articles with JavaScript
    Note: the examples here and download solution are created using C# and ASP.NET 2.0, but if you are using .NET 1.1 - read on cause the basic ideas are pretty much the same. Changed 2006-09-27: added instructions at the bottom if you get no results at your own system While ...
  • Your own configuration setting section in web.config
    I have often talked warmly for using appSettings instead of creating your own custom section in web.config - however I do admit there are some pretty nice things with them. First and maybe most importantly - in a world of component reuse - it is a good way of avoiding name co...
  • Step 3 - page2.aspx
    In this page we are using two controls (just to show you it's possible). <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="page2.aspx.cs" Inherits="page2" Title="Untitled Page" %> <%@ Register TagPrefix="headermanager" Namespace="ASPCodeHeaderM...
  • Including WebResource in ASP.NET server control
    Embedding resources (such as images, javascript, stylesheet information) into your server control makes it a lot easier for redistribution - and reusing the control in other projects is indeed the reason as why to create a control at all. This example will show you how to embed a javascript ...
  • Creating an RSS feed for your ASP.NET site
    How useful a RSS feed actually is is hard for me to say something about, I personally have a hard time understanding the buzz about blogs (why should that be better than a regular website). While the content people present in blogs might be really good - I just love Scott Guthries blog...
  • How Ajax for ASP.NET updatepanels work
    I will now try to show you the different types of updates you can do - cause there is indeed a plethora of them and the variations really got me confused today. I started working on this sample http://ajax.asp.net/docs/mref/M_System_Web_UI_ScriptManager_RegisterAsyncPostBackControl_1...
  • ASP.NET and JQuery - updating templated controls with AJAH
    Continuing our serie on JQuery and ASP.NET we are now gonna create an interface looking like this: When selecting a filter we want to spawn an Ajax request and update only the table part of the interface: So far we have used ASHX handlers and returned JSON structures cont...
  • JQuery and ASP.NET - returning classes with JSON
    This article is part of an article serie - please start by reading ASP.NET and JQuery - first example , JQuery and ASP.NET - lets involve ASP.NET   and Ajax loading animation with JQuery and ASP.NET   and Timed Ajax calls with JQuery and ASP.NET . Now we are gonn...
  • asp:repeater and css gallery - adding hovering and odd rows
    This article begins here . Odd rows in another color Easy enough. We just change the alternatingitemtemplate to include a CSS class:
  • Step 2 - page1.aspx
    Now lets look at page1.aspx <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="page1.aspx.cs" Inherits="page1" Title="Page 1" %> <%@ Register TagPrefix="headermanager" Namespace="ASPCodeHeaderManager" Assembly="ASPCodeHeaderManager" %>
  • Timed Ajax calls with JQuery and ASP.NET
    This article is part of an article serie - please start by reading ASP.NET and JQuery - first example , JQuery and ASP.NET - lets involve ASP.NET   and Ajax loading animation with JQuery and ASP.NET . Now this is an exact port of the case we solved using Ajax.NET in thi...
  • Suckerfish menu with ASP.NET and JQuery
    This time I am giving you the ASP.NET code for creating a Suckerfish menu in ASP.NET. I really like the multiple level/hover shows next level type of menus like in these screenshots:       I keep trying to push for JQuery - not only is it small, wellwritten, MIT licen...
  • JQuery tree viewer in ASP.NET
    Here's a ASP.NET and JQuery based tree viewer example. I'm using Jörn Zaefferers treeview for the javascript tree rendering for the simple reason it's completely unobtrousive. You mark the tree up by regular ul/li structure - meaning if someone doesn't have Javascript activated (say a search en...
  • The JQuery specifics
    As you might have noticed I am totally hooked on JQuery . As a Javascript library it's fantastic and I have therefore decided to use it for Ajax functionality as well.   For my experimental project http://www.findfreefonts.net I decided to use it and therefore this ASPCodeHeaderMa...
  • Version 1.1 2007-01-18
    Only one change: interfaces in separate dll - ASPCodeHeaderManagerInterface.dll allows for easy manipulation from other (third party) server controls This basically means that from your own servercontrols - instead of using the ClientScript scriptmanager which injects scripts pretty...
  • Javascript include from ASP.NET server control
    In ASP.NET 2.0 the Page object has a Header property - which contains a Controls collection. This is good news since it makes it possible  to (easily) inject a <script type="text/javascript" src="whatever"> into the <head></head>...
  • Ajax loading animation with JQuery and ASP.NET
    Continued from part 2 of our serie on ASP.NET and JQuery .  Now lets add some animation when we are doing the ajax calls. First we add the image to the document - and place it where we want it to appear (in this example next to the minute label - which is the one to be updated) ...
  • Interfaces and generic collections in C#
    When developing ASPCodeHeaderManager  I created a servercontrol for managing javascripts etc in an ASP.NET page. Later I needed a specific servercontrol to be able to interact with the ASPCodeHeaderManager control. However - I wanted to keep the two controls totally unk...
  • A simple image gallery
    I have gotten a lot of questions on how I have implemented the "lightbox" screenshots viewer at AdMentor.net. To see what I mean just go to AdMentor.net , scroll down to the bottom (Some screenshots) and click on one of the images. It starts a slideshow and you can click on nex...
  • HeadermanagerControl - step 1 master page
    This example is what you get in the download. I will try to guide you though it so you get an understanding of the control. We have a master page - master.master - and two pages (page1.aspx and page2.aspx). Now - lets start with master.master: <%@ Master Language="C#" AutoEventWir...
  • web.config
    1. My global DebugMode flag. I always use a flag for all my controls etc to enable/disable certain logging/debugging functionality. When set to true packing/obfuscation will NEVER take place regardless of...
  • JQuery Curvy Corners
    #header0 { margin-bottom:1px; width:100%; color:#000000; padding:10px; border-bottom:2px solid #7F7F7F; border-right:1px solid #7F7F7F; height:50px; background: #16527D url(http://www.aspcode.net/articles/themes/default/images/bg-header.gi...
  • System.Web.UI.Page.RegisterStartupScript(string,string) is obsolete
    I bet you use the RegisterStartupScript a lot - in conjunction with IsClientScriptBlockRegistered it is an easy way to insert a chunk of Javascript code into your ASP.NET page. if ( !Page.IsStartupScriptRegistered("mytest") ) Page.RegisterStartupScript("...
  • Merging two XML files
    I admit it. I am no XML API guru - while I most of the times are able to get things working with my XML files and feeds it is almost always a trial and error. XSL transforming is something I have never looked into, so when presented with the task of merging two XML files I took the eas...
  • Accessible Ajax calls 2 solving history problem
    The importance of accessibility has become more and more in focus as Ajax solution becomes more and more spread. I have talked a lot of the need for it in this article on Accessible Ajax calls   and while it certainly could be argued the solution might be a little "raw" an...
  • ASP.NET Server control with JavaScript
    This is a tip: if your ASP.NET server control is supposed to use some JavaScript it's very easy to just add it inside your (automaticlly created RenderContents function) protected override void RenderContents(HtmlTextWriter output) { if (Page.ClientScript.IsClientScriptBlo...
  • Securing pages with login scripts
    These functions can be used on certain pages you want password protected. First create a file called includelogin.asp with this content: <% Response . Buffer = True Function ValidateLogin ( sId , sPwd ) ' For you to validate ID and PASSWORD ' M...
  • Javascript - hide/show multiple table rows
    This is part 4 of this tutorial on how to create a expandable/collapsible grouping repeater control with ASP.NET. So, please start by reading part 1 .   So far we have created a htmltable and added javascript collapse/expand support - and also we can swap the minus image to pl...
  • Accessible Ajax calls
    Say a paging scenario. You have a repeater and shows the pages one by one and also you have some sort of "pager". Personally I never use the built in paging mechanism for say the gridviews - simple because it needs a postback. Which means the pages after the first one&...
  • General info
    A few years ago I developed StatMentor - a pretty simple script for getting and seing visitor statistics - and It was developed with plain ASP code. Whilst not being my most popular script ( that's AdMentor by far ), I still like(d) it and I can already now give you a few reasons as why you should...
  • IncludeScriptCompression
    How dows it work? 1. If appsettings debugmode = true then it never compresses the javascript file but instead just sets the script src='' path directly to the script. i.e <headermanager:IncludeScript Path="~/scripts/hello.js" /> -----> <script type="text...
  • ASP.NET and JQuery - first example
    JQuery is another javascript library which eases javascript developemt - and it also (of course) includes some Ajax functionality. There are  a lot of cool client side plugins   and as soon as you have gotten the main Ajax communication working (not matter ...
  • Adding each script only once
    Lets face it - sometimes when we code we do mistakes. It would in our example of the JavaScript server control    be very easy to add the same script twice. It might not look that easy to do that mistake when just looking at the very simple example we have gotten so far - but in rea...
  • Step 3: Render to page header
    As explained in step 2 we want to render the script src tags into the page:s <header> part. And be able to do it from wothin the specific page:s contentplaceholders.   I have developed a control for that - JSIncludeControl and it uses some of the techniques described...
  • Step 1: The problem
    The ClientScriptManager of the ASP.NET page class sure offers some pretty neat (and not to say easy to use) functions for injecting javascript into your ASP.NET pages. However, if you ask me, there are some problems with it: 1. You typically end up with a lot of <script> tags in...
Searching for free asp script