Web Technologies

BLOG for Web Technologies

Freewares, Free E-Books Download, SEO, Tips, Tricks, Tweaks, Latest News, .Net, PHP, ASP, ASP.Net, CSP, MS SQL Server, MySQL, Database
earnptr.com
Wednesday, August 27, 2008
Free Ebooks for PHP, MySQL, C#, dotNet, ADO.Net, 3d max

MySQL PHP Database Applications (zip)

PHP Functions Essential Reference (zip)

PHP 5 Fast & Easy Web Development (zip)

Spring into PHP 5 (zip)

Programmers Guide to .NET (zip)

ADO.NET in a Nutshell (zip)

Programming C Sharp (zip)

Application Development Using C# and .NET

Teach Yourself C Sharp In 24 Hours

Learning C Sharp

Core C# and .Net

PHP MySQL Programming for the Absolute Beginner (rar)

Labels: , , , , ,

posted by WebTeks @ 9:07 PM   83 comments
Saturday, August 23, 2008
JavaScript: Alert.Show(message) from ASP.NET Code-behind

In highly interactive websites and intranet sites, you probably want to let the users know what's going on when they delete, save, export etc. on the site.

Those kinds of status messages are widely used and are often implemented by a JavaScript alert box on the web page. ASP.NET doesn't natively support JavaScript functions from the code-behind files. You manually have to print out a script tag and add the alert() call to it.

As easy as it may be, the extensive use of the alert() status message though out a website calls for a unified and simple implementation in order to avoid duplicate code - a centralized method.

In Windows Forms it is very easy to pop up a status message by calling MessageBox.Show("message"). It is that kind of object model we want in ASP.NET for printing out JavaScript alerts. We want Alert.Show("message") in ASP.NET.

Such a thing doesn't exist so we have to create it our selves.

I've written a static class called Alert with one public method called Show. The implementation is as simple as can be. Just put the .cs file in the App_Code folder on your website and you instantly have access to the method from all pages and user controls.

using System.Web;
using System.Text;
using System.Web.UI;

///


/// A JavaScript alert
///

public static class Alert
{

///


/// Shows a client-side JavaScript alert in the browser.
///

/// The message to appear in the alert.
public static void Show(string message)
{
// Cleans the message to allow single quotation marks
string cleanMessage = message.Replace("'", "\\'");
string script = "";

// Gets the executing web page
Page page = HttpContext.Current.CurrentHandler as Page;

// Checks if the handler is a Page and that the script isn't allready on the Page
if (page != null && !page.ClientScript.IsClientScriptBlockRegistered("alert"))
{
page.ClientScript.RegisterClientScriptBlock(typeof(Alert), "alert", script);
}
}
}

Demonstration

That class of only 30 lines of code enables us to add a JavaScript alert to any page at any time. Here is an example of a Button.Click event handler that uses the method for displaying status messages.

void btnSave_Click(object sender, EventArgs e)
{
try
{
SaveSomething();
Alert.Show("You document has been saved");
}
catch (ReadOnlyException)
{
Alert.Show("You do not have write permission to this file");
}
}

Labels: ,

posted by WebTeks @ 2:29 AM   1 comments
Monday, August 11, 2008
DOWNLOAD FREE EBOOK LINK TO VARIOUS EBOOK SITE
Computer books and manuals
http://www.hoganbooks.com/freebook/webbooks.html
http://www.informit.com/itlibrary/
http://www.fore.com/support/manuals/home/home.htm http://www.adobe.com/products/acrobat/webbuy/freebooks.html


The Network Book
http://www.cs.columbia.edu/netbook/

Some #bookwarez.efnet.irc links
http://www.extrema.net/books/links.shtml

Some #bookwarez.efnet.irc fiction
http://194.58.154.90:4431/enscifi/

Pimpas online books (Indonesia)
http://202.159.16.55/~pimpa2000
http://202.159.15.46/~om-pimpa/buku


Security, privacy and cryptography
http://theory.lcs.mit.edu/~rivest/crypto-security.html
http://www.oberlin.edu/~brchkind/cyphernomicon/


My own misc online reading material
http://www.eastcoastfx.com/docs/admin-guides/
http://www.eastcoastfx.com/~jorn/reading/


Computer books
http://solaris.inorg.chem.msu.ru/cs-books/
http://sweetrude.net/~cab/books/
http://alaska.mine.nu/books/
http://poprocks.dyn.ns.ca/dave/books/
http://58-160.skarland.uaf.edu/books/


Star Trek eBooks
http://www.iinet.net.au/~shanev/strekbk.html

Linux documentation
http://www.linuxdoc.org/docs.html

FreeBSD documentation
http://www.freebsd.org/tutorials/

Sun documentation
http://osiris.imw.tu-clausthal.de:8888/
http://uran.vvsu.ru:8888/


SGI documentation
http://newton.unicc.chalmers.se/ebt-bin/nph-dweb/dynaweb;td=2 | http://techpubs.sgi.com/library/tpl/cgi-bin/init.cgi

IBM Online Redbooks
http://www.redbooks.ibm.com/

Digital Unix documentation
http://www.unix.digital.com/faqs/publications/base_doc/DOCUMENTATION/V40D_HTML/V40D_HTML/LIBRARY.HTM

Filesystem Hierarchy Standard
http://www.pathname.com/fhs/2.0/fhs-toc.html | http://www.linuxbase.com/

UNIX stuff
http://www.ucs.ed.ac.uk/~unixhelp/index.html
http://www.uwsg.indiana.edu/usail/ http://www.isu.edu/departments/comcom/unix/workshop/unixindex.html http://www.franken.de/users/lorien/unix.html


Programmers reading
http://www.programmersheaven.com/
http://www.cs.monash.edu.au/~alanf/se_proj97/


Programming Pearls 2nd edition
http://www.cs.bell-labs.com/cm/cs/pearls/

C stuff
http://www.strath.ac.uk/CC/Courses/NewCcourse/ccourse.html
http://www.cm.cf.ac.uk/Dave/C/CE.html
http://www.cprogramming.com/tutorial.html
http://www.cs.virginia.edu/c++programdesign/slides/
http://www.icce.rug.nl/docs/cplusplus/cplusplus.html


Perl stuff
http://www.webdesigns1.com/perl/ir.html
http://www.ictp.trieste.it/texi/perl/perl_toc.html
http://www.itknowledge.com/tpj/
http://www.plover.com/~mjd/perl/


Java stuff
http://www.cs.brown.edu/courses/cs016/book/
http://polaris.cis.ksu.edu/~schmidt/CIS200/
http://www.daimi.au.dk/dProg1/java/langspec-1.0/index.html


Lisp stuff
http://www.cs.cmu.edu/afs/cs.cmu.edu/project/ai-repository/ai/html/cltl/mirrors.html
http://www.cs.tulane.edu/www/Villamil/lisp/


Ada stuff
http://www.adahome.com/Tutorials/

Database reading
http://www.bus.orst.edu/faculty/brownc/lectures/db_tutor/index.htm

SQL stuff
http://w3.one.net/~jhoffman/sqltut.htm
http://www.doc.mmu.ac.uk/STAFF/E.Ferneley/SQL/index.htm http://www.daimi.au.dk/~oracle/sql/index.html


Visual Basic stuff
http://www.vb-world.net/books/

Handbook of Applied Cryptography
http://www.cacr.math.uwaterloo.ca/hac/

X Window System
http://tronche.com/gui/x/
http://www.cen.com/mw3/refs.html
http://www.gaijin.com/X/


GTK and Gnome stuff
http://developer.gnome.org/doc/GGAD/ggad.html

QT and KDE stuff
http://www.troll.no/qt/
http://developer.kde.org/documentation/tutorials/index.html
http://www.arrakis.es/~rlarrosa/tutorial.html


Corba stuff
http://www.iona.com/hyplan/vinoski/

TCP/IP info
http://www.tunix.kun.nl/ptr/tcpip.html

Misc programmers reading
http://www.cs.wisc.edu/~chilimbi/Pubs.html
http://www.ic.arizona.edu/~nromano/spring99/readings.htm


Some useful tech articles
http://www.sysadminmag.com/
http://www.dotcomma.org/


Considering Hacking Constructive
http://www.firstmonday.dk/issues/issue4_2/gisle/index.html

Eric's Random Writings
http://www.tuxedo.org/~esr/writings/

IBM's History
http://www.ibm.com/ibm/history/story/text.html

Electronic Publishing
http://www.civeng.carleton.ca/~nholtz/ElectronicPublishing.html

Digital processing
http://www.dspguide.com/pdfbook.htm

The Hardware Book
http://sunsite.auc.dk/hwb/

Network iQ Router Reference Manual
http://www.teltrend.co.nz/documentation/networkiq/rel74/html/rmtoc.htm

Cisco Product Documentation
http://www.cisco.com/univercd/cc/td/doc/product/

Novell developers appnotes
http://developer.novell.com/research/appnotes/

Icons for your desktop
http://nether.tky.hut.fi/iconstore/

Hackers' Hall of Fame at Discovery Online
http://www.discovery.com/area/technology/hackers/hackers.html

Symbols and signs and ideograms and stuff
http://www.symbols.com/

Dictionaries
http://www.ohiolink.edu/db/oed.html
http://www.ohiolink.edu/db/ahd.html
http://www.ohiolink.edu/db/columbia.html
http://www.ohiolink.edu/db/thes.html
http://www.eb.com:180/


Misc reading material
http://dali.orgland.ru/tcd/
http://www.ud.se/english/press/pdf_publ.htm


Dantes Inferno
http://sophia.smith.edu/~lkleinbe/dante/home.html
http://www.divinecomedy.org/


Books and texts
http://digital.library.upenn.edu/books/
http://www.cs.cmu.edu/books.html
http://www.ipl.org/reading/books/
http://www.nakedword.org/
http://sunsite.berkeley.edu/alex/


Literature stuff
http://lion.chadwyck.co.uk:8080/
http://www.swan.ac.uk/uwp/lit.htm


Octavo books
http://www.octavo.com/

Project Gutenberg - books and texts
http://www.promo.net/pg/

Project Runeberg - Scandinavian in books and texts
http://www.lysator.liu.se/runeberg/katalog.html

The Elements of Style
http://www.bartleby.com/141/index.html

Bigtext - illustrated books and manuals for DOS
http://www.ozemail.com.au/~kevsol/oldfav.html#bigtext

Breeze - a complete text system for Windows
http://www.ozemail.com.au/~kevsol/sware.html#brzwin

Language links
http://www.june29.com/HLP/

Grimms' fairy tales
http://www.nationalgeographic.com/grimm/archive.html

Winnie the Pooh
http://www.machaon.ru/pooh/

Medieval history
http://www.fordham.edu/halsall/sbook2.html

Misc history
http://www.usaor.net/users/ipm/contents.html
http://www.homeusers.prestel.co.uk/littleton/re0_cath.htm


Qumran historical site
http://www.kalia.org.il/Qumran/

Virtual Free Books
http://www.virtualfreesites.com/free.books.am.html

Labels: , , , , ,

posted by WebTeks @ 1:25 AM   0 comments
Previous Post
Archives
Links
Template by

Free Blogger Templates

BLOGGER

Subscribe in NewsGator Online Subscribe in Rojo Add to Google Add to netvibes Subscribe in Bloglines Web Developement Blogs - BlogCatalog Blog Directory Blogarama - The Blog Directory Blog Directory & Search engine Computers Blogs - Blog Top Sites Top Computers blogs