30
YOGESH KUMAR KUSHWAH REPRESENT’S A project on gate pass system Which shows many attributive properties

Yogesh kumar kushwah represent’s

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Yogesh kumar kushwah represent’s

YOGESH KUMAR KUSHWAH

REPRESENT’S

A project on gate pass system

• Which shows many attributive properties

Page 2: Yogesh kumar kushwah represent’s

ASP.NET AJAX

Page 3: Yogesh kumar kushwah represent’s

Gate pass system

It provides security.

It includes many steps to show security level.

It shows a comparability with passing elements.

Page 4: Yogesh kumar kushwah represent’s

comparability

2.Show status

3.Pass the element

1.Check element

Page 5: Yogesh kumar kushwah represent’s

Restore the elements

0.5 1 1.5 2 2.5 30

0.5

1

1.5

2

2.5

3

3.5Y-Values

Y-Values

Page 6: Yogesh kumar kushwah represent’s

Requirment

1.Hardware environment . 2. Software environment .

1.Insert data from the table.• Use

standard data table.

• Use login data table.

2.Update the existing data in table.• Use

standard data table

• Use login data table.

3.Delete the data from table.• Use

standard data table.

• Use login data table.

Page 7: Yogesh kumar kushwah represent’s

Usable field

1.Technical areas. (a) Front end (b) Back end

[A] Mysql [B]Visual basic 2010

Page 8: Yogesh kumar kushwah represent’s

Outline

Defining AJAX ASP.NET AJAX Including ASP.NET AJAX Script Manager Update Panel Client Networking - Web/Script Services Extender Controls - Control Toolkit Client Side JavaScript Development

Page 9: Yogesh kumar kushwah represent’s

AJAX Sites

GMail – http://mail.google.com Google Maps – http://maps.google.com Outlook Web Access PageFlakes - http://www.pageflakes.com/ Smart Scoreboard -

http://www.smartscoreboard.com/

Page 10: Yogesh kumar kushwah represent’s

Acronym

Asynchronous JavaScript And XML

Page 11: Yogesh kumar kushwah represent’s

Standard ASP.NET Application

`

Client (Web Browser) Web Server

Initial Web Page Request(WebPage.aspx)

Full Post Backs

Page 12: Yogesh kumar kushwah represent’s

`

Client (Web Browser) Web Server

Initial Web Page Request(WebPage.aspx)

Async Requests

Invisible To The User

AJAX Application

Client side script updates the content of the page using the data returned from the async requests

Page 13: Yogesh kumar kushwah represent’s

Demos

Enhance Existing Pages Update Progress Bar Timer Control

Page 14: Yogesh kumar kushwah represent’s

ASP.NET Page Life Cycle

The ScriptManager’s PageRequestManager steps in during PreRender() and replaces the Page’s Render() method with one that renders Update Panel content.

Page 15: Yogesh kumar kushwah represent’s

15

Forms Authentication FlowCookie-Based Authentication Architecture

Client requests page

Authorized

ASP.NET Authentication

Not Authenticated Authenticated

Login Page(Users enter their credentials)

Authenticated

Cookie

Authorized

Not Authenticated

Access Denied

RequestedPage

Page 16: Yogesh kumar kushwah represent’s

16

Passport Authentication

Single sign-in across member sites Includes user profiles services Integrated into ASP.NET authentication Scenarios

Don’t want to maintain a database of users Provide personalized content Need to provide single-sign in capabilities

More details at http://www.passport.com/

Page 17: Yogesh kumar kushwah represent’s

17

Role-Based Security

What is this? Do not get confused with MTS and COM+

role-based security How does this work?

With Microsoft® Windows® users With non-Windows users

Page 18: Yogesh kumar kushwah represent’s

18

Code Impersonation

Call LogonUser API Call ImpersonateLoggedOnUser API

Run the code in the security context of the impersonated user

Call RevertToSelf

Page 19: Yogesh kumar kushwah represent’s

MICROSOFT .NETFRAMEWORK OVERVIEW

Page 20: Yogesh kumar kushwah represent’s

FAQ What is .net? Why use .net? What is the origin of .net Technologies?

Page 21: Yogesh kumar kushwah represent’s

What is .NET?

.Net is a collection of Microsoft Products: C#, ADO.NET, VB.NET, ASP.NET, J# etc.

Page 22: Yogesh kumar kushwah represent’s

Why use .Net? Platform Independent Multilanguage Support Multi Application Support User friendly Easy to develop and deploy Easy to Learn Reduce line of code Provide better security of application

Page 23: Yogesh kumar kushwah represent’s

Process of Source Code to Machine Code

Source Code

Complier

IL + Meta Data

PE File

CLRGC,CTS,CLS,CAS etc.

JIT

Assembly:DLL/EXE

Precompiled JIT

Economical JIT

Normal JIT

RAMManifest:-1. Assembly version2. Public token key3. Resources4. References

Managed Code

Page 24: Yogesh kumar kushwah represent’s

DATASET

http://adoguy.com

DataSet

Tables

DataTableDataTable

RowsRows

DataRowDataRow

DataRelation

Constraint

ForeignKeyConstraint

Page 25: Yogesh kumar kushwah represent’s

contd…

myConn.Open();myComm = New SqlCommand("Select * from csc", myConn);dr = myComm.ExecuteReader();}

Catch {}if(dr.HasRows){While( dr.Read){

Response.Write(dr(0) & " ")Response.Write(dr(1) & " ")Response.Write(dr(2) & "<br>")}}

Page 26: Yogesh kumar kushwah represent’s

Insert Command Add a Button control to the Web Forms page.

Protected Insert_Click( sender ss, EventArgs e){ myConn = new SqlConnection(“server=.;Database=

=cmcdb;user ID=sa;password=admin@123”);myConn.Open();

int sa = myComm.ExecuteNonQuery();If(sa>=1){

Response.Write("Records inserted" & " " & sa)}

myConn.Close()

Page 27: Yogesh kumar kushwah represent’s

Update Command

Add a Button control to the Web Forms pageSqlConnection con; SqlDataAdapter da;SqlCommand cmd;

Protected void Page_Load(sender ss, EventArgs e){ con = new SqlConnection(“server=.;Database= =cmcdb;user

ID=sa;password=admin@123 "); If( con.State = ConnectionState.Closed ){ con.Open()}

Page 28: Yogesh kumar kushwah represent’s

Update Commandcontd..

Protected Button1_Click(sender ss, EventArgs e) { Try cmd = new SqlCommand("update csc set

name='abirami' where rollno=906471", con)int sa = cmd.ExecuteNonQuery()

if(sa>=1){ Response.Write("Records Updated" & " " & sa) con.Close()}} Catch{}

Page 29: Yogesh kumar kushwah represent’s

Delete Command Protected void Delete_Click(Object ss, EventArgs ee) Try{

myConn = new SqlConnection(“database=cmcdb;_server=.;integrated security=true")myConn.Open()myComm = new SqlCommand("Delete from csc where rollno=906489", myConn)int sa = myComm.ExecuteNonQuery()if(sa>=1)

{Response.Write("Records deleted “ + sa)}}

Catch {}

Page 30: Yogesh kumar kushwah represent’s

THANKS !