من یه کد میخوام که کاربر تو یه text box به نام title مثلا بنویسه in the name of god بعد وقتی سیوش کنه یه صحفه html واسه کار بر ساخته بشه با کد زیر:
<html> <head> <title> in the name of god </title> </head> <body> </body> </html>0
> من یه کد میخوام که کاربر تو یه text box به نام title مثلا بنویسه in the name of god بعد وقتی سیوش کنه یه صحفه html واسه کار بر ساخته بشه با کد زیر: <html> <head> <title> in the name of god </title> </head> <body> </body> </html>
سلام
بفرمایید:
System.IO.StreamWriter sw = new System.IO.StreamWriter("Title.html");
sw.WriteLine("<html>");
sw.WriteLine("<head><body> <title>" + textBox1.Text + "</title> </head>");
sw.WriteLine("</body></html>");
sw.Close();
0
این کد بره text box هست یا بره button?
0
برای button دیگه :happysmiley:
البته تو رویداد های textbox هم میشه گذاشت بستگی به کارتون داره
یکم سرم شلوغه :دی
سوال برنامه نویسی دارید؟
هیچ وقت در پرسیدن سوال شک نکنید