Kategoriler
ACPI [0]
Action Script [5]
Ajax [7]
ASP [17]
ASP.NET [23]
Assembly [3]
Bash [1]
C [4]
C# [9]
C++ [10]
Cobol [1]
Css [20]
Delphi [31]
Flash [5]
Html [9]
JAVA [36]
Java Script [12]
JSF [2]
Jsp [6]
Lua [1]
Matlab [2]
MySQL [31]
Oracle [1]
Pascal [31]
Perl [22]
Photoshop [2]
PHP [169]
Python [9]
REXX [6]
Ruby [4]
SEO [5]
Visual Basic [37]
|
ASP.NET / ASP.Net ile Veritabanına Kayıt Eklemek
ASP.Net ile Veritabanına Kayıt Eklemek
|
|
 |
Yazar: by_Coder
Eklenme:
05/04/08
Okunma:
1008 |
|
|
| |
| |
|
|
<%@ Page Language="VB" Debug="true" %>
<%@ import Namespace="System.Data.OleDb" %>
<script runat="server">
Sub ekle(sender As Object, e As EventArgs)
dim db_baglanti as OleDbConnection
dim ad1 as string
dim soyad1 as string
ad1=ad.text
soyad1=soyad.text
db_baglanti = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; DATA Source=" & Server.MapPath("\Proje\TL-4A\kayit.mdb"))
db_baglanti.Open()
dim db_komut as OleDbCommand
db_komut= New OleDbCommand( "Insert INTO deneme ( numara, gorus) Values( '"& ad1 &"','"& soyad1 &"')", db_baglanti )
db_komut.ExecuteNonQuery
msgbox("Görüşleriniz Eklendi.")
ad1=""
soyad1=""
db_baglanti.Close()
end sub
</script>
<html>
<head>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.style1 {
font-family: Verdana;
font-size: 14pt;
}
-->
</style>
</head>
<body>
<div id="Layer1" style="position:absolute; left:121px; top:15px; width:801px; height:31px; z-index:1">
<table width="804" border="1">
<tr>
<td><span class="style1">1001 Fikret Öztürk </span></td>
</tr>
</table>
</div>
<div id="Layer2" style="position:absolute; left:122px; top:57px; width:802px; height:362px; z-index:2">
<table width="800" height="361" border="1" id="table1">
<tr>
<td> </td>
</tr>
</table>
</div>
<p><img src="1001.jpg" width="96" height="112" border="2"></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<form runat="server">
Numaranız:
<asp:TextBox id="ad" runat="server"></asp:TextBox>
<br />
<br />
Gorusunuz:
<asp:TextBox id="soyad" runat="server" TextMode="MultiLine" Height="25"></asp:TextBox>
<br />
<asp:Button id="Button1" onclick="ekle" runat="server" Text="Bilgileri Ekle"></asp:Button>
<br />
</form>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>
|
| |
|
Görsel Dersler
Asp [59]
Asp.Net [5]
Csharp [33]
Delphi [85]
Delphi 7 [0]
Dreamweaver [45]
DW ile ASP Uygulamaları [28]
English Lessons [52]
Fireworks [4]
Flash [16]
HTML [20]
Java Script [0]
MS Access [19]
MS FrontPage [11]
Photoshop [32]
PHP [99]
Python [3]
SolidWorks [25]
Think Design [26]
VB Script [32]
Vb.Net [37]
Visual Basic [4]
|