Thread View: pl.comp.www.server-side
1 messages
1 total messages
Started by Wlodzimierz Matuszewski
Fri, 06 Sep 2013 12:24
Przekazanie adresu IP jako parametr dla procedury MS SQL Server.
Author: Wlodzimierz Matuszewski
Date: Fri, 06 Sep 2013 12:24
Date: Fri, 06 Sep 2013 12:24
30 lines
2387 bytes
2387 bytes
Witam Wszystkich.
To jest mój pierwszwy post na tej grupie.
Mój problem to:
posiadam stronkę z kodem:
--------------------------------------------------------
<asp:SqlDataSource ID="SqlDataSourceLoging" runat="server" ConnectionString="<%$ ConnectionStrings:Stargor %>" SelectCommand="Loging" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="QPassword" Name="Password" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="GridViewTrack" DefaultValue="" Name="SesionASP" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
-------------------------------------------------------
w sekcji poniżej mam parametr procedury i chcę przekazać do niej IP Adres.
<asp:ControlParameter ControlID="........." DefaultValue="........" Name="IP" PropertyName=".........." Type="String" />
jako wynik z poniższego kodu:
<%
Response.Write(Request.ServerVariables("REMOTE_ADDRESS"))
%>
Jak to zrobić. Najlepiej nie korzystając z C# lub VB.
Prosze o pomoc lub wskazówkę.
Włodek
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads