Work with File

Path Examples
Reading and Writing
Writting text file
w r
Index String html
Writeline
Writing Text to a File
File
[C#]using System;
using System.IO;

class Test
{
public static void Main()
{
// Create an instance of StreamWriter to write text to a file.
// The using statement also closes the StreamWriter.
using (StreamWriter sw = new StreamWriter("TestFile.txt"))
{
// Add some text to the file.
sw.Write("This is the ");
sw.WriteLine("header for the file.");
sw.WriteLine("-------------------");
// Arbitrary objects can also be written to the file.
sw.Write("The date is: ");
sw.WriteLine(DateTime.Now);
}
}
Tạo một tập tin cố định chiều rộng trong C #
Insert Text into Existing Files in C#, Without Temp Files or Memory Buffers
Text Reader and Text Writer in C#

Javascript

the javascript function from codebehind as

myBtn.Attributes.Add("onclick","callDialog() return false;");
----
btnSubmit.Attributes["OnClick"] = "javascript:GetMsg();";


JavaScript Tutorials
Form Name: f1
Name textbox: Name
Email textbox: Email
Comments text area: Comments
Likes Checkboxes: Liked
Dislikes Checkboxes: Hated

Submit Button Event: Validate()

And here's the function for the Submit event:

function Validate() {

Message = ""
Message = Message + CheckName()
Message = Message + CheckEmail()
Message = Message + CheckComments()
Message = Message + CheckLikes()
Message = Message + CheckHates()

if (Message == "") {
return true
}
else {
alert(Message)
return false
}
}
Calendar
Calendar1


<br /><!--CALENDAR--><br /><br /><!-- This goes in the HEAD of the html file --><br /><br /><script language="JavaScript" type="text/javascript"><br /><!-- Copyright 2001, Sandeep Gangadharan --><br /><!-- For more free scripts go to http://sivamdesign.com/scripts/ --><br /><br /><!--<br />var <br />month = new Array();<br />month[0]="January"; <br />month[1]="February";<br />month[2]="March";<br />month[3]="April";<br />month[4]="May";<br />month[5]="June";<br />month[6]="July";<br />month[7]="August";<br />month[8]="September";<br />month[9]="October";<br />month[10]="November";<br />month[11]="December";<br /><br />var <br />day = new Array();<br />day[0]="Sunday";<br />day[1]="Monday";<br />day[2]="Tuesday";<br />day[3]="Wednesday";<br />day[4]="Thursday";<br />day[5]="Friday";<br />day[6]="Saturday";<br /><br />today = new Date();<br />date = today.getDate();<br />day = (day[today.getDay()]);<br />month = (month[today.getMonth()]);<br />year = (today.getFullYear());<br /><br /> suffix = (date==1 || date==21 || date==31) ? "st" : "th" &&<br /> (date==2 || date==22) ? "nd" : "th" && (date==3 || date==23) ? "rd" : "th"<br /><br />function print_date()<br />{<br /> document.write(day + "," + "&nbsp;" + date + "<sup>" + suffix + "</sup>" + "&nbsp;" + <br /> month + "," + "&nbsp;" + year);<br />}<br /><br />// --><br /></script><br /><br /><br /><!-- This goes into the BODY of the file wherever you want to have the date printed --><br /><br /> <script><br /> <!--<br /> print_date();<br /> //--><br /> </script><br />


Confirm() Function
Use a javascript confirm box to ask the user if they want to delete



Delete

Another way
Delete
Using JavaScript Along with ASP.NET

to go to this page
Javascript tutorial
JavaScript Bank


Content Sharepoint

Explore the countless possibilities of SharePoint Designer 2007. In this video series John Jansen teaches you to build very simple or incredibly complex business solutions on the SharePoint platform. Learn about Master Pages, how to modify Cascading Style Sheets (CSS) in SharePoint Designer, and how to integrate Visual Studio with custom Web part deployment and workflow actions.
Training outlines:
-Learn how to build a Workflow in SharePoint Designer that leverages custom actions from Visual Studio.
- Create and modify new layout pages and customize them in SharePoint Designer.
-Customize the Cascading Style Sheets (CSS) files used in SharePoint to create a custom branded site.
- Build Master Pages from scratch so that layout pages and CSS files can be used across your site.
- Develop custom business applications with multiple data views.
Solution Administrator:
Lesson 1: INTEGRATING VISUAL STUDIO
Lesson 2: USING THE DATA VIEW DASHBOARD
Lesson 3: CREATING THE BEST WORKFLOW
Lesson 4: APPLYING LAYOUT CHANGES
Code:
http://rapidshare.com/files/52742412/TSD_P01_C01_L00.mov
http://rapidshare.com/files/52742428/TSD_P01_C01_L01.mov
http://rapidshare.com/files/52742556/TSD_P01_C01_L02.mov
http://rapidshare.com/files/52742466/TSD_P01_C01_L03.mov
http://rapidshare.com/files/52742430/TSD_P01_C01_L04.mov
http://rapidshare.com/files/52742488/TSD_P01_C01_L05.mov
http://rapidshare.com/files/52742437/TSD_P01_C01_L06.mov
http://rapidshare.com/files/52742510/TSD_P01_C01_L07.mov
http://rapidshare.com/files/52742482/TSD_P01_C01_L08.mov
http://rapidshare.com/files/52742420/TSD_P01_C02_L00.mov
http://rapidshare.com/files/52742448/TSD_P01_C02_L01.mov
http://rapidshare.com/files/52742590/TSD_P01_C02_L02.mov
http://rapidshare.com/files/52742558/TSD_P01_C02_L03.mov
http://rapidshare.com/files/52742548/TSD_P01_C02_L04.mov
http://rapidshare.com/files/52742426/TSD_P01_C03_L00.mov
http://rapidshare.com/files/52742474/TSD_P01_C03_L01.mov
http://rapidshare.com/files/52742444/TSD_P01_C03_L02.mov
http://rapidshare.com/files/52742426/TSD_P01_C03_L00.mov
http://rapidshare.com/files/52742474/TSD_P01_C03_L01.mov
http://rapidshare.com/files/52742444/TSD_P01_C03_L02.mov
http://rapidshare.com/files/52742504/TSD_P01_C03_L03.mov
http://rapidshare.com/files/52742504/TSD_P01_C03_L03.mov
http://rapidshare.com/files/52742458/TSD_P01_C02_L05.mov


2 - Tips & Tricks
Lesson 1: USING TASK PANES
Lesson 2: SETTING A CLIENT CONFIGURATION
Lesson 3: WORKING WITH CODE VIEW
Code:
http://rapidshare.com/files/52742461/TSD_P01_C05_L00.mov
http://rapidshare.com/files/52742490/TSD_P01_C05_L01.mov
http://rapidshare.com/files/52742470/TSD_P01_C05_L02.mov
http://rapidshare.com/files/52742511/TSD_P01_C05_L03.mov
http://rapidshare.com/files/52742485/TSD_P01_C05_L04.mov
http://rapidshare.com/files/52742447/TSD_P01_C06_L00.mov
http://rapidshare.com/files/52742533/TSD_P01_C06_L01.mov
http://rapidshare.com/files/52742487/TSD_P01_C06_L02.mov
http://rapidshare.com/files/52742471/TSD_P01_C07_L00.mov
http://rapidshare.com/files/52742499/TSD_P01_C07_L01.mov
http://rapidshare.com/files/52742562/TSD_P01_C07_L02.mov
http://rapidshare.com/files/52742486/TSD_P01_C07_L03.mov
http://rapidshare.com/files/52742502/TSD_P01_C07_L04.mov
http://rapidshare.com/files/52742630/TSD_P01_C07_L05.mov
http://rapidshare.com/files/52742517/TSD_P01_C07_L06.mov
http://rapidshare.com/files/52742771/TSD_P01_C07_L07.mov
http://rapidshare.com/files/52742468/TSD_P01_C07_L08.mov


3 - Web Content Management
Lesson 1: APPLYING CONTRIBUTOR SETTINGS
Lesson 2: CORPORATE PORTAL BRANDING
Lesson 3: CREATING A NEW PAGE LAYOUT
Lesson 4: CREATING A TRACKING APPLICATION
Code:
http://rapidshare.com/files/52742475/TSD_P01_C08_L00.mov
http://rapidshare.com/files/52742567/TSD_P01_C08_L01.mov
http://rapidshare.com/files/52742563/TSD_P01_C08_L02.mov
http://rapidshare.com/files/52742500/TSD_P01_C09_L00.mov
http://rapidshare.com/files/52742570/TSD_P01_C09_L01.mov
http://rapidshare.com/files/52742494/TSD_P01_C09_L02.mov
http://rapidshare.com/files/52742528/TSD_P01_C09_L03.mov
http://rapidshare.com/files/52742503/TSD_P01_C09_L04.mov
http://rapidshare.com/files/52742526/TSD_P01_C09_L05.mov
http://rapidshare.com/files/52742493/TSD_P01_C10_L00.mov
http://rapidshare.com/files/52742645/TSD_P01_C10_L01.mov
http://rapidshare.com/files/52742522/TSD_P01_C10_L02.mov
http://rapidshare.com/files/52742537/TSD_P01_C10_L03.mov
http://rapidshare.com/files/52742536/TSD_P01_C10_L04.mov
http://rapidshare.com/files/52742572/TSD_P01_C10_L05.mov
http://rapidshare.com/files/52742546/TSD_P01_C10_L06.mov
http://rapidshare.com/files/52742554/TSD_P01_C10_L07.mov
http://rapidshare.com/files/52742519/TSD_P01_C11_L00.mov
http://rapidshare.com/files/52742607/TSD_P01_C11_L01.mov
http://rapidshare.com/files/52742598/TSD_P01_C11_L02.mov
http://rapidshare.com/files/52742596/TSD_P01_C11_L03.mov
http://rapidshare.com/files/52742650/TSD_P01_C11_L04.mov
http://rapidshare.com/files/52742906/TSD_P01_C11_L05.mov
http://rapidshare.com/files/52742568/TSD_P01_C11_L06.mov
http://rapidshare.com/files/52742619/TSD_P01_C11_L07.mov
http://rapidshare.com/files/52742569/TSD_P01_C11_L08.mov


4 - Dashboards, Themes & MasterPages
Lesson 1: BUILDING A DASHBOARD
Lesson 2: CREATING A NEW THEME
Lesson 3: MAKING MASTERPAGES
Code:
http://rapidshare.com/files/52743414/TSD_P01_C12_L00.mov
http://rapidshare.com/files/52743587/TSD_P01_C12_L01.mov
http://rapidshare.com/files/52743474/TSD_P01_C12_L02.mov
http://rapidshare.com/files/52743422/TSD_P01_C12_L03.mov
http://rapidshare.com/files/52743478/TSD_P01_C12_L04.mov
http://rapidshare.com/files/52743469/TSD_P01_C12_L05.mov
http://rapidshare.com/files/52743479/TSD_P01_C12_L06.mov
http://rapidshare.com/files/52743626/TSD_P01_C12_L07.mov
http://rapidshare.com/files/52743482/TSD_P01_C12_L08.mov
http://rapidshare.com/files/52743722/TSD_P01_C12_L09.mov
http://rapidshare.com/files/52743602/TSD_P01_C12_L10.mov
http://rapidshare.com/files/52743434/TSD_P01_C12_L11.mov
http://rapidshare.com/files/52743527/TSD_P01_C12_L12.mov
http://rapidshare.com/files/52743476/TSD_P01_C12_L13.mov
http://rapidshare.com/files/52743462/TSD_P01_C12_L14.mov
http://rapidshare.com/files/52743621/TSD_P01_C12_L15.mov
http://rapidshare.com/files/52743502/TSD_P01_C12_L16.mov
http://rapidshare.com/files/52743593/TSD_P01_C12_L17.mov
http://rapidshare.com/files/52743442/TSD_P01_C13_L00.mov
http://rapidshare.com/files/52743625/TSD_P01_C13_L01.mov
http://rapidshare.com/files/52743472/TSD_P01_C13_L02.mov
http://rapidshare.com/files/52743494/TSD_P01_C13_L03.mov
http://rapidshare.com/files/52743582/TSD_P01_C13_L04.mov
http://rapidshare.com/files/52743600/TSD_P01_C13_L05.mov
http://rapidshare.com/files/52743497/TSD_P01_C13_L06.mov
http://rapidshare.com/files/52743606/TSD_P01_C13_L07.mov
http://rapidshare.com/files/52743517/TSD_P01_C13_L08.mov
http://rapidshare.com/files/52743446/TSD_P01_C14_L00.mov
http://rapidshare.com/files/52743505/TSD_P01_C14_L01.mov
http://rapidshare.com/files/52743636/TSD_P01_C14_L02.mov
http://rapidshare.com/files/52743595/TSD_P01_C14_L03.mov
http://rapidshare.com/files/52743552/TSD_P01_C14_L04.mov
http://rapidshare.com/files/52743471/TSD_P01_C14_L05.mov
http://rapidshare.com/files/52743627/TSD_P01_C14_L06.mov
http://rapidshare.com/files/52743591/TSD_P01_C14_L07.mov
http://rapidshare.com/files/52743624/TSD_P01_C14_L08.mov
http://rapidshare.com/files/52743597/TSD_P01_C14_L09.mov
http://rapidshare.com/files/52743554/TSD_P01_C14_L10.mov
http://rapidshare.com/files/52743515/TSD_P01_C14_L11.mov
http://rapidshare.com/files/52743537/TSD_P01_C14_L12.mov
http://rapidshare.com/files/52743464/TSD_P01_C14_L13.mov


5 - Targeted SharePoint Application
Lesson 1: INFOPATH & CUSTOM WORKFLOWS
Lesson 2: VIEWING FORM LIBRARIES
Code:
http://rapidshare.com/files/52743488/TSD_P01_C15_L00.mov
http://rapidshare.com/files/52743503/TSD_P01_C15_L01.mov
http://rapidshare.com/files/52743489/TSD_P01_C15_L02.mov
http://rapidshare.com/files/52743534/TSD_P01_C15_L03.mov
http://rapidshare.com/files/52743571/TSD_P01_C15_L04.mov
http://rapidshare.com/files/52743528/TSD_P01_C15_L05.mov
http://rapidshare.com/files/52743530/TSD_P01_C15_L06.mov
http://rapidshare.com/files/52743538/TSD_P01_C15_L07.mov
http://rapidshare.com/files/52743513/TSD_P01_C15_L08.mov
http://rapidshare.com/files/52743523/TSD_P01_C15_L09.mov
http://rapidshare.com/files/52743526/TSD_P01_C15_L10.mov
http://rapidshare.com/files/52743484/TSD_P01_C15_L11.mov
http://rapidshare.com/files/52743495/TSD_P01_C15_L12.mov
http://rapidshare.com/files/52743533/TSD_P01_C15_L13.mov
http://rapidshare.com/files/52743568/TSD_P01_C15_L14.mov
http://rapidshare.com/files/52743574/TSD_P01_C15_L15.mov
http://rapidshare.com/files/52743699/TSD_P01_C15_L16.mov
http://rapidshare.com/files/52743514/TSD_P01_C16_L00.mov
http://rapidshare.com/files/52743581/TSD_P01_C16_L01.mov
http://rapidshare.com/files/52743556/TSD_P01_C16_L02.mov
http://rapidshare.com/files/52743565/TSD_P01_C16_L03.mov
http://rapidshare.com/files/52743566/TSD_P01_C16_L04.mov
http://rapidshare.com/files/52743529/TSD_P01_C16_L05.mov
http://rapidshare.com/files/52743599/TSD_P01_C16_L06.mov
http://rapidshare.com/files/52743614/TSD_P01_C16_L07.mov
http://rapidshare.com/files/52743612/TSD_P01_C16_L08.mov
http://rapidshare.com/files/52743519/TSD_P01_C16_L09.mov
http://rapidshare.com/files/52743532/TSD_P01_C16_L10.mov
http://rapidshare.com/files/52743572/TSD_P01_C16_L11.mov


Enjoy! good luck with Sharepoint study

Resource