0% found this document useful (0 votes)
41 views9 pages

Baze de Date Pe Internet A. B. C

The document discusses databases on the internet using Microsoft technologies. It describes using IIS as the web server, ASP.NET and Visual Studio for developing web applications, and SQL Server as the database server. It provides examples of dynamically generating content on web pages using both client-side and server-side scripts with ASP.NET.

Uploaded by

Laurentiu Oprea
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views9 pages

Baze de Date Pe Internet A. B. C

The document discusses databases on the internet using Microsoft technologies. It describes using IIS as the web server, ASP.NET and Visual Studio for developing web applications, and SQL Server as the database server. It provides examples of dynamically generating content on web pages using both client-side and server-side scripts with ASP.NET.

Uploaded by

Laurentiu Oprea
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 9

Baze de date pe

INTERNET

A.Server Web - IIS Microsoft


B.Visual Studio .NET ASP.NET
C.Server de BD - SQL Server

Paradigma INTERNET

A. Internet Information Service


B. Mixarea informaiilor n pagina Web:
aplicaii practice

dataOra.aspx
functia
bdPage.aspx

C. ASP.NET i Visual Studio .NET

Internet Information
Service

Internet
TCP - IP
Limbaje script: HTML, DHTML, XML;
Web Servers: Apache; IIS =
inetinfo.exe
Instrumente vizuale ASP.NET;
Web Forms; componente NET; Windows
Forms
logica prezentrii / logica de business

Control Panel / Programs /


Programs and Features
Turn Windows features on/of

Web Management Tools

WWW Service

IIS Manager Console


App Development Features
.NET; ASP.NET; ISAPI Extensions; ISAPI Filters

IIS Hostable Web Core

Start / IIS:
IIS Manager
C:\Windows\System32\inetsrv

InetMgr.Exe
InetInfo.exe

Directorul fizic c:\inetpub\wwwroot;


Virtual Directory
Default Web Site / mouse right / Add Virtual
Directory;

Default Web Site: ASP.NET / IIS / Management

Internet Server Application Programming

Interface

Start / Stop / Restart


Handler Mapings
*.aspx PageHandlerFactory
MIME Types
Default documents
Directory browsing

Mixarea informaiilor n
pagina Web: aplicaii
practice Client side
Dinamicitate
<html>
<script language="javaScript">
document.write( " <b> Dinamicitate client side: </b>" );
azi = new Date();
document.write( azi.getDate(), "/ ",
azi.getMonth()+1, "/ ", azi.getYear(), " ",
azi.getHours(),":", azi.getMinutes(),":", azi.getSeconds() );
</script>
</html>

Dinamicitate Server side


<html>
<script runat="server" language="c#"> </script>
<% Response.Output.Write( System.DateTime.Now.ToString());
</html>

%>

Mixarea informaiilor n
pagina Web: aplicaii
practice

<html>
<script runat="server" language="c#"> </script>
<% Response.Output.Write( System.DateTime.Now.ToString());
</html>

%>

<script runat="server language="c#">


double Patrate(double nr) { return (nr)*(nr); } </script>

<%
for (double i = 1.0; i<=10.0; i++)
{ Response.Output.Write( "<tr><td>{0}</td><td>" + "{1:f}</td><tr>
i, Patrate(i));
} %>

Codebehind
Inherits

Mixarea informaiilor n
pagina Web: aplicaii
practice

private void Page_Load(object sender, System.EventArgs e)


{
string strSql = "SELECT codp, denum, pret FROM produse";
SqlConnection con =new SqlConnection(
"data source=10.2.64.73; initial catalog=doctorat;persist security
info=False; user " +
"id=sa;password=as"
);
try {con.Open(); }
catch(Exception ex) {mesaje.Text ="Eroare open
conexiune"+ex.Message;}
SqlCommand myCmd

= new SqlCommand(strSql,con);

SqlDataReader dr = myCmd.ExecuteReader();
while (dr.Read())
{
mesaje.Text+="\r\n"+dr["codp"]+ " " + dr["denum"]+ " " +
dr["pret"];
mesaje.Text+="\r\n";
}
dr.Close();
con.Close();

ASP.NET i Visual Studio


.NET

Crearea aplicaiei WEB cu ASP.NET


Fiiere componente
Lansarea din IE:
http://localhost/prima/WebForm1.aspx

You might also like