لدي صفحة فيها لينك لصفحة اخرى اريد عند الضغط عليه ان تفتح الصفحة الثانية ولكن في اطار جديد وليس في نفس الصفحة؟
سهل بس ما بعرفوا
مغلق
<form id="Form1">
<INPUT Type="button" OnClick="window.open('http://www.google.ca')" value="enter">
</form>المصدر:
protected void Button1_Click(object sender, EventArgs e)
{
const string url = "admin.aspx"; // Write the page you want to open it in new window
//name of window - leave blank to open each url in a new window
//use a name to reuse the window
const string windowName = "";
//params for a window
//these params open the url in a popup style window (no toolbar, status bar, etc)
const string windowParams = "height=760,width=760,status=yes,toolbar=no,menubar=no,location=no,resizable,
name=Notes";
OpenNewWindow(url, windowName, windowParams);
}
private void OpenNewWindow(string url, string windowName, string windowParams)
{
if (url == null)
throw new ArgumentNullException("url");
if (windowName == null)
windowName = "";
if (windowParams == null)
windowParams = "";
string scriptCode = string.Format("<script>window.open('{0}','{1}','{2}');</script>",url, windowName, windowParams);
//write the script out to HTTP Response stream
Response.Write(scriptCode);
}المصدر:
http://blog.aggregatedintelligence.com/200...ndow-using.html
الجدير بالذكر انه اشبع نقاشها في هذا المنتدى بطريقة بوب اب وجافا سكربت لو بحثت في حال لم يتوافق الكود السابق مع مرادك ستجد.
بالتوفيق ،،،
تم تعديل هذه المشاركة بواسطة حسام المقحم في 30 يوليو 2009 في 13:12
حسام المقحم كتب:<form id="Form1"> <INPUT Type="button" OnClick="window.open('http://www.google.ca')" value="enter"> </form>المصدر:
يسلوا هاي اكيدة
مشكورين
هذا الموضوع مغلق.