الشي الأول : شالفرق بين id و name بالـ form وغيره من الاوبجكتس , يا أخواني مره يظبط شغلي اذا حطيت id ومره لأ ومرة يظبط اذا حطيت name ومره لأ اعتقد ان في قرابة بين id و runat دايم اشوفهم حول بعض . الله يدوم المحبه "بس مو على حساب الشغل الله يخليكم" خلو البرنامج يتنفذ أول"
الشي الثاني: اني غير ال id الي name وحذفت runat (في البرنامج الي تحت) وسحبان الله نفذ البرنامج بس لاحظت اني اذا حطيت cancel بالـ confirm MSG ان الصفحة ترجع تتحمل . فقلت أرجعلكم قبل لا اتفاهم مع الكمبيوتر .... <_<
<HTML>
<HEAD>
<title>ONE</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function Check(x)
{
if(x.RD[1].checked==true)
{
if( confirm("Are you sure that you want to REJECT !!") )
{
x.action="Home.aspx"
document.Form1.submit();
}
}
else
if(x.RD[0].checked==true)
{
x.action ="NextStep.aspx"
x.submit();
}
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server" onsubmit="return Check(this)">
Accept<input type="radio" name="RD" checked><br>
Reject<input type="radio" name="RD"><br>
<input type="submit" value="NEXT">
</form>
</body>
</HTML>
