PDA

View Full Version : معادل کد زیر در c#



zahracomputer
یک شنبه 26 شهریور 1385, 18:30 عصر
سلام و خسته نباشید
من برای ایجاد hyperlink در حین اجرای برنامه دستور زیر را یافتم
HttpContext.Current.Response.Write("<a class='News_Links' href='" & HttpContext.Current.Request.CurrentExecutionFilePa th & "?p=" & CounterX & "'>" & CounterX & "&nbsp;" & "</a>");
اما c# روی & ، error می دهد کسی علت آن را می داند یا دستور لازم برای ایجاد hyperlink در حین اجرای برنامه؟
با تشکر

اَرژنگ
یک شنبه 26 شهریور 1385, 18:50 عصر
HttpContext.Current.Response.Write( "<a class='News_Links' href='" + HttpContext.Current.Request.CurrentExecutionFilePa th + "?p=" + CounterX + "'>" + CounterX + "&nbsp;" + "</a>");