Pages

Creating Document library in Moss2007

1)Click on site setting select libirary setting 2)Enter Name ,Description ,Navigation,Document version history 3)Select Document tempelate as per requirment 4)Once document libirary created At top you find option (New ,Upload,Action,Setting) 5)New ->to create a document and save it 6)Upload -> To upload single doc or multiple docments 7)Action->Edit Datasheet ,Open window explore to drag drop document NOTE:If using office 2007 save in word 97-2003 format only

Different Custom Controls in Asp.net2.0

They are 3 primary custom control in Asp.net2.o 1)User control : A user Control is a template Control that provide extra behaviour to allow consitent control added to the user control in GUI .This control is added to the user control template file i.e ascx 2)Custom Web control : A custom web control is control that inherits from a web control.Write all the code for Rendering the control or inherit from existing web control and provide extra behaviour. 3)Composite control : A custom web control that can contain constiuent controls.The constiuent control are added to composite control via code to class file that defines the control.The class file compiled to a .dll

Create a modal popup in javascript without ajax

Here i am create a popup window alternate to javascript popups 1)we have to create 2 html files 2)First html file name is modalpopup page (you can have any name for page) 3)Second html file is dialog page (you can have any name for page) 4)Uisng window .showModalDialog() method .we can diplay a modal dialog 5)Note for example purpose i used HTML pages you can proceed with other type files 6)You can assign any image to image tag in my example and update CSS according to your requirment Note :For alternate option of modal dialog visit: www.jquery.com
////////// pseduo code of modalpoppage //javscript code function fun() { window.showModalDialog("dialogpage.html",window,"dialogHeight:100px;dialogWidth: 283px; dialogTop: 286px; edge: Raised; center: Yes; resizable: Yes; status: No;"); } call function on buttton click event ///////////// pseduo code of dialogpage ////////////// HTML code <table align="center"> <tr> <td> <img src="" /> </td> <td> Information to be display </td> </tr> <tr> <td> <input type="Button" value="Yes" onclick="javascript:alert('Yes is clicked');" /> </td> <td> <input type="Button" value="No" onclick="javascript:window.close();" /> </td> </tr> </table> //////////////

Create subsite in Moss2007

create a subsite in sharepoint (Assume parent site created) 1)Click on site setting tab 2)Under Web pages section click on sites and workspaces 3)Enter Title & description & url and modifed permission if required 4)Select template

Creating different session ID on new window

1)create object of SessionIDManager ///// System.Web.SessionState.SessionIDManager s1 = new System.Web.SessionState.SessionIDManager(); ////// 2)Remove session id create a new session Id /////// s1.RemoveSessionID(HttpContext.Current); s1.CreateSessionID(HttpContext.Current); /////// 3)Assign value to session ////// Session["page1Session"] = "page1 session"; /////// 4)In new page assign session value as above 5)To look session Id in each page write Response.Write(Session.SessionID)

Creation of list in share point 2007 or MOSS 2007

1)Click site action tab (Assume a site is created) 2)Click on create 3)Under Customlists section 4)Select Custome list 5)Enter Display name & Description 6)If want display list at left side pane (quick launch ) of check yes else no 7)By Default one colum is viewable i.e title 8)To edit Title colum name click on settings tab select list setting 9)Under Colum section click on title then rename colum name edit seeting as your requirment 10)Create a new colum under seting tab click on new colum then provide colum name,type ,description 11)To make colum as required filed select Reauired colum information 12)To Disable colum from default view uncheck default view colum 13)Edit any colum follow step 8 & 9 except colum name is differ 14)Note Default colum create when a list created Attachment,created,created by,edit,id,modified,modified by,type,version so on 15)To edit view of any list under view select modify view To enable any colume to see in default view check the display & order of display can be varied 16)To Delete a list click on setting then select list setting under permissin and managment click on delete list

Different type of events Available in Javscript

Events associated with Mouse: onmousemove: If the user moves a button, then the events associated with onmousemove fire. onclick: onclick events fire when the mouse button clicks. ondblclick: The event ondblclick fires when the mouse button is double clicked. There are also some events associated with the mouse pointer position such as: onmouseout: onmouseout event fires if the mouse pointer position is out of focus from the element. onmouseover: onmouseover event fires if the mouse pointer position is in focus of the element position. The above are some of the various mouse events available in JavaScript. Events associated with Keyboard: onkeydown onkeyup onkeypress onkeydown: onkeydown event fires when key is pressed. onkeyup: onkeyup event fires when key is released. onkeypress: The event onkeypress fires if the onkeydown is followed by onkeyup. There are many additional events available in JavaScript. A few are listed below: onerror: onerror event fires when an error occurs. onfocus: When a element gains focus, onfocus event fires or executes. onblur: In contrast to an onfocus event, this event fires when the element loses its focus. Both onfocus and onblur may be used for handling validation of forms. onsubmit: The event onsubmit fires when the command form submit is given. This event is used for validating all fields in the form before submitting the form. onload: onload event automatically executes as soon as the document fully loads. This loads when the user enters the page. This is a commonly used event. This event is used to check compatibility with the browser version and type. Based on this compatibility, the appropriate version of a page will then load. onunload: In contrast to onload event, the onunload event fires when the user leaves the page.