الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيف اعمل الامر: Response.Redirect في Frame ؟.

مغلق
بدأه دون سيلفاتور في 6 فبراير 2006 · 2 رد · 791 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

كيف انفذ الدالة Response.Redirect في فريم اخر

يعني اعمل له Target eg الهايبر لنك

لانه احيانا ابغيها تتنفذ على فريم داخلي

واحيانا ابغيها تتنفذ في نافذة جديده

بدون تعيين التارجيت في الفورم

وشكرا

abo_alzobaer@hotmail.com

#2

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

#3

تسلم ياسيد الناس ;)

abo_alzobaer@hotmail.com

هذا الموضوع مغلق.

مواضيع مشابهة