Google Answers Logo
View Question
 
Q: Extremely simple ASP.net/MSSQL question - turning field into variable ( No Answer,   1 Comment )
Question  
Subject: Extremely simple ASP.net/MSSQL question - turning field into variable
Category: Computers > Programming
Asked by: angelsarmiento-ga
List Price: $14.00
Posted: 07 Aug 2006 09:48 PDT
Expires: 08 Aug 2006 23:52 PDT
Question ID: 753444
This is a (simple, 5 minute) ASP.net 2.0/MSSQL 2005 question.  I'd
prefer VB code but can do with C# if it's strictly copy-paste.

I've got a table in a database with a column called "exchangeRate".
Supposedly, the aspx form will fetch the first value of the field on
the table, when ordered by DESC period, and will multiply it times the
value input on a textbox by the user. It will then show the result and
thus modify the EURcash and USDcash values for this user's ID at
another table.
I've already got the following SqlDataSource and have tried to do it
with a variety of methods, but the fact is I'm completely lost and
think most approaches I've tried are terribly wrong.

< asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="< %$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [exchangeRate] FROM [market] ORDER BY [stage]
DESC">< /asp:SqlDataSource>

As an answer, I'd appreciate the code of a whole ASPX page that
includes both textboxes and connections to the database tables as
specified above, of course nothing fancy, but something that already
works so I can analyse it.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Extremely simple ASP.net/MSSQL question - turning field into variable
From: bikashdangol-ga on 08 Aug 2006 03:25 PDT
 
can u please describe the table(s) you r using and the UI format you want.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy