السلام عليكم
كيف انفذ الدالة Response.Redirect في فريم اخر
يعني اعمل له Target eg الهايبر لنك
لانه احيانا ابغيها تتنفذ على فريم داخلي
واحيانا ابغيها تتنفذ في نافذة جديده
بدون تعيين التارجيت في الفورم
وشكرا
السلام عليكم
كيف انفذ الدالة Response.Redirect في فريم اخر
يعني اعمل له Target eg الهايبر لنك
لانه احيانا ابغيها تتنفذ على فريم داخلي
واحيانا ابغيها تتنفذ في نافذة جديده
بدون تعيين التارجيت في الفورم
وشكرا
abo_alzobaer@hotmail.com
Use the third line of code for frame ,and the fourth line for new window:
string url = "http://www.yahoo.com";
string scriptCode = "<script language='javascript'>";
scriptCode+="parent.right.location.replace('" + url + "');";
//scriptCode+="window.open('" + url + "');";
scriptCode+="</script>";
this.RegisterStartupScript("f",scriptCode);the value right in the second line is the name of the frame in which to open the page
<frameset cols="20%,80%"> <frame src="left.aspx" name="left" id="left"> <frame src="right.aspx" name="right" id="right"> </frameset>
تحياتي
مدني
تم تعديل هذه المشاركة بواسطة madani في 7 فبراير 2006 في 17:22
هذا الموضوع مغلق.