CAFE

ASP.NET 질문

Re:이렇게는 못하나요?

작성자심재운|작성시간07.09.07|조회수54 목록 댓글 0

응용해 보시기 바랍니다.

 

 

   <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT * FROM [test] WHERE ([TEST_ID] = @TEST_ID)">
            <SelectParameters>
                <asp:QueryStringParameter Name="TEST_ID" QueryStringField="id" Type="Object" />
            </SelectParameters>
        </asp:SqlDataSource>


그 이외의 파라미터 관련 내용입니다.

ControlParameter :  A parameter that can be used to bind to a control's property or method return value.
 
CookieParameter :  A parameter that can be used to bind to the value of a cookie.
 
FormParameter :  A parameter that can be used to bind to an attribute of the current Web Forms page.
 
QueryStringParameter :  A parameter that can be used to bind to a value passed to a Web Forms page on a query string.
 
SessionParameter : A parameter that can be used to bind to the value of a session variable.
 
ProfileParameter : A parameter that can be used to bind to the value of an ASP.NET Profile property.
 


cs 단에서 한다면.???

 

SqlDataSource1.SelectCommand = "Select * from notes where ID=" + Request.QueryString["ID"];

다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
맨위로

카페 검색

카페 검색어 입력폼