Click here to Skip to main content
15,887,676 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dropdown control doesn't always populate Pin
#realJSOP4-Mar-14 3:43
mve#realJSOP4-Mar-14 3:43 
GeneralRe: Dropdown control doesn't always populate Pin
Bernhard Hiller4-Mar-14 22:11
Bernhard Hiller4-Mar-14 22:11 
QuestionASP.net - Webforms - Dynamic controls Pin
tinaclement2-Mar-14 20:56
tinaclement2-Mar-14 20:56 
AnswerRe: ASP.net - Webforms - Dynamic controls Pin
Richard MacCutchan2-Mar-14 22:58
mveRichard MacCutchan2-Mar-14 22:58 
QuestionWindow.open Pin
Zeyad Jalil1-Mar-14 20:15
professionalZeyad Jalil1-Mar-14 20:15 
AnswerRe: Window.open Pin
Kornfeld Eliyahu Peter1-Mar-14 20:43
professionalKornfeld Eliyahu Peter1-Mar-14 20:43 
AnswerRe: Window.open Pin
jkirkerx2-Mar-14 9:19
professionaljkirkerx2-Mar-14 9:19 
QuestionPREVIEW ASP.NET PAGE ON A WEB BROWSER Pin
Member 106347491-Mar-14 0:15
Member 106347491-Mar-14 0:15 
I have developed a web page using asp.net in dream weaver and sql server 2000 but when it comes to displaying the page on a web broswer. it gives the following output. Please help this is my assignment to job a job.
XML
<%@LANGUAGE="VBSCRIPT" AutoEventWireup="true"
CodeBehind="Default.sampl.aspx"
Inherits="WebApplication"
%>
<!--#include file="Connections/asp.asp" -->
<%
Dim MM_editAction
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
  MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
End If

' boolean to abort record edit
Dim MM_abortEdit
MM_abortEdit = false
%>
<%
If (CStr(Request("MM_insert")) = "form1") Then
  If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd

    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_asp_STRING
    MM_editCmd.CommandText = "INSERT INTO dbo.login (username, pass) VALUES (?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 201, 1, 60, Request.Form("username")) ' adLongVarChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 201, 1, 60, Request.Form("pass")) ' adLongVarChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "sampl.asp"
    If (Request.QueryString <> "") Then
      If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0) Then
        MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
      Else
        MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
      End If
    End If
    Response.Redirect(MM_editRedirectUrl)
  End If
End If
%>
<%

Set Command1 = Server.CreateObject ("ADODB.Command")
Command1.ActiveConnection = MM_asp_STRING
Command1.CommandText = "INSERT INTO  ( )  VALUES ( ) "
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()

%>
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows

Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_asp_STRING
Recordset1_cmd.CommandText = "SELECT * FROM dbo.login"
Recordset1_cmd.Prepared = true

Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">

body,td,th {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    color: #30F;
}
a {
    font-family: Georgia, "Times New Roman", Times, serif;
}

</style>
<link rel="stylesheet" title="Disabled for Preview-in-Browser: css.css" type="text/css" />
<style type="text/css">


form {
    font-size: 14px;
    color: #009;
}
body{animation:ease-in-out running;
backface-visibility:visible;
background-image:inherit;
font-family:"Times New Roman", Times, serif;
font-size:14px;
alignment-adjust:central;
border-color:#906;
border-image:auto;
appearance:desktop;
clip:rect(top right bottom left);
}
h1
{ font-family:Tahoma, Geneva, sans-serif;
font: signature;
font-size:large;
}


</style>
</head>

<body>
<a name="ASPIRE" id="ASPIRE"></a>
<div> <h1> THIS IS REMARKABLE STEP </h1></div>
<div> <iframe src="images/icon.fw.png"> </iframe> </div>
<hr align="center" size="12" noshade="noshade" color="#CC3300" />
<form name="login" >
<br />
<form action="<%=MM_editAction%>" method="post" name="form1" id="form1">
  <table align="center">
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">Username:</td>
      <td><input type="text" name="username" value="" size="32" /></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">Pass:</td>
      <td><input type="text" name="pass" value="" size="32" /></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">&nbsp;</td>
      <td><input type="submit" value="SUBMIT" /></td>
    </tr>
  </table>
  <input type="hidden" name="MM_insert" value="form1" />
</form>
<p>&nbsp;
</p>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

SuggestionRe: PREVIEW ASP.NET PAGE ON A WEB BROWSER Pin
Richard Deeming3-Mar-14 0:50
mveRichard Deeming3-Mar-14 0:50 
QuestionMVC4 - WebMatrix.WebData.SimpleMembershipProvider vs System.Web.Security.MembershipProvider Pin
Swab.Jat27-Feb-14 17:17
Swab.Jat27-Feb-14 17:17 
QuestionWCF error, System.ServiceModel.CommunicationException the maximum message size quota for incoming messages has been exceeded Pin
littleGreenDude27-Feb-14 4:24
littleGreenDude27-Feb-14 4:24 
QuestionJQuery to get sum of testboxes values of each row in Repeater Control Pin
indian14326-Feb-14 11:30
indian14326-Feb-14 11:30 
AnswerRe: JQuery to get sum of testboxes values of each row in Repeater Control Pin
Ahmed Bensaid26-Feb-14 23:06
professionalAhmed Bensaid26-Feb-14 23:06 
GeneralRe: JQuery to get sum of testboxes values of each row in Repeater Control Pin
indian14327-Feb-14 5:50
indian14327-Feb-14 5:50 
QuestionClient side pagination is not working in jqGrid Pin
manishchourasia200026-Feb-14 1:16
professionalmanishchourasia200026-Feb-14 1:16 
AnswerRe: Client side pagination is not working in jqGrid Pin
Ahmed Bensaid26-Feb-14 2:33
professionalAhmed Bensaid26-Feb-14 2:33 
QuestionASP.NET Data Grid and Data List Click Event Pin
sivagiri126-Feb-14 1:04
sivagiri126-Feb-14 1:04 
AnswerRe: ASP.NET Data Grid and Data List Click Event Pin
Ahmed Bensaid26-Feb-14 2:30
professionalAhmed Bensaid26-Feb-14 2:30 
GeneralRe: ASP.NET Data Grid and Data List Click Event Pin
sivagiri126-Feb-14 17:43
sivagiri126-Feb-14 17:43 
SuggestionRe: ASP.NET Data Grid and Data List Click Event Pin
Ahmed Bensaid26-Feb-14 21:39
professionalAhmed Bensaid26-Feb-14 21:39 
Questionpassing value betwen pages Pin
tarzn24-Feb-14 5:47
tarzn24-Feb-14 5:47 
AnswerRe: passing value betwen pages Pin
Richard Deeming24-Feb-14 9:04
mveRichard Deeming24-Feb-14 9:04 
Questioncrystal report Pin
Member 1062089124-Feb-14 1:10
Member 1062089124-Feb-14 1:10 
AnswerRe: crystal report Pin
thatraja24-Feb-14 4:06
professionalthatraja24-Feb-14 4:06 
QuestionHow to develop a Website Pin
damiend12323-Feb-14 19:36
damiend12323-Feb-14 19: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.