Ask a Question related to Dreamweaver AppDev, Design and Development.
-
rix1505 #1
Setting a value from a dataset as a variable in asp.net
My page loads and creates a dataset, and also collects data from the url I
want to compare the data from the url with value from the recordset (i have an
SQL statement that sorts the data to one record, being the lowest in the list
of records) REM Retrieve parameters from the query string Dim m_from
as string = Request('Originator') Dim m_to as string =
Request('Destination') Dim m_body as string = Request('Body') Dim
m_rbid as string = Request('RBID') Dim m_date as string = Request('Date')
Dim m_time as string = Request('Time') REM Just testing by
outputting to page Response.Write('from: ' + m_from + ' ')
Response.Write('to: ' + m_to + ' ') Response.Write('body: ' + m_body + '
') Response.Write('rbid: ' + m_rbid + ' ') Response.Write('date: ' +
m_date + ' ') Response.Write('time: ' + m_time + ' ') REM
Apply logic here REM Compare the incoming bid with the lowest
current bid from the database Dim varLobid = I want to put the
dataset value here, but using DataSet1.FieldValue('Body', container) just
gives an error, saying expected ')' and various other odd error's depending how
i try and write it If m_body < varLobid then Any help greatly appreciated!
rix1505 Guest
-
Need help with setting a variable using xml
So I am trying to import in XML and this is working fine, But once in flash I need to reference this variable in a later script. Here is what I got.... -
converting data from a dataset to a variable
I am currently experimenting with ASP.Net and am struggling to simply manipulate some database data. Using the same methodology as i would for... -
Assigning a table value from a dataset to a variable
I have been trying to do this for some time and have had no success. Now I can spit out something from the table by putting the control <%#... -
Pass Dynamic Variable in MM:DataSet
I've got a stored procedure that returns the value of the @@IDENTITY After Inserting data. I'm Using the Dreamweaver Stored Procedure under .net... -
Setting a variable name with a variable in a loop
Here is the code that bombs: <cfloop index='x' from='1' to='10' step='1'> <cfif #evaluate('form.totalhours#x#')# eq 'r'> <cfset total_hours_#x# =... -
Cirwon #2
Re: Setting a value from a dataset as a variable inasp.net
Originally posted by: rix1505
My page loads and creates a dataset, and also collects data from the url I
want to compare the data from the url with value from the recordset (i have an
SQL statement that sorts the data to one record, being the lowest in the list
of records) REM Retrieve parameters from the query string Dim m_from
as string = Request("Originator") Dim m_to as string =
Request("Destination") Dim m_body as string = Request("Body") Dim
m_rbid as string = Request("RBID") Dim m_date as string = Request("Date")
Dim m_time as string = Request("Time") REM Just testing by
outputting to page Response.Write("from: " + m_from + " ")
Response.Write("to: " + m_to + " ") Response.Write("body: " + m_body + "
") Response.Write("rbid: " + m_rbid + " ") Response.Write("date: " +
m_date + " ") Response.Write("time: " + m_time + " ") REM
Apply logic here REM Compare the incoming bid with the lowest
current bid from the database Dim varLobid = I want to put the
dataset value here, but using DataSet1.FieldValue("Body", container) just
gives an error, saying expected ')' and various other odd error's depending how
i try and write it If m_body < varLobid then Any help greatly appreciated!
Cirwon Guest
-
Cirwon #3
Re: Setting a value from a dataset as a variable inasp.net
Well, I have found a partial answer through trial and error.
You can assign the value to a hidden asp text box and use the on click event
to process your code.
<asp:TextBox ID="txtYEMAIL" Visible="false" runat="server" Text=<%#
dsGETEMAIL.FieldValue("EMAIL", Container) %> />
Unfortunatly I haven't found a way to do this in the page on load event.
Cirwon Guest



Reply With Quote

