yogesh kumar kushwah represent’s
DESCRIPTION
TRANSCRIPT
YOGESH KUMAR KUSHWAH
REPRESENT’S
A project on gate pass system
• Which shows many attributive properties
ASP.NET AJAX
Gate pass system
It provides security.
It includes many steps to show security level.
It shows a comparability with passing elements.
comparability
2.Show status
3.Pass the element
1.Check element
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
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.
Usable field
1.Technical areas. (a) Front end (b) Back end
[A] Mysql [B]Visual basic 2010
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
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/
Acronym
Asynchronous JavaScript And XML
Standard ASP.NET Application
`
Client (Web Browser) Web Server
Initial Web Page Request(WebPage.aspx)
Full Post Backs
`
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
Demos
Enhance Existing Pages Update Progress Bar Timer Control
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.
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
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/
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
18
Code Impersonation
Call LogonUser API Call ImpersonateLoggedOnUser API
Run the code in the security context of the impersonated user
Call RevertToSelf
MICROSOFT .NETFRAMEWORK OVERVIEW
FAQ What is .net? Why use .net? What is the origin of .net Technologies?
What is .NET?
.Net is a collection of Microsoft Products: C#, ADO.NET, VB.NET, ASP.NET, J# etc.
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
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
DATASET
http://adoguy.com
DataSet
Tables
DataTableDataTable
RowsRows
DataRowDataRow
DataRelation
Constraint
ForeignKeyConstraint
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>")}}
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()
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()}
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{}
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 {}
THANKS !