62장 JQueryAjax 쿼리 스트링 값 전달 (FrmResponseData)
- 다음 주소창에 ?Msg-JQuery 입력 후 JQuery 스트링 값 전달 FrmResponseData.aspx OR FrmResponseData.aspx.CS |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" Inherits="Ajax_Request_FrmResponseData" %> <script runat="server"> //?Msg=JQuery 값을 넘겨주면 쿼리스트링 값으로 전달 { Response.ContentType = "text/html"; string html = "<div>안úE녕øc<div style=''>" + Request["Msg"] + "," + DateTime.Now.ToShortTimeString() + "<div></div>"; Response.Clear(); Response.Write(html); Response.End(); } </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> </div> </form> </body> </html> |