Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
baz0hara #1
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 asp in dreamweaver i have written
the following code:<%
<%
Dim dtNow As string
dtNow = ds_news.FieldValue("Date", Container)
%>
However, i now receive an error saying that "container" is not defined. Can
someone help me out here? where am i going wrong? I have purchased an asp.net
book but it likes to push the separation of the server side code and the design
code which does not help me.
I am faced with a scenario where my aspx page is showing the date as
10/27/2005 00:00:00 and i want to change the format, but i cant even convert
the database data to a variable!
How should i go about this problem?
baz0hara Guest
-
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 <%#... -
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... -
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... -
Typed DataSet and converting types
Hi there! I've met strange behavior in VS 2003: I created Web service with web method which returns typed DataSet with some fields of "date"... -
[imagick] converting to variable instead of file
hi all, With imagick_writeimage() function, is it possible to send the image to a variable instead of dumping it to a file or to the client... -
baz0hara #2
Re: converting data from a dataset to a variable
I have done what was needed by creating the below function. Can you only
manipulate data through functions in ASP.Net?
Function dateFormat (dtDateBeg As DateTime) As String
dtDateBeg = DateTime.Now
return dtDateBeg.ToString("MMM dd, yyyy")
End Function
<%# dateFormat(ds_news.FieldValue("Date", Container)) %>
baz0hara Guest



Reply With Quote

