Saturday, 7 October 2017

Asp Net Login Page in urdu and english ( Student Home Work Project : P...


 

Aslam-u-Alikuum Beautiful People



From Today We Are Starting ASP.NET Website  Project
 We are Making A Website For A School Home Work  For Student

Means In This Project We Will Learn How To Insert View Update Delete 
and Search Data with Sql Server + How to Make LogIn Page's Means  Admin Login Page 
And Student LogIn  page wich is connected to Sql Server + How To Connect a Html5 
website with ASP.NET Website  and How To Publish It In Right Way  :-)


So I Am Strating This Project Follow Me :-)



================================================
                                                   Part 1:
================================================
 Log In Page Design View + C# programming Code + SQL Server

================================================
                                                   Step 1:
================================================
                                               Desing View :
================================================

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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <style type="text/css">
        #form1 {
            height: 153px;
        }
    </style>

</head>
<body style="height: 243px">
    <form id="form1" runat="server">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label4" runat="server" Text="Admin LogIn"></asp:Label>
        <br />
        <br />
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label3" runat="server" Text="Id:"></asp:Label>
        <asp:TextBox ID="TextBox1" runat="server" style="margin-left: 96px"></asp:TextBox>
    <div style="height: 25px">
    
    </div>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label2" runat="server" Text="Password:"></asp:Label>
    
        <asp:TextBox ID="TextBox2" runat="server" style="margin-left: 51px" TextMode="Password"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="LogIn" Height="28px" style="margin-left: 467px" Width="74px" />
        
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </form>
</body>
</html>

================================================
                                                        Step2:
================================================
                                               Sql Server Database code
================================================

Create Database schoolhomework


CREATE TABLE [dbo].[adminlogin](
[Id] [int] IDENTITY(1,1) NOT NULL,
[adminname] [nvarchar](50) NULL,
[paswword] [nvarchar](50) NULL,
 CONSTRAINT [PK_adminlogin] PRIMARY KEY CLUSTERED 
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

================================================
                                                  Step 3
================================================
                                                C# Code 
================================================
On Page Load Event:
==================================
Label1.Visible = false; 

==================================
On Button login Click event:
==================================
string user = TextBox1.Text;
        string password = TextBox2.Text;
        string userdb, passworddb;

        returnclass rc = new returnclass();
        userdb = rc.scalarReturn("select adminname from adminlogin where adminname='" + user + "'");


        if (userdb==" ")
        {
            Label1.Text = "Invalid user name!";
            Label1.Visible = true;

        }
        else
        {
            passworddb = rc.scalarReturn("select paswword from adminlogin  where paswword='" + user + "'");

            if (passworddb.Equals(password))
            {
                //fk_ad = rc.scalarReturn("select ad_id from admin_athu where ad_user='" + user + "'");

              //  HyperLink1.Enabled = true;
                Response.Redirect("HWORK.aspx");

            }
            else
            {
                Label1.Text = ("Invalid Password!");
                Label1.Visible = true;
            }
        }
===========================
C# return  Class Code

==========================
    public string scalarReturn(string q)
        {
 string s ;
            SqlConnection conn = new SqlConnection(@"Data Source=DESKTOP-DODHH2V\SAAD;Initial Catalog=trialdatabase;Integrated Security=True"); //connection obj
            conn.Open(); //opening connection
            try
            {
                SqlCommand cmd = new SqlCommand(q, conn); //querry execution

              s  = cmd.ExecuteScalar().ToString();
            
            }
            catch (Exception)
            {

                s = " ";
            }
            conn.Close();

            return s;
}

================================================
                                                          Part 1
                                                      Complete :-)
================================================
                            For Next Part Of This Project
                       Thumbs Up This Video
                                           And
                           Subscribe To My Channel
                                                                And  
                                   Trun Notifications On
================================================
                                                      Till Next Time 
                                           Aslam-u-Alikum Beautiful People
================================================



Thursday, 5 October 2017

How to Make CV In urdu



Aslam-u-Alikuum Beautiful People

Sampale 
just Copy the following to the Microsoft word and watch the video for editing  :-)


Name
Address

Cell#

CAREER
OBJECTIVE
To seek a
position in a reputable Organization that offers opportunities for career
enhancement using my skill to achieve cooperate objective.

PERSONAL
INFORMATION
FATHER NAME                 :              
DATE OF BIRTH                  :              
MARITAL STATUS             :
Domicile                               :
Religion               
                               :

ACADEMIC Q
UALIFICATION
Ø 
Graduation
Ø 
Inter
Ø 
Matric

JOB
EXPERINCE
Ø 
Currently Working XYZ Company since 2006
Ø 
02 years working of zxy Company
Ø 
01 years working of zxy Company

EXTRA Q
UALIFICATION
Ø 
Diploma in science
Ø 
3 Months Certificate Course MS Office

REFERNCE
Will be provided when required






Wednesday, 4 October 2017

How to Solve Web server is not configured error



Aslam-u-Alikuum Beautiful People


Code For This project:

C:\Program Files\IIS Express/appcmd set config /section:directoryBrowse /enabled:true

View Video to understand the Code 



Tuesday, 3 October 2017

How to open Another .exe file through windows form application in urdu

Aslam-u-Alikuum Beautiful People



Code for This Project:

 private void pictureBox1_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(@"C:\Program Files (x86)\Counter-Strike 1.6\cstrike.exe");
        
        }


watch the video and then you will able to understand  the code

Monday, 2 October 2017

Aslam-u-Alikuum Beautiful People

Aslam-u-Alikuum Beautiful People



This Is Saad SoNu Ali 
From today I'll Start Blogger For my dear Viewers
:-)