BoardWrite.aspx 페이지
BoardWrite.aspx 자바스크립트
replace(/\s/g, "") 공백제거
<form id="form1" runat="server"> <div> <h1>글쓰기</h1> <table width="650"> <tr> <th width="100">제목</th> <td colspan="5"><asp:TextBox ID="txtTitle" runat="server" width="400"></asp:TextBox></td> </tr> <tr> <th width="100">작성자</th> <td width="80"><asp:TextBox ID="txtName" runat="server"></asp:TextBox></td> <th width="100">비밀번호</th> <td width="80"><asp:TextBox ID="txtPwd" runat="server"></asp:TextBox></td> <th width="100">공개설정</th> <td width="150"> 공개 <asp:RadioButton ID="secretOpen" runat="server" GroupName="secret" Checked="true"/> 비공개 <asp:RadioButton ID="secretClose" runat="server" GroupName="secret"/> </td> </tr> <tr> <td colspan="6"><textarea runat="server" id="txtContents" style="width:98%; height:200px;"></textarea></td> </tr> </table> </div> <div style="text-align:right; width:650px; margin-top:5px;"> <asp:Button ID="BtnWriteEnd" runat="server" Text="작성완료" OnClientClick="return sendit();" onclick="BtnWriteEnd_Click" /> <asp:Button ID="BtnReset" runat="server" Text="다시쓰기" OnClientClick="return reset();" /> <asp:Button ID="BtnGoWrite" runat="server" Text="목록보기" OnClientClick ="return goBack();"/> </div> </form> |
BoardWrite.aspx 자바스크립트
function sendit() { function goBack() { |
'ASP.NET 기초 게시판 > BasicBoard' 카테고리의 다른 글
BoardDelete_ 글삭제 & 해당글의 File 삭제 (0) | 2011.03.18 |
---|---|
MSSQL▶ 비밀번호 확인해서 글삭제하기 (0) | 2011.03.14 |
PageNavi_ 게시판 페이징 (6) | 2011.03.10 |
BoardView.aspx 페이지 & BoardView.aspx 자바스크립트 (0) | 2011.02.24 |
MSSQL▶ 테이블 & 글삭제 + 비밀번호비교(확인) 프로시져 (0) | 2011.02.24 |