Thursday, May 15, 2008

Frequently needed source Code for WebApplications

In this post I am going to enlist the sources for generalise asp.net web applications
1)Spellcheck for Web
Its a very easy way to integrate the spellchecker with less efforts
step I Download the required files
Extract and copy
webdir.wsf ,bin ,dic ,doc ,lib, src, web.config files and folders to root folder
step II Just include the js file spell.js
step III Call the function checkSpelling() on button click


2)Hidden control to get javascript variable value at server side

Thursday, May 8, 2008

Hands-On articles by MVPs

1)Articles by Bilal Haider on aspalliance
2)Some Practicals using Ajax
3)Matt Bersett's excellent Articles
4)Learn In asynchronus Way
....Some more yet to be added

Convering SQL resultset to XML file

Hello All,
Here's the simplest way to convert SQL result to XML output
-- declare an XML variable
DECLARE @x XML
SET @x = ''

-- create another XML variable
DECLARE @t XML
SELECT @t = ( SELECT TOP 3 name FROM sys.tables FOR XML AUTO)

-- insert the second XML variable to the first one
SET @x.modify( '
insert sql:variable("@t")
as last into (/Root)[1] ' )

-- Let us check the results
SELECT @x

/*





*/

Monday, May 5, 2008

Adding Attributes to Server Controls

Hi
If you dont find the required property of a partcular control like Linkbutton
Add the attributes to this control as follows
lnkButton.Attributes.Add("Target", "frame");
Basicaly when linkbutton is rendered at client side ,its in form of anchor control
so All server controls are have the attributes of corresponding html controls
in above case linkbutton have attributes of anchor control.
If you have additional comments on this .please post your most valuable comments
thanxs

Tuesday, March 18, 2008

Technology Geeks

Useful computer Geeks









Auto email on commit in CVS





Geeks by hosam kamel -A must Read
Geeks by Ryan Ternier -A must Read
Some more geeks.. Yet to be Added












Sunday, February 24, 2008

Cool Stuff for Developers

1)For code search
1)For Studies
http://www.google.com/codesearch?hl=en&q=show:ARc_vTOc7Oc:wZf222A4j8E&sa=N&ct=rdl&cs_p=http://examples.oreilly.de/english_examples/adonetckbk/AdoDotNetCookbookCS.zip&cs_f=AdoDotNetCookbookCS/Main/Chapter+01
2)For Real time webapplication
http://www.google.com/codesearch?hl=en&lr=&q=gridview&btnG=Search
2)To debug javascript code
Go to IE's View tab -->Script debugger
javascript code wil be opened in microsoft script debugger window
put breakpoints where u want to debug the javascript code
If its not available on your IE browser then you have to download it from
http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en
or
http://www.script-debugger.com/download/
To debug javascript with Visual studio2005
http://geekswithblogs.net/lazydeveloper/archive/2006/07/10/84552.aspx
1. Start your application from Visual Studio IDE.
2. Open "Script Explorer" from your menu bar (Debug->Windows->Script Explorer). "Script Explorer" window will open. If "Script Explorer" is not available in menu; follow this
a. Enable script debugging options in your browser (Tools->Options)
b. Change your Visual Studio IDE settings to "Web Development Settings" (Tools->Import and Export Settings)
c. Enabled your Visual Studio IDE Just-In-Time debugger for "Script" (Tools->Options Debugging-> Just-In-Time)
3. In your application navigate to the intended page OR refresh your current page.
4. All .js file attached to you page and embedded javascript will be seen in "Script Explorer".
5. Double click (in "Script Explorer") to open the script you wish to debug.
6. Script file will be open in main window of Visual Studio IDE.
7. Insert the break point where you wish to debug.
8. Start execution in your application and debug your script (as usual as your server side code).

4)To implement remote debugging in Visual Studio 2005
http://support.microsoft.com/kb/910448

.........Keep awaiting ......Still I have to add some more stuffs to this post

Monday, January 21, 2008

My Favourite Books

1)Visual Studio Tips and Tricks
2)The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks
3)Visual Studio .NET Tips and Tricks: Books: Minh T. Nguyen
4)How to Code .NET: Tips and Tricks for Coding .NET 1.1 and .NET 2.0 Applications Effectively
5).NET Gotchas
6)The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks

Friday, November 2, 2007

My Collection of favourite links

http://www.sharinglinks.com/tags/swati.jain.development

Thursday, November 1, 2007

Google Search techniques in programming

1)For the compiler errors like

Feature 'a0e5a010-1329-49d4-9e09-f280cdbed37d' for list template '10102' is not installed in this farm. The operation could not be completed.
PostID=2220592&SiteID=1
Just you have remove the exact terms like 'a0e5a010-1329-49d4-9e09-f280cdbed37d' and '10102' and remove single quote or double quote around the error if any. and put in search engines
2) For queries ,search by adding all the terms in the query to search engines
3)Find out the related forums with the query. Put the exact terms inn its search engine

Tuesday, September 18, 2007

Visual Studio With Useful Micros

1)Here's a handy little Visual Studio .NET macro which searches for the currently highlighted term in Google. The search is launched as a new tab within the IDE when you press ALT+F1
http://www.codinghorror.com/blog/archives/000428.html
2)Set of useful Micros
http://www.codeguru.com/cpp/v-s/devstudio_macros/

Be Quick Using Frequently needed External Tools

Hi,
You can pin up your visual studio IDE tools with frequently needed external tools. Go to Tools--->Add external tool---> Set the commandname property to Path of the exe to execute

for notepad C:\WINDOWS\system32\notepad.exe
Initial Diectory:$(SolutionDir)$(ProjectDir)
This is an good idea rather than going to Start-->run-->notepad

Wednesday, September 12, 2007

Learn from errors

Tip:Whatever you are studying ,Study it with the help of search engines. For example if you are studying DetailsView in Asp.net then append DetailsView with ' Errors' and put in search engine .
to get the nuts and bolts of the funda

1)SQL Errors:
http://technet.microsoft.com/en-us/library/ms164014.aspx
2)ADO.net Errors:
http://www.kbalertz.com/technology_13_2.aspx
3)XML Errors:
http://www.perfectxml.com/DotNetXMLKBs.asp?t=P