By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

ASP Datagrid Problems

P: 1
I am wanting to use POST method for an IDENT ID for people to access database stored documents, and then display it on a page using ASP Datagrid's from Visual Studio 2005 out of a SQL Server 2005 database. What I need is to allow that POST variable to be used in the SQL SELECT statement as seen below. (and yes I know the risks of SQL data injection, will be an internal archive and will address the injection problem later)

<%
dim varIDENT
varIDENT = Request.Form("varIDENT")
If varIDENT <> "" Then
Response.Write(varIDENT)
End If
%>

DataSourceID="SqlDataSource6" EmptyDataText="There are no data records to display." Border="0" Width="100%">
" SelectCommand="SELECT [OVERVIEW] FROM [SUDS_TRD] WHERE [IDENT]='"& varIDENT &"'">


Please help thanks! :)

Sincerely,
Jesse Myer
Jun 22 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.