Create a new or extend web application in Moss2007
1)open centeral administrator tool
2)Click on application tab
3)Click on create or extend web application
4)select exist web application or creat anew web application
Step :create a new web application changes if required
1)Select existing web site or create anew website (change description if required)
2)change port number if required
Leave default options
1)Authentication 2)Anonymous 3)Use security socket layer(ssl)4)URL
5)application pool
Changes secrity account of application pool
1)select predined i.e network service.if want user name and password select
configurable
Change iis
1)select restart iis automaticaly (prefered)
Leave defaultsetting of data base
Step :Extend web application
1)Every thing same as above except web application click to choose web
application
Portals in sharepoint
Portal
1)Connect your people to information and expertise:To share critical bussines and experise information and make a better decision
2)Connect people for key bussiness application:To stream line devlopment new
composite application
3)Connect your people to role specfic resource:Allow roles to create in your
portal and acces revalance resources
Collabration and Social computing in Moss2007
Collabration:It provide enviroment to working togther in teams and communnity to share information in differnent platform
Social Computing:It helps us creating or recreating social convention social context online through the use of software & technology
Purpose of Collabration and Social computing in Moss2007
1)Empower team with collabrative workspace:Moss provide to create own workspace to share asset with in team,department with in the oraganization
2)Connect the oragnization through portals: Moss provide to connect to people with line of bussines data ,experts,and bussiness process across the oraganization
3)Enable communities with social computing Tools: It provide a tool to set of social computing capabalities with their existing workspace and portal infrastructer
4)Reduce Cost and Complexity for IT by using integerated Infrastructer ,Existing investment and an Extensible architectual platform :Organizatiion maintain lower cost of ownerships and more easily meet bussines demand
What is Moss2007 its purpose
Moss :Microsoft office share point server
Moss is a new server program that is part of office 2007
Moss provide services
1)Collabration:Allow team work together effectively ,collabrate on and publish
document.maintain task list ,implement worflow and share information
through the use of wiki and blog
2)Portals:Create my personal site portal to share information with other and
personalize the user expierence
3)Enterpise Search:Quickly easly find people ,expertise ant content in
bussines application
4)Enterprise Content Managment:Create and manage document,records
and web content
5)Bussiness process and forms:Create workflow and elecronic form to automate and stream line business process
6)Bussiness Intelligence :Allow information worker to easy access critical
business information , anaylse and view data ,and publish reports to make more informed decesion
Moss integeration with Office 2007
1)Powerpoint 2007 is used to create slide libiraries for presentation slide
for a user and notified update so on
2)Office designer to create templates
Moss Integeration with .net
1)Create event on list , webparts
WSS varying with Moss
Windows share point service (wss) It provide site template for collabrationg with colleagues and setting up meeting template
Moss :In addtion to wss template .It provide site template related to
enterprise and publishing
Different catetgories of Culture in .net
1)Invarient Culture
This culture categoary is cultur -insensitive.This Culture is to used essentialy a default culture when consitency is desired.It used to create trial application with harde code expiration date .As Invarient Culture is not based on any language .It simply the task of comparing dates
2)Neutral Culture
A Neutral culture is associated with a language but has no relationship with countries or region .The english spoken in United State is differ from Great Britan.It contain 2 characters
(en)English,French(fr) and Spanish(sp)
3)Specfic Culture
This is most precise of that three categories and is reprsented by a neutral culture ,a hyphen ant then a specfic culture abberevation it reprsent a region/country .For example (en-US ) en represent a neutral culture & US represent a specfic culture
GuideLines of Best HTML layout of Variety of culture
1)Avoid using absolute postioning and sizes for control
2)Use Entire width anf height of the Forms
3)Sixe of elements to the overall size of the form
4)Use seperate table cell for each control
5)Avoid enabling the nowrap property in table
6)Avoid Secify the align property table
Upload file to server using javsvcript in Asp.net
1)Add Datagrid to a page use Item template
2)Add inline frame in a page
3)Upload.aspx page contain a file control going upload file into server
4)gridupload .aspx on rowdatabound call javascript function browserup1()
5)browserup1() internally call file control & upload file to a server
gridupload.aspx
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" language="javascript">
function Browseupl()
{
var ifUpload;
var confirmUpload;
ifUpload = ifu.document.form1;
ifUpload.myFile.click();
// confirmUpload = confirm ("You are about to upload the file " + ifUpload.myFile.value + " to the server. Do you agree to Upload?");
// if (confirmUpload)
// {
ifUpload.btnSubmit.click();
// }
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<iframe src="Upload.aspx" frameborder="1" id="ifu" name="ifu" style="display:none;"></iframe>
<asp:GridView ID="grdview" runat="server" AutoGenerateColumns="false" OnRowDataBound="grdview_RowDataBound">
<Columns>
<asp:BoundField DataField="TntCode" HeaderText="Tenant Code" />
<asp:BoundField DataField="TntName" HeaderText="Tenant Name" />
<asp:BoundField DataField="FrmDt" HeaderText="From Date" />
<asp:BoundField DataField="ToDt" HeaderText="To Date" />
<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton ID="btnimg" runat="server" CommandName="UPLOAD" ImageUrl="Images/upload_file_icon.gif" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
<div>
</div>
</form>
</body>
</html>
gridupload.cs
public partial class gridupload : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Bindgrid();
//grdview.Attributes.Add("onclick", "Browseupl();");
}
}
private void Bindgrid()
{
DataTable dt = new DataTable();
DataRow dr;
DataColumn dc;
dc = new DataColumn("TntCode");
dt.Columns.Add(dc);
dc = new DataColumn("TntName");
dt.Columns.Add(dc);
dc = new DataColumn("FrmDt");
dt.Columns.Add(dc);
dc = new DataColumn("ToDt");
dt.Columns.Add(dc);
dr = dt.NewRow();
dr["TntCode"] = "123456";
dr["TntName"] = "Jhon";
dr["FrmDt"] = "06/10/2008";
dr["ToDt"] = "09/10/2008";
dt.Rows.Add(dr);
dr = dt.NewRow();
dr["TntCode"] = "452130";
dr["TntName"] = "Peter";
dr["FrmDt"] = "08/10/2008";
dr["ToDt"] = "09/10/2008";
dt.Rows.Add(dr);
dr = dt.NewRow();
dr["TntCode"] = "452045";
dr["TntName"] = "James";
dr["FrmDt"] = "04/10/2008";
dr["ToDt"] = "09/10/2008";
dt.Rows.Add(dr);
dr = dt.NewRow();
dr["TntCode"] = "785245";
dr["TntName"] = "Ricky";
dr["FrmDt"] = "02/10/2008";
dr["ToDt"] = "09/10/2008";
dt.Rows.Add(dr);
dr = dt.NewRow();
dr["TntCode"] = "742569";
dr["TntName"] = "Martin";
dr["FrmDt"] = "07/10/2008";
dr["ToDt"] = "09/10/2008";
dt.Rows.Add(dr);
dr = dt.NewRow();
dr["TntCode"] = "124568";
dr["TntName"] = "Bill";
dr["FrmDt"] = "03/10/2008";
dr["ToDt"] = "09/10/2008";
dt.Rows.Add(dr);
grdview.DataSource = dt;
grdview.DataBind();
}
protected void grdview_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[4].Attributes.Add("onclick", "Browseupl();");
}
}
}
}
Upload.aspx
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function SubmitForm()
{
// Simply, submit the form
document.form1.submit ();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="file" runat="server" id="myFile" name="myFile" style="visibility:hidden;" />
<input type="button" runat="server" id="btnSubmit" name="btnSubmit" onclick="javascript:SubmitForm();" style="visibility:hidden;" />
<br /><asp:Label ID="lblMsg" runat="server" ForeColor="red" Font-Size="Medium" Font-Bold="true"></asp:Label>
</div>
</form>
</body>
</html>