Click here to Skip to main content
15,890,123 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Anyone who knows how to read error? Pin
Suresh Pirsquare22-Aug-06 0:35
Suresh Pirsquare22-Aug-06 0:35 
GeneralRe: Anyone who knows how to read error? Pin
blurMember22-Aug-06 7:57
blurMember22-Aug-06 7:57 
QuestionHow to convert datagrid'data into dataset ? Pin
cheeken2u21-Aug-06 17:25
cheeken2u21-Aug-06 17:25 
AnswerRe: How to convert datagrid'data into dataset ? Pin
Navi1521-Aug-06 23:05
Navi1521-Aug-06 23:05 
QuestionEvent firing Pin
kalyanPaladugu21-Aug-06 13:15
kalyanPaladugu21-Aug-06 13:15 
AnswerRe: Event firing Pin
enjoycrack21-Aug-06 14:03
enjoycrack21-Aug-06 14:03 
QuestionASP.Net Configuration - website administration tool external access Pin
cdengler21-Aug-06 11:45
cdengler21-Aug-06 11:45 
QuestionDatagrid SQL Select Parameter Problem [modified] Pin
Soot21-Aug-06 9:55
Soot21-Aug-06 9:55 
Ok first, I'll outline my project. It is a web application made to search and display records of archived technical documents. What I have right now is a page that uses datagrids (via drag and drop from Visual Studio 2005) to display columns of data from my SQL Test server.

What I need now is a way to create a simple form text box and create and pass a variable to the SELECT statement within the datagrids. All my attempts at this thus far, using both ASP and C# and MSDN knowledgebase, have ended in frustration.

Here is the code of the datagrid:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1" EmptyDataText="There are no data records to display.">
<Columns>
<asp:BoundField DataField="OVERVIEW" HeaderText=" " SortExpression="OVERVIEW" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="
<%ConnectionStrings:trdConnectionString2 %>"
ProviderName="<%$ ConnectionStrings:trdConnectionString2.ProviderName %>"
SelectCommand="SELECT [OVERVIEW] FROM [SUDS_TRD] WHERE [IDENT]='1'">
</asp:SqlDataSource>

What I need to do is where it says [IDENT]='1', is have that "1" be a parameter passed from an HTML form, perhaps looking like this WHERE [IDENT]='"% strIDENT %"', yet I do not know how to pass a parameter from an HTML form into that SELECT statement. Any help would be great as this is a problem holding up my project.

To reiterate, I need to:
A. create an html form text box
B. pass that textbox as a variable
C. place that variable into the SELECT statement for the ASP datagrid.

Any help would be great, example code, whatever it takes; the simpler the better =) Please just don't send me to MSDN's Datagrid Knowledge Base page as 1/2 the stuff there doesn't even work =[.

Thanks for any help in advance!

Jesse Myse
jessemyer06@aol.com


-- modified at 15:55 Monday 21st August, 2006
AnswerRe: Datagrid SQL Select Parameter Problem Pin
Ramasubramaniam21-Aug-06 10:42
Ramasubramaniam21-Aug-06 10:42 
QuestionHow to handle two checkBox in gridview ? Pin
Hussein Madani Ghomi21-Aug-06 9:43
Hussein Madani Ghomi21-Aug-06 9:43 
AnswerRe: How to handle two checkBox in gridview ? Pin
Grapes-R-Fun21-Aug-06 15:36
Grapes-R-Fun21-Aug-06 15:36 
GeneralRe: How to handle two checkBox in gridview ? Pin
Hussein Madani Ghomi22-Aug-06 3:11
Hussein Madani Ghomi22-Aug-06 3:11 
AnswerRe: How to handle two checkBox in gridview ? Pin
_AK_21-Aug-06 20:10
_AK_21-Aug-06 20:10 
QuestionThat annoying 'page has expired' Pin
Grapes-R-Fun21-Aug-06 9:43
Grapes-R-Fun21-Aug-06 9:43 
QuestionPreferred method of displaying customer information? Pin
Solly7421-Aug-06 8:59
Solly7421-Aug-06 8:59 
AnswerRe: Preferred method of displaying customer information? Pin
Colin Angus Mackay21-Aug-06 9:04
Colin Angus Mackay21-Aug-06 9:04 
GeneralRe: Preferred method of displaying customer information? Pin
Solly7421-Aug-06 9:24
Solly7421-Aug-06 9:24 
QuestionGridView Column Removal Using CheckboxList Pin
GaryT8021-Aug-06 8:54
GaryT8021-Aug-06 8:54 
AnswerRe: GridView Column Removal Using CheckboxList Pin
GaryT8021-Aug-06 12:04
GaryT8021-Aug-06 12:04 
QuestionTotally confused about updating the database - asp.net & vb.net Pin
digsy_21-Aug-06 8:44
digsy_21-Aug-06 8:44 
AnswerRe: Totally confused about updating the database - asp.net & vb.net Pin
Ramasubramaniam22-Aug-06 5:41
Ramasubramaniam22-Aug-06 5:41 
GeneralRe: Totally confused about updating the database - asp.net & vb.net Pin
digsy_22-Aug-06 7:49
digsy_22-Aug-06 7:49 
Questionrange in excel workbook Pin
playout21-Aug-06 8:14
playout21-Aug-06 8:14 
AnswerRe: range in excel workbook Pin
Mike Ellison21-Aug-06 8:33
Mike Ellison21-Aug-06 8:33 
GeneralRe: range in excel workbook Pin
playout21-Aug-06 20:46
playout21-Aug-06 20:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.