Wednesday 5 august 2009

Thode bheege bheege se Thode Lamhe Hum..
Kal Se Soye Woye To Kam hai hum..
Thode bheege bheege se Thode Lamhe..Hum..
Kal Se Soye Woye To Kam hai hum..

Dil Ne Kaisi Harkat ki hai
Pehli baar Mohabbat ki Hai
Aakhiri baar Mohabbat ki Hai
Pehli baar.... Mohabbat Ki Hai..
Aakhiri Baar...
Mohabbat ki Hai..

Aankhein Doobi ddobi Si surmai Madham..
Jheelin Paani Paani hai bas.. Hum aur Tum.
Baat badi Hairat ki hai..
Pehli baar Mohabbat ki Hai
Aakhiri baar
Mohabbat ki Hai
Pehli baar.... Mohabbat Ki Hai..
Aakhiri Baar...
Mohabbat ki Hai..

Khwaab ke bhoj se.
Kap Kapati hui..
Halki Palke teri..
yaad aata hai sab..
tujhe gud gudana..
satana..
yoohin sotey hue..
gaal pey teepna.. meechna..
bewajah besabab

yaad hai
peepal ke jiskey ghaney saaye the
humnein gilhari ke jhhotey matar khaaye they
yeh barqat un hazrat ki hai

Pehli baar Mohabbat ki Hai
Aakhiri baar
Mohabbat ki Hai
Pehli baar.... Mohabbat Ki Hai..
Aakhiri Baar...
Mohabbat ki Hai..

Pehli baar Mohabbat ki Hai
ohoooo oo hooooooooooo
Pehli baar Mohabbat ki Hai
ohoooo oo hooooooooooo

By Deepak Singh Solanki
Write comment - See the 5 comments - Share
Monday 3 august 2009

Enable Security Tab:


So to see and unhide the Security tab, just use the following steps:

1. Launch Windows Explorer or My Computer.
2. Click on the Tools at the menu bar, then click on Folder Options.
3. Click on View tab.
4. In the Advanced Settings section at the bottom of the list, uncheck and unselect (clear the tick) on the “Use simple file sharing (Recommended)” check box.
5. Click OK.


Security tab is available only to Administrator or users with administrative rights. So make sure you login as one. And security can only be set in an NTFS partition. If you’re still having problem to reveal or display the Security tab on files or folder properties, check out the following registry hack and set the value to 0 or simply delete the key:

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\windows\CurrentVersion\Policies\Explorer
Name: Nosecuritytab
Type: REG_DWORD
Value: 1
 
 
Take Ownership:
 
a. To take ownership of a file or a folder

You must have ownership of a protected file in order to access it. If another user has restricted access and you are the computer administrator, you can access the file by taking ownership.

To take ownership of a file, follow these steps:

1. Right-click the file that you want to take ownership of, and then click Properties.
2. Click the Security tab, and then click OK on the Security message (if one appears).
3. Click Advanced, and then click the Owner tab.
4. In the Name list, click Administrator, or click the Administrators group, and then click OK.


The administrator or the administrators group now owns the file.

To change the permissions on the file that you now own, follow these steps:

1. Click Add.
2. In the Enter the object names to select (examples) list, type the user or group account that you want to have access to the file. For example, type Administrator.
3. Click OK.
4. In the Group or user names list, click the account that you want, and then select the check boxes of the permissions that you want to assign that user.
5. When you are finished assigning permissions, click OK.
6. You can now access the file.


How to take ownership of a folder:

You must have ownership of a protected folder in order to access it. If another user has restricted access and you are the computer administrator, you can access the folder by taking ownership.

To take ownership of a folder, follow these steps:

1. Right-click the folder that you want to take ownership of, and then click Properties.
2. Click the Security tab, and then click OK on the Security message (if one appears).
3. Click Advanced, and then click the Owner tab.
4. In the Name list, click your user name, or click Administrator if you are logged in as Administrator, or click the Administrators group. If you want to take ownership of the contents of the folder, select the Replace owner on subcontainers and objects check box.
5. Click OK, and then click Yes when you receive the following message:
You do not have permission to read the contents of directory folder name. Do you want to replace the directory permissions with permissions granting you Full Control?

All permissions will be replaced if you click Yes.

Note folder name is the name of the folder that you want to take ownership of.

6. Click OK, and then reapply the permissions and security settings that you want for the folder and its contents.

By Deepak Singh Solanki
Write comment - See the comments - Share
Friday 24 july 2009

Hi,
Some times we need feedback on our sites, here are simple steps of creating feedback form in ASP.NET using C#.

1. Create a Web application or add a new aspx page to your web application.
2. Place controls as required. for example, screen below-






3. Design of ASPX page is:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<title>Web Mail</title>

<style>

.width100

{

width=100px;

}

.width200

{

width=200px;

}

</style>

</head>

<body>

<form id="form1" runat="server">

<table style="background-color: Window; border: solid 1px blue; width: 500px; border-color: Blue;">

<tr>

<td colspan="2" style="text-align: center; background-color: Blue; font: bold, 15px;

color: White;">

<asp:Label ID="lblTitle" runat="server" Text="Send Your Feedback"></asp:Label>

</td>

</tr>

<tr>

<td class="width100">

<asp:Label ID="lblName" runat="server" Text="Your Name:"></asp:Label>

</td>

<td class="width200">

<asp:TextBox ID="txtName" runat="server"></asp:TextBox>

</td>

</tr>

<tr>

<td class="width100">

<asp:Label ID="lblEmail" runat="server" Text="Your E-mail:"></asp:Label>

</td>

<td class="width200">

<asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>

</td>

</tr>

<tr>

<td colspan="2" style="width: 300px">

<asp:TextBox ID="txtMailBody" runat="server" TextMode="MultiLine" Rows="10" Width="478px"></asp:TextBox>

</td>

</tr>

<tr>

<td style="text-align: center;">

<asp:Button ID="btnSend" runat="server" Text="Send" OnClick="btnSend_Click" />

</td>

<td style="text-align: center;">

<asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" />

</td>

</tr>

<tr>

<td>

<asp:Label ID="lblStatus" runat="server" Width="81px"></asp:Label>

</td>

</tr>

</table>

</form>

</body>

</html>

4. Now change the Code behind of .aspx.cs as below:

using System;

using System.Data;

using System.Configuration;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Net.Mail;

public partial class _Default : System.Web.UI.Page

{

string strUserName = "";

string strUserEmail = "";

string strSubject = "";

string strUserMailBody = "";

protected void Page_Load(object sender, EventArgs e)

{

}

protected void btnReset_Click(object sender, EventArgs e)

{

clearFields();

}

private void clearFields()

{

txtEmail.Text = string.Empty;

txtName.Text = string.Empty;

txtMailBody.Text = string.Empty;

lblStatus.Text = string.Empty;

}

protected void btnSend_Click(object sender, EventArgs e)

{

strUserName = txtName.Text;

strUserEmail = txtEmail.Text.ToString().Trim();

strSubject = "User Feedback";

strUserMailBody = txtMailBody.Text;

sendMail(strUserName, strUserEmail, strSubject, strUserMailBody);

}

private void sendMail(string uname, string umail, string sub, string mailbody)

{

string SMTPServerName = "SLONP143EEX1";

SmtpClient client = new SmtpClient(SMTPServerName);

MailMessage message = new MailMessage();

try

{

MailAddress fromAddress = new MailAddress(umail, uname);

message.From = fromAddress;

message.Subject = sub;

message.Body = mailbody;

message.To.Add(deepak.solanki@xyx.com);   /*Site admin email*/

message.CC.Add("sanjeet.kumar@xyz.com");

client.Send(message);

lblStatus.Text = "Mail sent successfully.";

}

catch(Exception ex)

{

lblStatus.Text = "Error : " + ex.ToString();

}

}

}

5. Build and Run.
6. Test by sending mail.


Hope it works..
Cheers....

 

By Deepak Singh Solanki - Posted in: .NET
Write comment - See the comments - Share
Thursday 19 march 2009

We creat customized web parts in .NET (sharepoint) for our pecific needs where out of box web parts do not meet our requirements. Microsoft Office SharePoint Server 2007 includes the Stsadm tool for command-line administration of Office SharePoint Server 2007 servers and sites. Once the web part is ready, we need to add and deploy this before use, here are the stsadm command line operations for Web Parts.

Add Web part : addwppack

stsadm.exe -o addwppack
                   -filename <Web Part Package filename>
                   [-lcid <language>]
                   [-url <url>]
                   [-globalinstall]
                   [-force]
                   [-nodeploy]

stsadm.exe -o addwppack
                   -name <name of Web Part Package>
                   [-lcid <language>]
                   [-url <url>]
                   [-globalinstall]
                   [-force]

Delete Web part : deletewppack

stsadm.exe -o deletewppack
           -name <name of Web Part Package>
           [-lcid <language>]
           [-url <url>]

Deploy Web part : deploywppack

stsadm.exe -o deploywppack
            -name <Web Part Package name>
           [-url <virtual server url>]
           [-time <time to deploy at>]
           [-immediate]
           [-local]
           [-lcid <language>]
           [-globalinstall]
           [-force]

enumwppacks:

stsadm.exe -o enumwppacks
           [-name <name of Web Part Package>]
           [-url <virtual server url>]
           [-farm]

retractwppack:

stsadm.exe -o retractwppack
            -name <Web Part Package name>
           [-url <virtual server url>]
           [-time <time to retract at>]
           [-immediate]
           [-local]
           [-lcid <language>]

By Deepak Singh Solanki - Posted in: Sharepoint
Write comment - See the comments - Share
Tuesday 3 march 2009

Microsoft Office SharePoint Server 2007 includes the Stsadm tool for command-line administration of Office SharePoint Server 2007 servers and

sites. Stsadm is located at the following path on the drive where SharePoint Products and Technologies is installed: %COMMONPROGRAMFILES%\microsoft shared\web server extensions\12\bin. You must be an administrator on the local computer to use Stsadm.
Stsadm provides a method for performing the Office SharePoint Server 2007 administration tasks at the command line or by using batch files or scripts.

Content database Operations:

Add content db:
stsadm.exe -o addcontentdb
           -url <url>
           -databasename <database name>
           [-databaseserver <database server name>]
           [-databaseuser <database username>]
           [-databasepassword <database password>]
           [-sitewarning <site warning count>]
           [-sitemax <site max count>]

Database repair:
stsadm.exe -o databaserepair
           -url <url>
           -databasename <database name>
           [-deletecorruption]


Delete content db:
stsadm.exe -o deletecontentdb
           -url <url>
           -databasename <database name>
           [-databaseserver <database server name>]

Set config db:
stsadm.exe -o setconfigdb
           [-connect]
           -databaseserver <database server>
           [-databaseuser <database user>]
           [-databasepassword <database user password>]
           [-databasename <database name>]
           [-exclusivelyusentlm]
           [-farmuser]
           [-farmpassword]
           [-adcreation]
           [-addomain <Active Directory domain>]
           [-adou <Active Directory OU>]

Delete config db:
stsadm.exe -o deleteconfigdb

Merge content dbs:
stsadm.exe -o mergecontentdbs
    -url <url>
    -sourcedatabase <source database name>
        destinationdatabasename <destination database name>
    [-operation <1, 2, or 3>]
    [-filename <file name that is saved from the stsadm -o enumsites operation>]
 
Where operation is:
    1. Analyze (default)
    2. Full database merge
    3. Read from file

Trim audit log:
stsadm -o trimauditlog
   -url <URL name>
   -enddate <YYYYMMDD>
   -databasename <database name>
   [-databaseserver] <database server name>

By Deepak Singh Solanki - Posted in: Sharepoint
Write comment - See the comments - Share

Overview

Create a blog

Calendar

November 2009
M T W T F S S
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
<< < > >>
Create your blog on en.over-blog.com - Contact us - Terms of Use - Report abuse