ASP.NET - ASP.NET Webpage error details  ASP.NET - ASP.NET Webpage error details

Asked By Prithivi Rajan
15-Jun-11 02:51 AM

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Tue, 14 Jun 2011 07:05:52 UTC

Message: Object expected
Line: 232
Char: 1
Code: 0
URI: http://192.168.1.10/SRC/FrmSRClogin.aspx

Message: '__nonMSDOMBrowser' is undefined
Line: 30
Char: 5
Code: 0
URI: http://192.168.1.10/SRC/ScriptResource.axd?d=xTENm

  dipa ahuja replied to Prithivi Rajan
15-Jun-11 02:54 AM
Post your code 
  Reena Jain replied to Prithivi Rajan
15-Jun-11 03:17 AM
hi,

might be you are working with a https://bmiutility.bmi.ir/merchantutility.asmx and this error comes because of bad WebResource.axd file response.
Just check the webservice if you have created it or give the reference of updated one.

Hope this will help you
  Prithivi Rajan replied to dipa ahuja
15-Jun-11 03:40 AM
 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FrmSRClogin.aspx.cs" Inherits="FrmSRClogin" EnableSessionState="ReadOnly" %>

<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script type="text/javascript">

function ChkSave()

{

if (document.getElementById('<%=TextBox1.ClientID%>').value == "" && document.getElementById('<%=TextBox3.ClientID%>').value == "") {

alert('User Name And Pwd must Entered');

document.getElementById('<%=TextBox1.ClientID%>').focus();

return false;

}

if (document.getElementById('<%=TextBox1.ClientID%>').value == "" && document.getElementById('<%=TextBox3.ClientID%>').value != "") {

alert('User Name must Entered');

document.getElementById('<%=TextBox1.ClientID%>').focus();

return false;

}

if (document.getElementById('<%=TextBox1.ClientID%>').value != "" && document.getElementById('<%=TextBox3.ClientID%>').value == "") {

alert('Pwd must Entered');

document.getElementById('<%=TextBox3.ClientID%>').focus();

return false;

}

}

 

function CloseMe()

{

window.close();

}

function cancelBack() {

if ((event.keyCode == 8 ||

(event.keyCode == 37 && event.altKey) ||

(event.keyCode == 39 && event.altKey))

&&

(event.srcElement.form == null || event.srcElement.isTextEdit == false)

) {

event.cancelBubble = true;

event.returnValue = false;

}

}

</script>

<script src="JavaScript/RightClickDisable.js" language="javascript" type="text/javascript"></script>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<%-- <style>

<!--

BODY{

cursor:url("mycursor.cur");

}

-->

</style>

<h2 id="fly" align="center" style="font-size: 40px; height: 59px; color: #000099;">Welcome To Shree Ragavendra College $ Have A Good Day!</h2>--%>

<%--<script type="text/javascript">

//Flying Letters script- by Matthias (info@freejavascripts.f2s.com)

// Modified by Twey for efficiency and compatibility

//For this script and more, visit Dynamic Drive: http://www.dynamicdrive.com

//Configure message to display. Use "$" for linebreak

//By default, set to just grab the text from element with ID="fly"

message = document.getElementById("fly").innerHTML; // $ = taking a new line

distance = 50; // pixel(s)

speed = 150; // milliseconds

var txt = "",

num = 0,

num4 = 0,

flyofle = "",

flyofwi = "",

flyofto = "",

fly = document.getElementById("fly");

 

function stfly() {

for (i = 0; i != message.length; i++) {

if (message.charAt(i) != "$")

txt += "<span style='position:relative;visibility:hidden;' id='n" + i + "'>" + message.charAt(i) + "<\/span>";

else

txt += "<br>";

}

fly.innerHTML = txt;

txt = "";

flyofle = fly.offsetLeft;

flyofwi = fly.offsetWidth;

flyofto = fly.offsetTop;

fly2b();

}

function fly2b() {

if (num4 != message.length) {

if (message.charAt(num4) != "$") {

var then = document.getElementById("n" + num4);

then.style.left = flyofle - then.offsetLeft + flyofwi / 2;

then.style.top = flyofto - then.offsetTop + distance;

fly3(then.id, parseInt(then.style.left), parseInt(then.style.left) / 5, parseInt(then.style.top), parseInt(then.style.top) / 5);

}

num4++;

setTimeout("fly2b()", speed);

}

}

function fly3(target, lef2, num2, top2, num3) {

if ((Math.floor(top2) != 0 && Math.floor(top2) != -1) || (Math.floor(lef2) != 0 && Math.floor(lef2) != -1)) {

if (lef2 >= 0)

lef2 -= num2;

else

lef2 += num2 * -1;

if (Math.floor(lef2) != -1) {

document.getElementById(target).style.visibility = "visible";

document.getElementById(target).style.left = Math.floor(lef2);

} else {

document.getElementById(target).style.visibility = "visible";

document.getElementById(target).style.left = Math.floor(lef2 + 1);

}

if (lef2 >= 0)

top2 -= num3

else

top2 += num3 * -1;

if (Math.floor(top2) != -1)

document.getElementById(target).style.top = Math.floor(top2);

else

document.getElementById(target).style.top = Math.floor(top2 + 1);

setTimeout("fly3('" + target + "'," + lef2 + "," + num2 + "," + top2 + "," + num3 + ")", 50)

}

}

stfly()

</script>--%>

<title>Login Page</title>

 

<style type="text/css">

.style1

{

width: 144px;

}

#tbl

{

height: 134px;

width: 447px;

}

</style>

 

</head>

<%-- <script type="text/javascript">

/******************************************

* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)

* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code

* Last updated Nov 9th, 05' by DD. This notice must stay intact for use

******************************************/

//Configure below to change URL path to the snow image

var snowsrc = "Tag/bubble.gif"

// Configure below to change number of snow to render

var no = 30;

// Configure whether snow should disappear after x seconds (0=never):

var hidesnowtime = 0;

// Configure how much snow should drop down before fading ("windowheight" or "pageheight")

var snowdistance = "pageheight";

///////////Stop Config//////////////////////////////////

var ie4up = (document.all) ? 1 : 0;

var ns6up = (document.getElementById && !document.all) ? 1 : 0;

function iecompattest() {

return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body

}

var dx, xp, yp; // coordinate and position variables

var am, stx, sty; // amplitude and step variables

var i, doc_width = 800, doc_height = 600;

if (ns6up) {

doc_width = self.innerWidth;

doc_height = self.innerHeight;

} else if (ie4up) {

doc_width = iecompattest().clientWidth;

doc_height = iecompattest().clientHeight;

}

dx = new Array();

xp = new Array();

yp = new Array();

am = new Array();

stx = new Array();

sty = new Array();

snowsrc = (snowsrc.indexOf("") != -1) ? "Tag/bubble.gif" : snowsrc

for (i = 0; i < no; ++i) {

dx[i] = 0; // set coordinate variables

xp[i] = Math.random() * (doc_width - 50); // set position variables

yp[i] = Math.random() * doc_height;

am[i] = Math.random() * 20; // set amplitude variables

stx[i] = 0.02 + Math.random() / 10; // set step variables

sty[i] = 0.7 + Math.random(); // set step variables

if (ie4up || ns6up) {

if (i == 0) {

document.write("<div id=\"dot" + i + "\" style=\"POSITION: absolute; Z-INDEX: " + i + "; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='" + snowsrc + "' border=\"0\"><\/a><\/div>");

} else {

document.write("<div id=\"dot" + i + "\" style=\"POSITION: absolute; Z-INDEX: " + i + "; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='" + snowsrc + "' border=\"0\"><\/div>");

}

}

}

function snowIE_NS6() { // IE and NS6 main animation function

doc_width = ns6up ? window.innerWidth - 10 : iecompattest().clientWidth - 10;

doc_height = (window.innerHeight && snowdistance == "windowheight") ? window.innerHeight : (ie4up && snowdistance == "windowheight") ? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance == "pageheight") ? iecompattest().scrollHeight : iecompattest().offsetHeight;

for (i = 0; i < no; ++i) { // iterate for every dot

yp[i] += sty[i];

if (yp[i] > doc_height - 50) {

xp[i] = Math.random() * (doc_width - am[i] - 30);

yp[i] = 0;

stx[i] = 0.02 + Math.random() / 10;

sty[i] = 0.7 + Math.random();

}

dx[i] += stx[i];

document.getElementById("dot" + i).style.top = yp[i] + "px";

document.getElementById("dot" + i).style.left = xp[i] + am[i] * Math.sin(dx[i]) + "px";

}

snowtimer = setTimeout("snowIE_NS6()", 10);

}

function hidesnow() {

if (window.snowtimer) clearTimeout(snowtimer)

for (i = 0; i < no; i++) document.getElementById("dot" + i).style.visibility = "hidden"

}

 

if (ie4up || ns6up) {

snowIE_NS6();

if (hidesnowtime > 0)

setTimeout("hidesnow()", hidesnowtime * 1000)

}

</script>--%>

<body background="Tag/bbb.jpg" onkeydown="cancelBack()">

<form id="form1" runat="server">

<div style="height: 600px">

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

 

<table cellpadding="0" cellspacing="0" align="center"

style="height: 252px; width: 30%; margin-top: 137px;">

<tr>

<td align="center">

</td>

<td align="center" >

</td>

<td align="center">

</td>

</tr>

<tr>

<td >

</td>

<td>

 

<table cellpadding="0" cellspacing="0" align="center">

<tr>

<%--<td style="width: 1028px; background-image: url('Image/imagesC.jpg'); height: 44px;">

</td>--%>

<td style="background-image: url('Image/Panellog.jpg'); ">

<img src="Image/images.jpg"

 

style="height: 27px; width: 42px; margin-left: 18px; margin-top: 4px; margin-bottom: 0px;" />

<asp:Label Style=" margin-left:18px; font-size: 20px; font-weight: bold; margin-top: 0px; margin-bottom: 0px;" ID="LblFormName"

runat="server" Width="191px" Font-Names="Arial" ForeColor="White"

Font-Underline="True" Height="27px">LOGIN </asp:Label></td>

 

<%-- <td style="background-image: urlImage/imagesC.jpg); width: 223px; height: 44px;">

</td>--%>

 

</tr>

<tr>

<td>

<asp:Panel ID="ot" runat="server"

BorderWidth="2px" BorderStyle="Solid"

style="margin-left: 0px; margin-top: 0px;" Width="523px"

Height="139px" >

<table runat="server" id="tbl" cellspacing="0" cellpadding="0"

align="center">

<tr>

<td colspan="2">

<asp:ImageButton ID="ImageButton1" runat="server"

ImageUrl="~/Tag/Closeblue.jpg" OnClientClick="CloseMe()" onclick="ImageButton1_Click"

style="margin-left: 392px; margin-top: 0px; margin-bottom: 0px;"

ToolTip="To Close The Browser" />

</td>

</tr>

<tr>

<td class="style1">

<asp:Label ID="Label1" runat="server" Text="User Name" Font-Names="Comic Sans MS"></asp:Label>

<asp:Label ID="Label5" runat="server" Text="*" ForeColor="Red" />

</td>

<td>

<asp:TextBox ID="TextBox1" runat="server" BorderStyle="Solid" BorderWidth="1px"

Width="200px" style="margin-left: 0px" TabIndex="1" ToolTip="User Name"></asp:TextBox>

 

<asp:Label ID="TxtOpen" runat="server" Height="0px" Visible="False" Width="0px"></asp:Label>

<asp:Label ID="TextBox2" runat="server" Height="0px" Visible="False"

Width="0px"></asp:Label>

 

</td>

</tr>

<tr>

<td class="style1">

<asp:Label ID="Label3" runat="server" Text="Password" Font-Names="Comic Sans MS"></asp:Label>

<asp:Label ID="Label2" runat="server" Text="*" ForeColor="Red" />

</td>

<td>

 

<asp:TextBox ID="TextBox3" runat="server" BorderStyle="Solid" BorderWidth="1px"

Width="200px" TextMode="Password" style="margin-left: 0px" TabIndex="2"

ToolTip="password" MaxLength="9"></asp:TextBox>

 

 

<asp:Label ID="Txtclose" runat="server" Height="0px" Visible="False"

Width="0px"></asp:Label>

 

 

</td>

</tr>

<tr>

<td colspan="2">

 

<asp:UpdateProgress ID="UpdateProgress1" runat="server">

<ProgressTemplate>

<div class= "PleaseWait">

<asp:Label ID="lblmsg" runat="server" ForeColor="Red" Text=""></asp:Label>

<asp:Image ID="Image1" runat="server" Height="19px"

ImageUrl="~/Tag/wait.gif" style="margin-left: 99px; margin-top: 1px;"

Width="157px" />

Loading...

</div>

</ProgressTemplate>

</asp:UpdateProgress>

<input id="usr" type="hidden" runat="server" style="width: 0px; height: 0px" />

<input id="stud" type="hidden" runat="server" style="width: 0px; height: 0px" />

<input id="staff" type="hidden" runat="server" style="width: 0px; height: 0px" />

<input id="Menu" type="hidden" runat="server" style="width: 0px; height: 0px" />

</td>

</tr>

<tr>

<td colspan="2">

<div id="Div1" runat="server">

<asp:UpdatePanel runat="server" id="Panel">

<ContentTemplate>

<asp:Button ID="Button1" runat="server" Text="Login" class="flashit" BorderStyle="Solid"

BorderWidth="2px" BackColor="#3333FF" Width="80px"

Font-Bold="True" Font-Names="Arial" ForeColor="White" BorderColor="Black"

OnClientClick=" return ChkSave();" onclick="BtnIN_Click"

Height="22px" ToolTip="Click To Login" TabIndex="3"/>&nbsp;

<asp:Button ID="Button2" runat="server" Text="Clear" class="flashit" BorderStyle="Solid"

BorderWidth="2px" BackColor="#3333FF" Width="80px"

Font-Bold="True" Font-Names="Arial" ForeColor="White"

BorderColor="Black" onclick="BtnOUT_Click" Height="22px"

ToolTip="Click To Clear" TabIndex="4" style="margin-left: 4px" />

 

&nbsp;&nbsp;&nbsp;<asp:Label ID="Label6" runat="server" Font-Bold="True"

Font-Names="Comic Sans MS" Font-Size="Small" ForeColor="#003399"

style="text-transform: uppercase; text-decoration: blink"></asp:Label>

 

</ContentTemplate>

<Triggers>

<asp:PostBackTrigger ControlID="Button2" />

</Triggers>

</asp:UpdatePanel>

</div>

</td>

</tr>

</table>

</asp:Panel>

</td>

</tr>

</table>

</td>

<td>

</td>

</tr>

</table>

</div>

</form>

</body>

<script type="text/javascript" language="JavaScript1.2">

/*

Flashing form element Script- Dynamic Drive (www.dynamicdrive.com)

For full source code, visit http://www.dynamicdrive.com/

This credit MUST stay intact for use

*/

var flashcolor="White"

var flashinterval=1000 //flash interval in miliseconds (1000=1 sec)

var formcollect=document.getElementsByTagName? document.getElementsByTagName("FORM") : document.all? document.all.tags("FORM") : new Array()

var flashcollect=new Array()

for (i=0; i<formcollect.length; i++){

for (e=0; e<formcollect[i].elements.length; e++){

if (formcollect[i].elements[e].className=="flashit")

flashcollect[flashcollect.length]=formcollect[i].elements[e]

}

}

function flashelements(){

for (f=0; f<flashcollect.length; f++){

if (flashcollect[f].style.color=='')

flashcollect[f].style.color=flashcolor

else

flashcollect[f].style.color=""

}

}

if (flashcollect.length>0)

setInterval("flashelements()",flashinterval)

</script>

</html>

  dipa ahuja replied to Prithivi Rajan
15-Jun-11 03:54 AM
Always post the portion of you code in which you are getting error,,, you have posted a long code from which 50% of code is as commented code

Anyways i check you code and its working perfectly .. i got username as password and validations are working fine..

but i think the error is coming from the code of your flash code:

First remove all the code which you have put in comment if its not useful and if you want to create a flash then there are so many software using which you will be able to create than this js code..

any doubt then you can ask.. and next time please post only code where you are getting error and no code of comments


  Riley K replied to Prithivi Rajan
15-Jun-11 04:04 AM
First of all learn how to post a question in forums, check other question how users have fromatted their questions

no one here is going to waste lot of time to review your whole code,

A neat description of error is what gives you a good reply's.
Create New Account
help
Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B in threading? (B) What is the difference between thread and process? Chapter 4: Remoting and Webservices (B)What is an application domain? (B) What is .NET Remoting? (B) Which class does services? (B) Which attribute is used in order that the method can be used as WebService? (A) What are the steps to create a web service and consume it? (A) Do webservice have state? Chapter 5: Caching Concepts (B) What is an application object? (I) what is A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you
faqs on masterpages Hi all, can anybody tell me the FAQs on Masterpages in asp.net. Thanks alot var Hi What are Master Pages in ASP.NET? or What is a Master Page? ASP.NET master pages allow you to create a consistent layout for the pages in your application
in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging enable the trace to true in the line in the html format of the page. %@ Page Language = ”vb” trace = ”true”AutoEventWireup = ”false” Codebehind = ”WebForm1.aspx.vb” Inherits = ”WebApplication2.WebForm1?&gt; 2
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much different from unstrucured ASP and there is no correct way to