일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- WebView
- html
- 컬럼명
- MSsql
- Bootstrap
- TextBox
- Maven
- Android
- jsp
- asp.net
- Web Service
- 이클립스
- decompiler
- varags
- Eclipse
- 웹 서비스
- 웹뷰
- javascript
- MS-SQL
- 안드로이드
- C#
- STS
- 자바
- MANTIS
- 자바스크립트
- Redirect
- scrollView
- SpringSource Tool Suite
- Java
- Apache Lucene
- Today
- Total
목록전체 글 (286)
bboks.net™
http://parangsaekr.com.ne.kr/rgb05.html
ASP.NET 프로그래밍을 하다보면 텍스트박스의 텍스트를 전체 선택해야 할때가 있다. 예를 들어 로그인 창에서 로그인 검사 후 비밀번호가 잘못 되었을 경우 비밀번호가 일치하기 않습니다라는 메시지와 함께 비밀번호 텍스트박스의 텍스트를 전체 선택과 같은... ASP.NET에서는 자체 메소드를 제공하지 않고 자바스크립트를 이용해서 구현이 가능한다. ASP.NET의 코드 비하인드의 Page_Load 메소드에 다음 코드를 이용하면 된다.protected void Page_Load(object sender, EventArgs e) { TextBox1.Attributes["onfocus"] = "javascript:this.select();"; } 이를 응용해서 만약 마우스 오버가 일어났을 경우 텍스트 박스에 포커스..
ASP.NET 코딩을 하다보면 코드 비하인드에서 경고창을 띄워야 하는 경우가 발생 1. UpdatePanel을 사용할 경우 public void CreateMessageAlertInUpdatePanel(UpdatePanel updatePanel, string message) { string script = "alert('" + message + "');"; Guid guidKey = Guid.NewGuid(); ScriptManager.RegisterStartupScript(updatePanel, updatePanel.GetType(), guidKey.ToString(), script, true); } CreateMessageAlertInUpdatePanel(this.UpdatePanel1, "messa..