출처 : http://www.dragoneye.co.kr/dboard/board/index.asp?url=view&boardid=column11&field=&str=&page=1&sid=2803

출처로 가시면 바로 예제도 정상자동해요..

  IME(입력상자의 문자셋 결정) 조작하기

작성자 : 드래곤 조회수 : 2318
작성일 : 2003-06-03 리플수 : 0
입력상자의 한글 영문모드 미리 결정하기

Input Method Editor (IME) for user text entry fields


회원가입 입력폼등에서 한글을 입력받아야 할 경우와 영문만 입력 받고 싶은 경우

input type에 style로 지정하여 정해진 한글/영문을 입력받을 수 있다

style="ime-mode:auto"
style="ime-mode:active"
style="ime-mode:inactive"
style="ime-mode:disabled" style="ime-mode:deactivated"

(자동변경 )
(한글 모드)
(영문 모드)
(영문 모드)
(한글 모드)
(한/영 전환 가능)
(한/영 전환 가능)
(오직 영문)
(한/영 전환 가능)
(한/영 전환 가능)

<input type="text" name="" style="ime-mode:active">


♡ 사용예 ♡
동 이름을 입력하세요!!!
동이름
style="ime-mode:active"
검색주소
나머지

style="ime-mode:active"
계속해서 style="ime-mode:auto"
영문으로
style="ime-mode:inactive"
 
Posted by 말없제이
,

[출처] MultiView 서버 컨트롤 - 도구 상자 - 표준 사용 법|작성자 여유

http://http://blog.naver.com/lsv400?Redirect=Log&logNo=100061738348


ultiview 컨트롤을 올리고

view 컨트롤을 올리고 그안에 다른 컨트롤을 추가하여 사용


초기에 view 컨트롤을 보이게 하려면  multiview 컨트롤의 속성  - ActiveViewIndex 값  -1을 0으로 수정



view control 을 보이게 하려면 MultiView1.ActiveViewIndex 값을 주면 됨

=


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MultiViewTest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        // view 1
        MultiView1.ActiveViewIndex = 0;

    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        MultiView1.ActiveViewIndex = 1;

    }
}



=


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MultiViewTest.aspx.cs" Inherits="MultiViewTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="view1" />
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="view2" />
        <br />
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="View1" runat="server">
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:Button ID="Button3" runat="server" Text="Button" />
            </asp:View>
            <asp:View ID="View2" runat="server">
                <asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
            </asp:View>
        </asp:MultiView>
   
    </div>
    </form>
</body>
</html>


Posted by 말없제이
,

간편한걸 원하니..--
키값이 차면 자동으로 넘어가라..

onkeyup이벤트...로 if(... 사용할려다...
보다..  있는걸 사용 = =..

function autoTab(input, len, e)
  {
   var keyCode = (isNN) ? e.which : e.keyCode;
   var filter = (isNN) ? [0, 8, 9] : [0, 8, 9, 16, 17, 18, 37, 38, 39, 40, 46];
   if (input.value.length >= len && !containsElement(filter, keyCode))
   {
    input.value = input.value.slice(0, len);
    input.form[(getIndex(input) + 1) % input.form.length].focus();
   }
   function containsElement(arr, ele)
   {
    var found = false, index = 0;
    while (!found && index < arr.length)
     if (arr[index] == ele)
     found = true;
    else
     index++;
    return found;
   }
   function getIndex(input)
   {
    var index = -1, i = 0, found = false;
    while (i < input.form.length && index == -1)
     if (input.form[i] == input) index = i;
    else i++;
    return index;
   }
   return true;
  }

//임시로
alert(selTemp.options.item(0).innerText +":"+ selectMsg);

//C#비하인단에서 강제로 넣기...
readonly때문에 자주 사용하던... ㅋㅋ..

txtRcvNo.Attributes.Add("onKeyUp","return autoTab(this,8,event);");

Posted by 말없제이
,