Click here to Skip to main content
15,891,774 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTemprory GridView to Database Pin
Rinki Mukheraji20-Nov-07 21:44
Rinki Mukheraji20-Nov-07 21:44 
AnswerRe: Temprory GridView to Database Pin
John-ph20-Nov-07 21:47
John-ph20-Nov-07 21:47 
AnswerRe: Temprory GridView to Database Pin
Sun Rays20-Nov-07 21:47
Sun Rays20-Nov-07 21:47 
GeneralRe: Temprory GridView to Database Pin
Rinki Mukheraji20-Nov-07 22:01
Rinki Mukheraji20-Nov-07 22:01 
GeneralRe: Temprory GridView to Database Pin
N a v a n e e t h20-Nov-07 22:07
N a v a n e e t h20-Nov-07 22:07 
GeneralRe: Temprory GridView to Database Pin
Rinki Mukheraji20-Nov-07 22:13
Rinki Mukheraji20-Nov-07 22:13 
GeneralRe: Temprory GridView to Database Pin
N a v a n e e t h20-Nov-07 22:15
N a v a n e e t h20-Nov-07 22:15 
QuestionASP data base data insertion Pin
JonCox20-Nov-07 21:17
JonCox20-Nov-07 21:17 
Hi I am experimenting with VBScript and SQL and am unsure if the following code will actually work. I do not have access to IIS at present so I am unable to test it. I would be greatfull if anyone could just take a brief look at the code to see if the syntax is correct. Thanks

<%@Language = "VBScript" %>
<%Option Explicit%>
<!--#include virtual="/advobs.inc"-->
<%
Dim newDate
Dim newTime
Dim newMessage
Dim objConn
Dim sqlInsert
Dim objRecordSet

Set objConn = Server.CreatObject("ADODB.Connection")
objConn.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)};"&_"DBQ=C:/inetpub/wwwroot/feedBack.mdb"
objConn.Open

newDate = Date()
newTime = Time()
newMessage = request.form("strMessage")

if newMessage <> "" then
sqlInsert="INSERT INTO tblMessages(date,time,message) VALUES(newDate,newTime,newMessage)"
end if

Set objRecordSet=Server.CreateObject("ADODB.Recordset")
objRecordSet.Open "tblMessages", objConn,,,adCmdTable

Do while Not objRecordSet.EOF
Response.Write"<B>" & objRs ("time") & "</B><BR>"
Response.Write objRs("date") & "<BR>"
Response.Write objRs ("message") & "<BR>"
Response.Write "<p><hr></p>"

objRecordSet.MoveNext
Loop

objRecordSet.Close
Set objRecordSet = Nothing

objConn.Close
Set objConn = Nothing.
%>
AnswerRe: ASP data base data insertion Pin
John-ph20-Nov-07 21:21
John-ph20-Nov-07 21:21 
GeneralRe: ASP data base data insertion Pin
JonCox21-Nov-07 12:18
JonCox21-Nov-07 12:18 
QuestionHow to Retrieve the Structure of DataBase Pin
aswini20-Nov-07 20:49
aswini20-Nov-07 20:49 
AnswerRe: How to Retrieve the Structure of DataBase Pin
Michael Sync20-Nov-07 21:04
Michael Sync20-Nov-07 21:04 
AnswerRe: How to Retrieve the Structure of DataBase Pin
John-ph20-Nov-07 21:13
John-ph20-Nov-07 21:13 
QuestionAutoComplete TextBox Pin
kirthikirthi20-Nov-07 20:05
kirthikirthi20-Nov-07 20:05 
AnswerRe: AutoComplete TextBox Pin
Michael Sync20-Nov-07 20:10
Michael Sync20-Nov-07 20:10 
GeneralRe: AutoComplete TextBox Pin
kirthikirthi20-Nov-07 20:34
kirthikirthi20-Nov-07 20:34 
GeneralRe: AutoComplete TextBox Pin
Michael Sync20-Nov-07 20:45
Michael Sync20-Nov-07 20:45 
GeneralRe: AutoComplete TextBox Pin
kirthikirthi20-Nov-07 21:13
kirthikirthi20-Nov-07 21:13 
Questionproblem with rtf file downloading(plz solve this problem) Pin
lakshmichawala20-Nov-07 19:48
lakshmichawala20-Nov-07 19:48 
QuestionError Message 401.3 Pin
Reddy Prakash20-Nov-07 19:44
Reddy Prakash20-Nov-07 19:44 
AnswerRe: Error Message 401.3 Pin
Sun Rays20-Nov-07 21:39
Sun Rays20-Nov-07 21:39 
QuestionImages not retriving from Db Pin
Krishna Varadharajan20-Nov-07 19:41
Krishna Varadharajan20-Nov-07 19:41 
AnswerRe: Images not retriving from Db Pin
Michael Sync20-Nov-07 19:43
Michael Sync20-Nov-07 19:43 
AnswerRe: Images not retriving from Db Pin
John-ph20-Nov-07 19:59
John-ph20-Nov-07 19:59 
GeneralRe: Images not retriving from Db Pin
Krishna Varadharajan20-Nov-07 21:47
Krishna Varadharajan20-Nov-07 21:47 

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.