Friday, December 18, 2009

Feature changes in Asp.Net 2.0

http://msdn.microsoft.com/en-us/library/aa479401.aspx

Nested Master Pages and its limitation

http://www.beansoftware.com/ASP.NET-Tutorials/Nested-Master-Pages.aspx

Monday, December 14, 2009

Jquery Collections - menus,...etc

http://www.stunicholls.com/various/jquery-toptip.html

Friday, November 6, 2009

how Asp.net works

http://www.takempis.com/aspnet_fundamentals.asp

Wednesday, November 4, 2009

.Net / OOPS Videos

http://www.questpond.com/

Useful Firefox Addons

FireBug 1.4.4 - Web development Evolved
(shows all details related to any page)

Another breaking change in ASP.NET 2.0: Session.SessionID

http://geekswithblogs.net/lbugnion/archive/2007/02/25/107243.aspx

Tuesday, November 3, 2009

AJAX Calls Using JavaScript And XMLHTTP

http://www.aspsnippets.com/post/AJAX-Calls-Using-JavaScript-And-XMLHTTP.aspx

Select distinct Rows from Datatable

http://www.c-sharpcorner.com/Blogs/BlogDetail.aspx?BlogId=230

DataTable dtTable=ds.Tables["Employee"].DefaultView.ToTable(true,"employeeid");
dtTable=dt.DefaultView.ToTable( true, "employeeid");

Friday, October 23, 2009

C# MSDN

http://msdn.microsoft.com/en-us/library/x9afc042.aspx

C# Language Specification
http://msdn.microsoft.com/en-us/library/ms228593.aspx

C# Programming Guide
http://msdn.microsoft.com/en-us/library/67ef8sbd.aspx

Encapsulation

http://www.c-sharpcorner.com/UploadFile/ggaganesh/EncapsulationInCS11082005064310AM/EncapsulationInCS.aspx

C# provides accessor methods (get and set methods) which are used to achieve the encapsulation in the C#.

There are two ways of encapsulating or hiding the data.

1. CREATING METHODS TO HIDE DATA

public class LogInToken
{
private string Name;
public string GetName()
{
return Name;
}
public string SetName(string s)
{
Name=s;
}
}
2. USING PROPERTIES TO HIDE DATA

public class LogInToken
{
private string name;
public string Name
{
get
{
return name;
}
set
{
name = value; // C# uses the implicit parameter "value"
}
}
}

Wednesday, October 14, 2009

OOPS Concepts

http://www.dotnetspider.com/forum/105237-what-data-abstraction-data-encapsulation.aspx
http://www.csharp-station.com/Links/ShowLinks.aspx?cat=CSharpSites&title=C%20Sharp%20Sites

Inheritance
http://www.c-sharpcorner.com/UploadFile/grusso/ImplInherit12032005000508AM/ImplInherit.aspx

Encapsulation
http://www.c-sharpcorner.com/UploadFile/ggaganesh/EncapsulationInCS11082005064310AM/EncapsulationInCS.aspx

Polymorphism
http://msdn.microsoft.com/en-us/library/ms173152.aspx

Edit Manifest of an assembly - ildasm

http://www.codeproject.com/KB/msil/ManifestEdit.aspx

In an assembly, a method is of private but it needs to be changed into public so that anyone can get access to it.

Data Abstraction

Data abstraction refers to, providing only essential
features by hiding its background details.
example:
class result
{
int marks;
float percentage;
char name[20];
void input();
void output();
}

main()
{
bank b1;
b1.input();
b1.output();
}

in the above example, b1 is an object calling input and
output member functions, but that code is invisible to the
object b1.

Forums

http://www.itags.org/dotnet/480010/

Thursday, October 8, 2009

Start day, dayname and end day of the month

http://anuraj.wordpress.com/2007/12/03/last-day-and-first-day-of-the-month-using-c/

//Get startday of month
DateTime firstDay = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);

//Get endday of month
DateTime.DaysInMonth(DateTime.Now.Year,DateTime.Now.Month)

if day is 1 of any month use DateTime.Now.DayOfWeek returns dayname
else DateTime.Now.AddDays(-(DateTime.Now.Day-1)).DayOfWeek returns dayname

Wednesday, September 30, 2009

CustomErrors asp.net

http://www.c-sharpcorner.com/UploadFile/akukreja/CustomErrorHandlingASPNET11142005235614PM/CustomErrorHandlingASPNET.aspx

http://dotnetguts.blogspot.com/2007/10/error-handling-in-net-with-example.html

Otherwise, create a error page with two divs such as divMain and divError. divMain contains common error message with warning image. Upon clicking that image show the divError with error message. For that in global.asax, put error message in Context.Items["Mesg"] and use server.transfer(errorpage.aspx,true) and set customerrors to off

[Note: server.transfer(folder/errorpage.aspx,true) shows Error executing child request for errorpage.aspx ]

Tuesday, September 29, 2009

My Logins

sqlservercentral.com - arun@bpinfotek.com
csharpcorner.com-arunkumar.niit
dotnetspider.com-arunkumar.niit
forums.asp.net-arunkumar.niit
codeproject.com-arun@bpinfotek.com
Books/Articles

scribd.com-arun_ama
Slideshare.net-arunanitha
docstoc.com-arunanitha

maximum row size in sql is 8060 bytes

In my global.asax page, I used to insert error details to error details table whereas few errors could not get inserted this is because of maximum row size in sql is 8060 bytes.


Workaround is to Log Errors in a xml file http://www.c-sharpcorner.com/uploadfile/jamesupton/errorhandler11142005040047am/errorhandler.aspx?login=true&user=arunkumar.niit

Asp.net Concepts Guide

http://www.careerride.com/ASPNet-Tutorial.aspx
http://www.c-sharpcorner.com/UploadFile/puranindia/WhatisASPNET09242009010116AM/WhatisASPNET.aspx

http://www.code-magazine.com/Article.aspx?quickid=0401041
http://www.almohandes.org/vb/archive/index.php/t-2240.html

Asp.net Ajax Examples

http://www.asp.net/AJAX/Documentation/Live/tutorials/UsingUpdatePanelControls.aspx
http://msdn.microsoft.com/hi-in/library/bb398822(en-us).aspx

Wednesday, September 23, 2009

Scheduling Asp.net code to run using web and windows services

http://msdn.microsoft.com/en-us/magazine/cc163821.aspx

Sys.WebForms.PageRequestManagerParserErrorException:

The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near '
http://www.dotnetglobe.com/2008/02/sys_02.html

Tuesday, September 22, 2009

Dynamically Templated GridView with Edit, Delete and Insert Options

http://aspalliance.com/1125_Dynamically_Templated_GridView_with_Edit_Delete_and_Insert_Options.all

Tuesday, September 15, 2009

Alert box and Response.Redirect issue

Response.Redirect means "Don't render this page. Go to this page instead.", so the behavior is expected.

Also, you should never use Response.Write, unless you're creating some kind of custom generated file download.

You can do it in a few ways..

Page.ClientScript.RegisterClientScriptBlock(Page.GetType(),"success","alert(' sucessfully added');window.location.href='AddRoute.aspx';",true)

http://forums.asp.net/t/1445275.aspx
http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=97545

Thursday, September 10, 2009

HTML Email Hyperlink href mailto with cc,subject and body

Hyperlink href mailto

http://programming.top54u.com/post/HTML-Email-Hyperlink-href-mailto.aspx

Send email using System.Net.Mail 2.0

http://forums.asp.net/t/971802.aspx
http://weblogs.asp.net/scottgu/archive/2005/12/10/432854.aspx
Use Smtp server address if mails are not sent using localhost or 127.0.0.1

Tuesday, September 8, 2009

Apple like sites

http://www.neesatechnologies.com/pms-patient-management-system-software-development.htm#

Friday, September 4, 2009

JQuery Plugins

http://www.noupe.com/ajax/45-fresh-out-of-the-oven-jquery-plugins.html
http://plugins.jquery.com/
http://www.jqueryplugins.com/
http://www.noupe.com/ajax/37-more-shocking-jquery-plugins.html
http://line25.com/articles/30-awesome-design-enhancing-jquery-plugins

Scrolling News

http://woork.blogspot.com/2008/07/fantastic-news-ticker-newsvine-like.html
http://sharebrain.info/resources/scripting/scrolling-news-ticker-with-mootools/3746/

http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html
http://www.reindel.com/accessible_news_slider/
http://tutorialblog.org/8-fantastic-jquery-tutorials-for-designers/
http://www.news-scroller.com/
http://allwebco-templates.com/support/S_script_IFrame-NewsScroll.htm
http://www.learningjquery.com/2006/10/scroll-up-headline-reader

Wednesday, August 19, 2009

Menus - different types

http://www.roalcana.com/index.php?option=com_docman&gid=38&lang=en&task=doc_download

http://www.longtailvideo.com/jw/?search=hello

http://www.kineo.com/free-tools/moodle---your-free-lms.html

http://mac.eltima.com/freeflashplayer.html

http://blog.terapad.com/index.cfm?fa=contentNews.newsDetails&newsID=66015&from=list&directoryId=10188


http://www.microsoft.com/web/gallery/Categories.aspx?sorting=latestadditions

http://aviary.com/tools
http://www.webresourcesdepot.com/sliding-top-menu-with-jquery/
http://www.developerfox.com/13-excellent-tutorials-on-creating-jquery-navigation-menu/584
http://www.dynamicdrive.com/style/csslibrary
http://www.itags.org/dotnet/480010/

https://www.dotnetnuke.com/Home/UserProfile/tabid/1103/Default.aspx?returnurl=http%3a%2f%2fwww.dotnetnuke.com%2fProducts%2fOnlineDemo%2ftabid%2f1239%2fDefault.aspx

http://www.stunicholls.com/menu/pro_dropdown_3.html

Monday, August 10, 2009

How to launch ISO and use LiveCDs inside VMware Player

http://www.virtualization.info/2005/10/how-to-launch-iso-and-use-livecds.html

Sunday, August 9, 2009

Twenty tips to write a good stored procedure

http://www.sqlservercentral.com/articles/Performance+Tuning/67427/

Monday, August 3, 2009

Birthdaywish alert via Windows services

http://www.c-sharpcorner.com/uploadfile/mahesh/window_service11262005045007am/window_service.aspx?login=true&user=arunkumar.niit
http://www.developer.com/net/net/article.php/11087_2173801_2
http://www.codeproject.com/KB/system/WindowsService.aspx


Birthday Wish Scheduler in C#

http://www.c-sharpcorner.com/uploadfile/prvn_131971/birthdaywishscheduler02022006012557am/birthdaywishscheduler.aspx?login=true&user=arunkumar.niit

Friday, July 24, 2009

Create Java game for Computers

http://javaboutique.internet.com/tutorials/Java_Game_Programming/DasersteSpielEng3.html

Wednesday, July 22, 2009

Moving Data between local server and main server

Go to Microsoft Sql server > Import and Export data. Go through the DTS wizard by selecting source and destination and click on next. Now select the option
Copy table(s) and view(s) from source database and then select which and all tables are required by selecting it and mapping it and click transform link.

1. select the option delete ... of data so that while moving data old datas get truncated and new data got moved.

2. Select the option append... in order to append the data.

and save the DTS package if required schedule the package.

If You select copy objects and datas...option, then getting error like 'You must use sql server 2005 management express' or 'some user' does not have valid permission.

Wednesday, June 24, 2009

Adding attributes to the body tag when using Master Pages

http://www.velocityreviews.com/forums/t372762-master-pages-javascript-and-body-tag.html
http://forums.asp.net/t/1186749.aspx

Wednesday, June 17, 2009

HttpUtility.HtmlEncode

converts br tag to <br/>

A potentially dangerous Request.Form value was detected from the client A potentially dangerous Request.Form value was detected from the client

http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_server_error_potentially_dangerous.htm
http://support.sightmax.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=45
http://forums.asp.net/p/1235144/2239950.aspx
http://www.asp.net/learn/whitepapers/request-validation/

Monday, June 8, 2009

Order by doesn't work with Union sql server 2000

http://www.sqlteam.com/article/union-selecting-from-multiple-tables-in-one-statement

select col1 from tblA order by col2 desc
union
select col2 from tblB order by col2 desc

-It gives error.

Workaround is:

select col1 from tblA
union
select col2 from tblB order by col2 desc

Saturday, May 30, 2009

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

http://www.tipsstation.com/article/Timeout-expired-server-is-not-responding-Asp-Dot-Net.aspx
http://www.electrictoolbox.com/unable-modify-table-timeout-expired-sql-server/

Tuesday, May 26, 2009

Deployment of Crystal Report with VS 2005

http://msdn.microsoft.com/en-us/library/ms227380(VS.80).aspx
http://msdn.microsoft.com/en-us/library/ms225386(VS.80).aspx
http://www.codeproject.com/KB/database/CrystalReportViewer.aspx
http://www.vbdotnetheaven.com/UploadFile/joseabie/810242007082431AM/8.aspx

Wednesday, May 20, 2009

Understanding-iis-web-site-and-sharepoint-web-application

http://nishantrana.wordpress.com/2009/04/25/understanding-iis-web-site-and-sharepoint-web-application/

Monday, May 18, 2009

JavaScript with ASP.NET 2.0 Pages

http://dotnetslackers.com/articles/aspnet/JavaScript_with_ASP_NET_2_0_Pages_Part1.aspx
http://dotnetslackers.com/articles/aspnet/JavaScript_with_ASP_NET_2_0_Pages_Part2.aspx

closing script tag issue while document.write js

CS1010: Newline in Constant" Error Message When a String Contains a </script> Tag in the Inline Code

var f=document.open('',.......);
//if you write </script> like this you will get this error message.
f.document.write("<script>hai</script>");
It has to be written like
f.document.write("<script>hai<");
f.document.write("/script>")

so now it will work.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;827420

Saturday, May 16, 2009

Web Flv player for playing flash videos

http://flowplayer.org/documentation/installation/index.html

Generate Script with Data from Database (Sql server 2000)

http://blog.sqlauthority.com/2007/11/16/sql-server-2005-generate-script-with-data-from-database-database-publishing-wizard/

Friday, May 15, 2009

Restore Data from sql server 2000 to Sql server 2005 Management studio express

While restoring data from sql server 2000 to sql server 2005 Management Studio express

1. Created new database named test on sql server 2005 Management studio express
2. Restore database from sql server 2000 by selecting backup file

Then I selected and clicked ok. Then I got error

System.data.sqlclient.sqlerror: the backup set holds a backup of database other than the existing database (Microsoft.Sqlserver.express.smo)

Workaround is "restoring the database with options 'overwrite existing database'"


Now db gets restored.

Thursday, May 14, 2009

Embed Video Files in HTML

http://www.kathymarks.com/archives/2005/09/embedding_windows_media_and_quicktime_video_on_a_web_page.html

classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/ mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>








pluginspage='http://microsoft.com/windows/mediaplayer/ en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='1'
bgcolor='darkblue' showcontrols='1' showtracker='1'
showdisplay='0' showstatusbar='1' videoborder3d='0' width="320" height="240"
src="file.swf" autostart='1' designtimesp='5311' loop='1'>



Files of type swf, mpg, and mpeg are working in IE7 & Firefox whereas flv does not.

Monday, May 11, 2009

Retrieve Xml Node based on two or more attribute condition

xml file:
---------


yyy



To select the node based on two attribute condition

XmlDocument xmlDoc=new XmlDocument();
XmlNode xm=xmlDoc.selectSingleNode("root/level[@id=1 and name='xxx']/level");

Friday, May 8, 2009

An application error occurred on the server - working locally but on remote it fails

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

To find out the error

1.set CustomErrors to Off

and then got error screen showing

2. Natsnet.dll error (actually in ..\inetpub\wwwroot\web.config uses this dll)

3. But I run (..\inetpub\wwwroot\site) I have not used natsnet.dll or reference inside the site application and web.config.

4. problem is its taking from root web.config and coming to inner web.config.

5. At last i copied dll to (..\inetpub\wwwroot\site\bin) then it works on remote server.

Thursday, May 7, 2009

Resolve Issue - FileUpload not working inside Updatepanel

http://www.codeproject.com/KB/ajax/simpleajaxupload.aspx
http://geekswithblogs.net/ranganh/archive/2008/04/01/file-upload-in-updatepanel-asp.net-ajax.aspx

Monday, May 4, 2009

Read/Write/Insert data to Xml file

http://www.dotnetspider.com/resources/21330-How-insert-data-XML-using-dot.aspx
http://www.codeguru.com/csharp/csharp/cs_data/xml/article.php/c9427
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=312&page=2
http://www.maconstateit.net/tutorials/XML/XML07/xml07-03.aspx

Thursday, April 9, 2009

Image verification (Captcha)

http://www.codeproject.com/KB/aspnet/ImageVerifier.aspx

Friday, April 3, 2009

Put YouTube Videos on Your Web Page

List of Youtube videos will be displayed and upon selection the selected video will be played in a separate one.

http://www.google.com/uds/solutions/wizards/videobar.html

Tuesday, March 24, 2009

Online text books

http://www.textbooksonline.tn.nic.in/Std11.htm

ILIAS LMS

Open source LMS
http://www.ilias.de/

http://www.ilias.de/docu/ilias.php?ref_id=367&cmd=layout&cmdClass=illmpresentationgui&cmdNode=1&baseClass=ilLMPresentationGUI&obj_id=29381

http://www.ilias.de/docu/goto_docu_cat_581.html

Friday, March 20, 2009

SCRIBD/Slideshare.net/Docstoc.com login details

Scribd (arun_ama)/Slideshare.net(arunanitha)/http://www.docstoc.com/(arunanitha)/wiziq.com(arunkumar.niit) here we can upload our books, download any books which are available.

Thursday, February 19, 2009

News (Apple site like Horizontal scroller) using RSS Feeds

Downloaded zip file from http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/index.htm and tested it but it does not work out and displayed I give up trying to fetch RSS feed.

And saved files on Php running folder (for.ex. Samples/). And added one php file named demo.php ( )

After a long time of searching on for google found out the solution on:

http://www.dynamicdrive.com/forums/showthread.php?t=19581 and added

////Turn off all error reporting
error_reporting(0); //at the top of scrollerbridge.php

Thursday, February 12, 2009

Upload video files more than 2mb - Joomla

1. Above changes must be done in c:\wamp\bin\php\php5.2.8\php.ini and
c:\wamp\bin\apache\apache2.2.11\bin\php.ini
Upload_max_filesize=90M
Post_max_size=100M
Max_execution_time=200
(size can be any size)
(Note: post_max_size must be greater than Upload_max_filesize)

2. Site->Global Configuration click 'system' and add extension (like mp3,mpeg..etc ) to Legal Extensions (File Types).

3. Reset the apache server and upload file of size 90mb.

Wednesday, February 11, 2009

Streaming Video from local/youtube - Joomla

AllVideos v2 Plugin

http://extensions.joomla.org/extensions/multimedia/video-players-&-gallery/812/reviews6
http://www.joomlaworks.gr/content/view/35/41/

Tuesday, February 3, 2009

Joomla - SMTP settings for Mail

In Joomla 1.5, while clicking on create a new account/forgot username/forgot password link, mail needs to be sent which works only after setting the server details.

Mailer: smtp server
Mail from: myemail@site.com
From name: arun
sendmail path: /usr/sbin/sendmail (by default)
smtp authentication: yes
smtp username: myemail@site.com
smtp password: *******
smtp host: smtp server name

http://forums.jumba.com.au/showthread.php?p=110893

Thursday, January 22, 2009

Joomla installation(wampserver - Php,Mysql & Apache)

While running wamp server localhost, it takes IIS localhost( ie. port 80) even IIS is stopped.

http://www.tinkertech.net/tutor/wamp/index.html
http://www.herrodius.com/blog/23


JoomlaFramework
http://docs.joomla.org/Framework
http://joomla15.blogspot.com/