i tried submitChange Method
no error but it doesn't work...
This my code it's very Simple
actually, I don't know how..
(i'm sorry about my poor english)
.... please help...
My Code
<!--METADATA TYPE="typelib" FILE="D:\program Files\Common Files\System\ado\msado15.dll"-->
<HTML>
<HEAD>
<TITLE>AddnUpdatenDel.asp</TITLE>
<STYLE TYPE="text/css">
BODY {font-family:µ¸¿ò; font-size:10pt}
input {font-family:µ¸¿ò; font-size:10pt; border:1 solid #808080;
height:22; }
</STYLE>
</HEAD>
<!-- RDC ÄÁÆ®·ÑÀÇ ¼¼ÆÃ-->
<Object Classid="Clsid:Bd96C556-65A3-11D0-983A-00C04Fc29E33" Id="dso" Height="0" Width="0">
</Object>
<BODY BGCOLOR="#FFFFFF" onLoad="Load();">
<form name="frmtitles">
<table width="750" align="center"><tr><td>
<center><h3>µ¥ÀÌÅÍÀÇ Ãß°¡,¼öÁ¤,»èÁ¦ ¿¹Á¦</h3></center>
<!--ÆäÀÌÁö À̵¿ ¹öư-->
<center>
<Input type="Button" onclick="tblElements.previousPage();" value="<<ÀÌÀü ÆäÀÌÁö">
<Input type="Button" onclick="tblElements.nextPage()" value="´ÙÀ½ ÆäÀÌÁö>>">
</center>
<br><HR>
<table width="740" border="0">
<tr>
<td width="60" align="center">ÄÚµå</td>
<td width="150" align="center">»çÀÌÆ® À̸§</td>
<td width="150" align="center">»çÀÌÆ® URL</td>
<td width="150" align="center">»çÀÌÆ® ¹è³Ê</td>
<td width="150" align="center">»çÀÌÆ® ³»¿ë</td>
<td width="80" align="center">Ãß°¡/»èÁ¦</td>
</tr><tr>
<td width="60"><input type="text" id="newcode" size="3"></td>
<td width="150"><input type="text" id="newtitle"></td>
<td width="150"><input type="text" id="newurl"></td>
<td width="150"><input type="text" id="newimg"></td>
<td width="150"><input type="text" id="newpart"></td>
<td width="80"><input type="button" value=" Ãß°¡ " onclick="AddNew()"></td>
</tr><tr>
<td colspan="6"><hr></td>
</tr>
</table>
<!-- HTML ¿ä¼Òµé¿¡ °¢°¢ÀÇ µ¥ÀÌÅÍ Ãâ·Â-->
<table ID="tblElements" datasrc="#dso" DataPageSize="5" width="740" border="0">
<tr>
<td width="60"><input type="text" id="code" datafld="S_Code" size="3"></td>
<td width="150"><input type="text" datafld="S_title"></td>
<td width="150"><input type="text" datafld="S_url"></td>
<td width="150"><input type="text" datafld="S_img"></td>
<td width="150"><input type="text" datafld="S_part"></td>
<td width="80"><input type="button" value=" »èÁ¦ " onclick="del(this);"></td>
</tr>
</table>
<!--ÆäÀÌÁö À̵¿ ¹öư-->
<center><p>
<Input type="Button" onclick="CancelAll()" value=" ¸ðµç º¯°æ³»¿ë Ãë¼Ò ">
<Input type="Button" onclick="UpdateAll()" value="º¯°æ³»¿ë Àüü¸¦ ¼¹ö¿¡ Àû¿ë">
</center>
</td></tr></table>
</form>
</BODY>
</HTML>
<Script language="javascript">
function Load()
{
dso.URL="Http://Taeyo/RecommandSIte_Data.asp";
dso.Refresh();
}
function AddNew()
{
var yesno = confirm("Á¤¸»·Î Ãß°¡ÇϽðڽÀ´Ï±î?");
if (yesno==true){
dso.Recordset.addnew();
dso.Recordset("S_code") = document.frmtitles.newcode.value;
dso.Recordset("S_title") = document.frmtitles.newtitle.value;
dso.Recordset("S_url") = document.frmtitles.newurl.value;
dso.Recordset("S_img") = document.frmtitles.newimg.value;
dso.Recordset("S_part") = document.frmtitles.newpart.value;
dso.Recordset.update();
clearControl();
alert("µ¥ÀÌÅͰ¡ Ãß°¡µÇ¾ú½À´Ï´Ù.");
}
}
function clearControl()
{
document.frmtitles.newcode.value = "";
document.frmtitles.newtitle.value="";
document.frmtitles.newurl.value="";
document.frmtitles.newimg.value="";
document.frmtitles.newpart.value="";
}
function del(obj)
{
dso.recordset.AbsolutePosition = obj.recordNumber;
dso.recordset.Delete();
}
function CancelAll()
{
var yesno = confirm("Á¤¸»·Î ¸ðµÎ Ãë¼ÒÇϽðڽÀ´Ï±î?");
if (yesno==true){
dso.CancelUpdate();
}
}
function UpdateAll()
{
try{
dso.SubmitChanges();
dso.Refresh();
}catch (e)
{
alert(e.description);
}
//MSDN Comment
//You can use SubmitChanges only with the default RDSServer.DataFactory
object
//Custom business objects can't use this method.
//If the URL property has been set,
//SubmitChanges will submit changes to the location specified by the URL.
}
</script>