04/12/2011

This item cannot be deleted because it is still referenced by other pages

If you create a new master page, and you want delete it, sometimes the error will happen:

This item cannot be deleted because it is still referenced by other pages

what you can do???
aha, there is work around to delete it, easy way:

        1- Open the sharepoint designer.
        2- Create a new folder.
        3- Put the target master page into new folder.
        4- Delete the folder.

Read more...

02/12/2011

Enable the Ajax on MOSS 2007


Read more...

Select a specific column in table by content

To select a specific column by content, you can use the following jquery code:

$(document).ready(function () { $('td').each(function () { var $tds = $(this).find('td'); if ($tds.text() == "System Settings") { <!--alert($currText = $tds.eq(0).text());--> $tds.css("background-color", "#F6F6F6"); }



Read more...

17/11/2011

Permission level cannot be found

Permission level cannot be found. at Microsoft.SharePoint.SPRoleDefinitionCollection.get_Item(String name)

This message happend when you try set permission to user in sharepoint by code with rong spelling.

Such us: you want set "Contribute" for the user, but you write it: "Contributer".

Read more...

29/10/2011

Enterprise Search Case Study


Read more...

Inspiring sharepoint based university sites


Read more...

Start With Google

For Egyptian IT guys:


before 31/10/2011


Read more...

Facebook - You are still registered to the stc facebook sms service

To inactivate this message, follow the following way:

Stc       >> Send غ to 86677
Mobily >> Send غ to 606050
Zain     >> Send غ to 710700

Read more...

02/06/2011

Web Service - wsdl

You can use the windows service by add it in your project as reference, but there is another way to use the web service, by create the class for this service.
You can apply this action by using the wsdl.exe.
how??

C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin>wsdl /out:d:\WebServiceClass.cs .asmx?wsdl

after that, add this class to your project and use the functions of the service.


Read more...

27/05/2011

New Sharepoint Portal

Al - Imam Muhammad ibn Saud Islamic University



Read more...

20/05/2011

New Sharepoint Portal


Read more...

06/04/2011

10 ways to call Javascript code using C# and ASP.NET

There 10 ways to call Javascript code using ASP.NET and C#, you can download the attached files and test all ways.
http://www.4shared.com/file/L8-tE7DV/CallJSCode.html



Read more...

23/03/2011

Close Tab Using ESC

<html>
<head>
<script>
function checkForEsc(e)
{
 if(!e)
  e = window.event;
 var key = e.keyCode;
 if(key==27)
  doCancel();
}

function doCancel()
{
 window.parent.close();
}
</script>
</head>
<BODY onkeypress=checkForEsc(event);>
</body>
</html>

Read more...

Microsoft Visual Studio 2010 Service Pack 1 - 3/3/2011


Read more...

22/02/2011

New Sharepoint Portal

http://www.mofa.gov.sa/

Read more...

07/02/2011

Remove the page title if you use ScriptManager


If you use an ajax, there is problem will appear with sharepoint, the page title will be removed.!!


how??

for example, If you use the ajax with button, and you put the scriptmanager into masterpage, and the user clicked it, the page title will be removed.

To solve this issue:
  1. Open the masterpage of your site using sharepoint designer.
  2. add the scriptmanager direct under form tag.
  3. remove any extra code from title place holder, the title place holder will be appear with the follwoing format:
<title id="onetidTitle"><asp:ContentPlaceHolder id=PlaceHolderPageTitle runat="server" /></title>



save, and check in.

Test now...

Read more...

27/01/2011

Modify the direction of basic HTML tag using global resource

Add new record into global resource with the name Language, and asign the value 1033 to english variable, and another value for another variable. After that, add the follwoing code to html tag, such us, TD:

align="<%= ((GetGlobalResourceObject("GlobalResources", "Language").ToString() == "1033" )? "right" : "left" ) %>"





Read more...

26/01/2011

Set default value into text box, such us search text box

<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</head>

<body>
<script>
$(document).ready(function() {

$("#search")
.val("Search...")
.css("color", "#ccc")
.focus(function(){
$(this).css("color", "black");
if ($(this).val() == "Search...")
{
$(this).val("");
}
})
.blur(function(){
$(this).css("color", "#ccc");
if ($(this).val() == "")
{
$(this).val("Search...");
}
});
});
</script>
<input type="text" id="search">
</body>

Read more...

11/01/2011

Sharepoint Portal

Ministry Of Higher Education

http://www.mohe.gov.sa/


Read more...

Sharepoint Portal

Saudi Industrial Property Authority

http://www.modon.gov.sa/


Read more...

10/01/2011

Div with scroll, Like multi line text box

To create div with scroll like multi line text box, only using CSS to apply this idea.

Into HEAD tag, Add the following code



<style>
 div.Terms {
  background:#ffffff none repeat scroll 0 0;
  border:1px solid #a0a0a0;
  margin:5px;
  padding:5px;
  position:relative;
  width:1000px;
  height:300px;
  overflow:auto;
 }

 div.Content { 
  margin:10px;
  padding:5px;
  border:0px solid #666;
  width:950px;
  zheight:500px;
 }
</style>



Into BODY tag, add the following code
<table>
<tr>
<td>
The Terms:
<br />

</td>
</tr>
<tr>
<td>

<div class="Terms" id="Terms">
<div class="Content">
The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content 
</div>
</div>
</td>
</tr>
</table>


Read more...

03/01/2011

Facebook than Google in the most visited sites in 2010





Read more...