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 containing business data so to speak - however now we sure would like to have the page generat
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 as you just stay on the serverside. Cause after a postback the correct serverside control will be f
ASPEmail
sp; End If Set objMail = nothing End Function 1. Copy it into a file called incgenmail.asp 2. Include that file from your ASP page supposed to send the mail <!--#include file="incgenmail.asp"--> 3. Call it like this: sErrMsg = SendEmail( "smtp.theserver.com",
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 in your server control.
Consider this example:
We are creating a control - JSLog in asse
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 this article .
We want to periodically call our "timeserver" using Ajax calls a
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
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 licensed (allows for use and distribution in commercial projecvts as well) but it's also a very comp
Simple ASP.NET SOA architecture
Overview
Here we will create a ASP.NET driven application providing a domainname to ip service for a Windows client application.
Foreword
Ok, here I will get into a "hot" concept - SOA - but to be honest - I don't care about the names and terminology - I just wanted a soluton that performed ok. However - do be correct - I do care about the names, domain names. Cause th
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 - meaning it has a descriptive value (such as Search...) or a default value but when clicked (focus
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
ASPMail ( SMTPsvg.Mailer )
sp; end if Set objMail = nothing End Function 1. Copy it into a file called incgenmail.asp 2. Include that file from your ASP page supposed to send the mail <!--#include file="incgenmail.asp"--> 3. Call it like this: sErrMsg = SendEmail( "smtp.theserver.com",
ASP.NET Repeater control instead of grid
If you have read some of my articles here at ASPCode.net by now I am sure you know my strive for doing things myself instead of relying on thirdparty controls. For example, I have developed professional ASP.NET solutions almost every day for at least 5 years and still havn't delivered a single one (well maybe one or two in the beginning) using the datagrid/gridview. I basicall
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 engine spider for one example) they will be still be presented with all the content and it's possible
ASP.NET search terms to database and listing most popular
Logging search terms your visitors are using at your site can be valuable for you as a webmaster, first of all just knowing what they are looking for at your site but also it can give you a hint if some of your content seems hard to reach by "regular" navigation making people always needing to search for it.
In this article I will give you rhe kind of search term logging mechanism I am us
Use NetSpell in your ASP.NET 2.0 application
This simple beginners tutorial will show you how to start using the free spellchecking component NetSpell from Loresoft from within your ASP.NET 2.0 application. When you download it
http://sourceforge.net/projects/netspell/
you will see there is a full featured ASP.NET forms example - however since I was in need of something much simpler (actually just take a string and fro
Redirecting with status 301 in ASP
es that a real/permanent move of the file has been made. Some people contacted me right away after I published the ASP.NET article, asking about the ASP equivalent. I can't say how to create a generic handler (not sure it's even possible) but redirecting a single page is sure simple enough:
Storing passwords in your ASP.NET application - part 1
ted hash value - not the actual password - is implemented in ASP.NET 2.0 membership provider system - but this article shows you how to use it in your ASP NET1.1 (or Windows forms) applications as well.
Please now read Part 2 - which explains the downloadable application .
Download the asp.net javascript logging console
g messages from my javascript code - and preferably the console would be hidden until I needed to see it
b) I would like to wrap it all up into an asp.net server control - and embed all needed javascript to handle the console. Then all I need is to reference it, put it into my aspx pages and viol
ASP Shopping carts
I was asked by a client to help with implementing a shopping cart against their existing database (containing the catalog). This was indeed my second asp contract in a very short time - after "not having to touch it" for years. Just kidding about "not having to touch it" - but ASP.NET is really a
The Google Analytics ASP.NET webcontrol
I won't explain much, but rather show you the use of it:
1. add a reference to the GoogleAnalyticsCtrl dll.
2. Declare the use of it from your aspx page:
<%@ Register TagPrefix="analytics" Namespace="GoogleAnalyticsCtrl" Assembly="GoogleAnalyticsCtrl" %>
3. Put the control i
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)
Current minute is |
Last second HTML changes in your ASP.NET page
is a was to manipulate the resulting HTML and ASP.NET page has generated just before it's sent to the browser.
Now you might ask, isn't that what ASP Server controls are made for? To generate the HTML for you? Because there are certain times when the HTML or JavaScript it generates a
Using thumbshots.org in ASP.NET and C# - part 2
Please start reading this from the beginning
Part 2 - we continue our development of the thumbshots.org cache handler:
Our img src will point to: img src="thumbshot.ashx?u=www.yoursite.com"
and lets start with looking at the handler code:
public void ProcessRequest (HttpContext context)
{
System.Drawing.Image oImgOriginal;
System.
ASP.NET hoverextender to create a live.com image search like gui part 1
Thie will be a sort of Ajax solution - no worry - but the first thing I want to show you is simply how effective CSS can be.
In short we are gonna create a GUI looking like the one found on Live.com - example
See the hovering effect? That's cool and since I needed to create such an effect for a project I am (still) working on - I decided to try to mimic it.
The basics
I sta
Using thumbshots.org with ASP.NET and C# part 1
Ever heard of thumbshots.org ? They offer a (free) service letting you retrieve thumbnail images from websites and webpages for use in your own web pages. Pretty cool and so easy to use:
In short - you just point your images to their handler and add your specific url at the end:
NUnitAsp - ASP.NET unit testing
NUnitAsp is a tool for automatically testing ASP.NET web pages.
My and Ajax for ASP.NET the journey begins
Atlas - and instead use JQuery. The blog post explains it all - and also it explains the fact that now I AM gonna investigate Ajax for ASP.NET (i.e atlas) . and I have already started by posting some samples, for example creating a live.com image search like clone .  
ASP date function wrappers
efore I have my own wrapper functions ( together with some other date functions - like show all months in a list etc ) in my own includefile: dateinc.asp. Easy to lookup and it allows me to call those functions what I want ( ( since I am an old C++-programmer actually ). Here are the functions in
Visit our new JQuery and ASP.NET driven font database
o get away from dark Swedish autumn) - however after that I have been working pretty hard on getting a "real" site up using JQuery and ASP.NET.
And finally - while I do know I have some more things to do before it's totally ready to fly - please visit the site for free fonts
Searching for asp
|