Click here to Skip to main content
15,897,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to increase .net application performance Pin
Richard Deeming6-Jun-14 1:01
mveRichard Deeming6-Jun-14 1:01 
AnswerRe: How to increase .net application performance Pin
thatraja6-Jun-14 9:58
professionalthatraja6-Jun-14 9:58 
Question'Submit' button related errors Pin
Member 87616675-Jun-14 14:26
Member 87616675-Jun-14 14:26 
AnswerRe: 'Submit' button related errors Pin
Richard Deeming6-Jun-14 0:59
mveRichard Deeming6-Jun-14 0:59 
GeneralRe: 'Submit' button related errors Pin
Member 87616676-Jun-14 6:02
Member 87616676-Jun-14 6:02 
GeneralRe: 'Submit' button related errors Pin
Richard Deeming6-Jun-14 7:33
mveRichard Deeming6-Jun-14 7:33 
GeneralRe: 'Submit' button related errors Pin
Member 87616676-Jun-14 7:43
Member 87616676-Jun-14 7:43 
QuestionBeginner: using update_demo.asp - Datatype Mismatch Error Pin
Istteffanny Isloure Araujo4-Jun-14 22:49
Istteffanny Isloure Araujo4-Jun-14 22:49 
XML
<html>
<body>

<h2>Update Record</h2>
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"

cid=Request.Form("customerID")

if Request.form("companyname")="" then
  set rs=Server.CreateObject("ADODB.Recordset")
  rs.open "SELECT * FROM customers WHERE customerID='" & cid & "'",conn
  %>
  <form method="post" action="demo_update.asp">
  <table>
  <%for each x in rs.Fields%>
  <tr>
  <td><%=x.name%></td>
  <td><input name="<%=x.name%>" value="<%=x.value%>"></td>
  <%next%>
  </tr>
  </table>
  <br><br>
  <input type="submit" value="Update record">
  </form>
<%
else
  sql="UPDATE customers SET "
  sql=sql & "companyname='" & Request.Form("companyname") & "',"
  sql=sql & "contactname='" & Request.Form("contactname") & "',"
  sql=sql & "address='" & Request.Form("address") & "',"
  sql=sql & "city='" & Request.Form("city") & "',"
  sql=sql & "postalcode='" & Request.Form("postalcode") & "',"
  sql=sql & "country='" & Request.Form("country") & "'"
  sql=sql & " WHERE customerID='" & cid & "'"
  on error resume next
  conn.Execute sql
  if err<>0 then
    response.write("No update permissions!")
  else
    response.write("Record " & cid & " was updated!")
  end if
end if
conn.close
%>

</body>
</html>


The code above won't work, I tried removing the ' around cid and gave me other errors. Does anybody see my error? Thank you guys. Frown | :-(
AnswerRe: Beginner: using update_demo.asp - Datatype Mismatch Error Pin
thatraja4-Jun-14 23:52
professionalthatraja4-Jun-14 23:52 
QuestionUnable to close a modal pop up after opening an pdf document Pin
aditya kiran maroju4-Jun-14 18:36
aditya kiran maroju4-Jun-14 18:36 
QuestionRe: Unable to close a modal pop up after opening an pdf document Pin
Vasudevan Deepak Kumar13-Jun-14 2:35
Vasudevan Deepak Kumar13-Jun-14 2:35 
Questionhighlight main menu item of current page. Also highlight when sub menu item is selected through javascript in ASP.net Pin
hilbiazhar4-Jun-14 2:41
hilbiazhar4-Jun-14 2:41 
Questionkinect with web Pin
vinayak.ghanti3-Jun-14 20:42
professionalvinayak.ghanti3-Jun-14 20:42 
AnswerRe: kinect with web Pin
Richard MacCutchan3-Jun-14 22:04
mveRichard MacCutchan3-Jun-14 22:04 
QuestionRepeater Control with show and hide boxes Pin
indian1433-Jun-14 10:41
indian1433-Jun-14 10:41 
AnswerRe: Repeater Control with show and hide boxes Pin
DamithSL3-Jun-14 16:47
professionalDamithSL3-Jun-14 16:47 
GeneralRe: Repeater Control with show and hide boxes Pin
indian1435-Jun-14 7:14
indian1435-Jun-14 7:14 
QuestionBeginner to Visual Studio Pin
Member 87616672-Jun-14 13:31
Member 87616672-Jun-14 13:31 
AnswerRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 1:20
mveRichard Deeming3-Jun-14 1:20 
GeneralRe: Beginner to Visual Studio Pin
Member 87616673-Jun-14 2:14
Member 87616673-Jun-14 2:14 
GeneralRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 2:49
mveRichard Deeming3-Jun-14 2:49 
GeneralRe: Beginner to Visual Studio Pin
Member 87616673-Jun-14 5:07
Member 87616673-Jun-14 5:07 
GeneralRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 5:45
mveRichard Deeming3-Jun-14 5:45 
GeneralRe: Beginner to Visual Studio Pin
Member 87616673-Jun-14 6:14
Member 87616673-Jun-14 6:14 
GeneralRe: Beginner to Visual Studio Pin
Richard Deeming3-Jun-14 6:36
mveRichard Deeming3-Jun-14 6:36 

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.