943,728 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 4954
  • ASP.NET RSS
Mar 7th, 2007
0

error on page!! Cannot solve!!Help

Expand Post »
i am using vs.net 2003. I have do the delete function in the datagrid. Bu the problem is when i run in IE, the "Error on page" msg will occur the the bottom of IE when i click "delete". Please help me....

below is my is the print screen for the error:

http://www.2and2.net/files/45eee0ef8c577.jpg

Below is my coding:
aspx:
ASP.NET Syntax (Toggle Plain Text)
  1. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="AdminAddComment.aspx.vb" Inherits="Ebook.AdminAddComment"%>
  2. <%@ Register TagPrefix="ASPNETE_BOOK" TagName="header" src="header.ascx" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <HTML>
  5. <HEAD>
  6. <TITLE>Admin Add Comment</TITLE>
  7. <META http-equiv="Content-Type" content="text/html; charset=gb2312">
  8. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  9. <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
  10. <meta content="JavaScript" name="vs_defaultClientScript">
  11. <meta content="<a rel="nofollow" href="http://schemas.microsoft.com/intellisense/ie5" target="_blank">http://schemas.microsoft.com/intellisense/ie5</a>" name="vs_targetSchema">
  12. </HEAD>
  13. <body>
  14. <ASPNETE_BOOK:HEADER id="header" runat="server" NAME="header"></ASPNETE_BOOK:HEADER>
  15. <table cellSpacing="0" cellPadding="0" width="805" bgColor="#f2eef5" border="1">
  16. <TBODY>
  17. <tr>
  18. </tr>
  19. <tr>
  20. <td>
  21. <form id="viewAns" method="post" runat="server">
  22. <TABLE cellSpacing="0" cellPadding="8" width="805" bgColor="#f2eef5" border="0">
  23. <TR>
  24. <TD width="805" height="15"><FONT size="3">
  25. <P><FONT size="3"><asp:imagebutton id="ImageButton1" runat="server" ImageUrl="<a rel="nofollow" href="file:///C:\Inetpub\wwwroot\ebook\Pic\Home1.gif" target="_blank">file:///C:\Inetpub\wwwroot\ebook\Pic\Home1.gif</a>"
  26. Width="96px"></asp:imagebutton>
  27. <asp:HyperLink id="HyperLink3" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink>
  28. <asp:HyperLink id="HyperLink4" runat="server" ImageUrl="<a rel="nofollow" href="file:///C:\Inetpub\wwwroot\ebook\Pic\searchbook1.gif" target="_blank">file:///C:\Inetpub\wwwroot\ebook\Pic\searchbook1.gif</a>"
  29. NavigateUrl="SearchBook.aspx">HyperLink</asp:HyperLink>
  30. <asp:HyperLink id="HyperLink5" runat="server" ImageUrl="<a rel="nofollow" href="file:///C:\Inetpub\wwwroot\ebook\Pic\viewnotice1.gif" target="_blank">file:///C:\Inetpub\wwwroot\ebook\Pic\viewnotice1.gif</a>"
  31. NavigateUrl="ViewNotice.aspx">HyperLink</asp:HyperLink>
  32. <asp:HyperLink id="HyperLink6" runat="server" ImageUrl="<a rel="nofollow" href="file:///C:\Inetpub\wwwroot\ebook\Pic\deletebook1.gif" target="_blank">file:///C:\Inetpub\wwwroot\ebook\Pic\deletebook1.gif</a>"
  33. NavigateUrl="DeleteBook.aspx">HyperLink</asp:HyperLink>
  34. <asp:ImageButton id="ImageButton2" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton>
  35. <asp:ImageButton id="ImageButton3" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton></FONT></P">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton></FONT></P>
  36. </FONT>
  37. </TD>
  38. </TR>
  39. </TABLE>
  40. <TABLE cellSpacing="1" cellPadding="4" width="805" border="0">
  41. <!--DWLayoutTable-->
  42. <TR>
  43. <TD width="805" bgColor="#ccffff" height="25"><FONT size="3">
  44. <P><FONT size="3">&nbsp;
  45. <asp:label id="lblWelcome" runat="server" Width="232px" Font-Size="X-Small" Font-Names="Time news roman"
  46. Font-Bold="True"></asp:label>User Type:
  47. <asp:label id="Labelutype" runat="server" Width="120px"></asp:label></FONT></P>
  48. </FONT>
  49. </TD>
  50. </TR>
  51. </TABLE>
  52. <TABLE cellSpacing="0" cellPadding="0" width="705" align="center" border="0"> <!--DWLayoutTable-->
  53. <TBODY>
  54. <TR>
  55. <TD style="HEIGHT: 19px" align="center" width="705" height="19"><font size="4"><asp:label id="msg" runat="server" Width="517px" Font-Names="times new roman" ForeColor="#ff0033"></asp:label></font></TD>
  56. </TR>
  57. <tr>
  58. <td align="center" width="705" height="65"><asp:datagrid id="comment" runat="server" Width="705px" Font-Size="X-Small" Font-Names="times new roman"
  59. AllowPaging="True" OnPageIndexChanged="newPage" PageSize="20" BorderColor="LightGray" AutoGenerateColumns="False" CellPadding="4"
  60. Font-Name="times new roman" HorizontalAlign="Center" BackColor="WhiteSmoke">
  61. <AlternatingItemStyle Font-Size="X-Small" Font-Names="Times New Roman" BackColor="Transparent"></AlternatingItemStyle>
  62. <HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="White" BackColor="MediumOrchid"></HeaderStyle>
  63. <Columns>
  64. <asp:BoundColumn Visible="False" DataField="Comment"></asp:BoundColumn>
  65. <asp:TemplateColumn>
  66. <ItemTemplate>
  67. <table width="260">
  68. <tr>
  69. <td>Post By:</td>
  70. <td><%# Container.DataItem("PostBy")%></td>
  71. </tr>
  72. <tr>
  73. <td>Last Post:</td>
  74. <td><%# Container.DataItem("PostDate")%></td>
  75. </tr>
  76. </table>
  77. </ItemTemplate>
  78. </asp:TemplateColumn>
  79. <asp:BoundColumn DataField="Comment" HeaderText="Comment">
  80. <ItemStyle Width="495px"></ItemStyle>
  81. </asp:BoundColumn>
  82. <asp:TemplateColumn HeaderText="">
  83. <ItemTemplate>
  84. <asp:HyperLink runat="server" ID="Hyperlink1" Text=Edit NavigateUrl='<%# "admineditcomment.aspx?BookId=" & _
  85. Container.DataItem("BookId")& _
  86. "&CommentId=" & Container.DataItem("CommentId")%>' />
  87. </ItemTemplate>
  88. </asp:TemplateColumn>
  89. <asp:BoundColumn Visible="False" DataField="CommentId"></asp:BoundColumn>
  90. <asp:ButtonColumn Text="Delete" CommandName="Delete" HeaderText="Delete">
  91. <HeaderStyle Wrap="False"></HeaderStyle>
  92. <ItemStyle Wrap="False" Width="80px"></ItemStyle>
  93. </asp:ButtonColumn>
  94. </Columns>
  95. <PagerStyle HorizontalAlign="Left" ForeColor="White" BackColor="Thistle" Mode="NumericPages"></PagerStyle>
  96. </asp:datagrid></td>
  97. </tr>
  98. </TBODY>
  99. </TABLE>
  100. <BR>
  101. <table width="705" align="center" border="1">
  102. <TBODY>
  103. <tr>
  104. <td>Add Comment:</td>
  105. <td><asp:textbox id="TextComment" runat="server" Width="500px" BorderColor="Silver" Height="100px"
  106. MaxLength="50" TextMode="MultiLine"></asp:textbox></td>
  107. </tr>
  108. <tr>
  109. <td align="center" colSpan="2"><INPUT style="WIDTH: 55px; HEIGHT: 25px" type="reset" value="Reset">
  110. <asp:button id="submit" runat="server" Height="26px" Text="Submit"></asp:button></td>
  111. </tr>
  112. </TBODY>
  113. </table>
  114. </form>
  115. </td>
  116. </tr>
  117. </TBODY>
  118. </table>
  119. </body>
  120. </HTML>
  121.  
  122.  
  123. aspx.vb:
  124. Imports System.Data
  125. Imports System.Data.SqlClient
  126.  
  127. Public Class AdminAddComment
  128. Inherits System.Web.UI.Page
  129. #Region " Web Form Designer Generated Code "
  130. 'This call is required by the Web Form Designer.
  131. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  132. End Sub
  133. Protected WithEvents lblWelcome As System.Web.UI.WebControls.Label
  134. Protected WithEvents msg As System.Web.UI.WebControls.Label
  135. Protected WithEvents comment As System.Web.UI.WebControls.DataGrid
  136. Protected WithEvents TextComment As System.Web.UI.WebControls.TextBox
  137. Protected WithEvents submit As System.Web.UI.WebControls.Button
  138. Protected WithEvents viewAns As System.Web.UI.HtmlControls.HtmlForm
  139. Protected WithEvents Labelutype As System.Web.UI.WebControls.Label
  140. Protected WithEvents ImageButton1 As System.Web.UI.WebControls.ImageButton
  141. Protected WithEvents ImageButton2 As System.Web.UI.WebControls.ImageButton
  142. Protected WithEvents HyperLink6 As System.Web.UI.WebControls.HyperLink
  143. Protected WithEvents HyperLink5 As System.Web.UI.WebControls.HyperLink
  144. Protected WithEvents HyperLink4 As System.Web.UI.WebControls.HyperLink
  145. Protected WithEvents HyperLink3 As System.Web.UI.WebControls.HyperLink
  146. Protected WithEvents ImageButton3 As System.Web.UI.WebControls.ImageButton
  147. 'NOTE: The following placeholder declaration is required by the Web Form Designer.
  148. 'Do not delete or move it.
  149. Private designerPlaceholderDeclaration As System.Object
  150. Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
  151. 'CODEGEN: This method call is required by the Web Form Designer
  152. 'Do not modify it using the code editor.
  153. InitializeComponent()
  154. End Sub
  155. #End Region
  156. Dim strID As String
  157. Dim cID As String
  158. Dim strC As String
  159. Dim MyConnection As SqlConnection = New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings("DBConnection"))
  160. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  161. 'Put user code to initialize the page here
  162. lblWelcome.Text = "Welcome," & Session("sesName")
  163. Labelutype.Text = Session("sesUType")
  164. strID = CStr(Request.QueryString("BookId"))
  165. cID = CStr(Request.QueryString("CommentId"))
  166. If Not Page.IsPostBack Then
  167. bindComment()
  168. End If
  169. End Sub
  170. Sub bindComment()
  171. Dim da As SqlDataAdapter
  172. Dim ds As DataSet
  173.  
  174. Dim strselect As String = "SELECT * FROM Comment WHERE BookId='" & _
  175. strID & "' order by PostDate asc"
  176. da = New SqlDataAdapter(strselect, MyConnection)
  177. ds = New DataSet
  178. da.Fill(ds, "Comment")
  179. If ds.Tables("Comment").Rows.Count = 0 Then
  180. msg.Text = "No Comment! "
  181. msg.Visible = True
  182. End If
  183. 'bind datagrid
  184. comment.DataSource = ds.Tables("Comment").DefaultView
  185. comment.DataBind()
  186. End Sub
  187.  
  188. Private Sub submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submit.Click
  189. Dim strInsert As String
  190. Dim cmdInsert As SqlCommand
  191. strInsert = "INSERT INTO Comment(MemberId,UserType,BookId,Comment,PostBy,PostDate) values (@MemberId, @UserType, @BookId, @Comment, @PostBy, @PostDate)"
  192. cmdInsert = New SqlCommand(strInsert, MyConnection)
  193.  
  194. cmdInsert.Parameters.Add(New SqlParameter("@MemberId", SqlDbType.Int, 4))
  195. cmdInsert.Parameters("@MemberId").Value = Session("SESMemberId")
  196. cmdInsert.Parameters.Add(New SqlParameter("@UserType", SqlDbType.Char, 10))
  197. cmdInsert.Parameters("@UserType").Value = Session("sesUType")
  198. cmdInsert.Parameters.Add(New SqlParameter("@BookId", SqlDbType.Int, 4))
  199. cmdInsert.Parameters("@BookId").Value = Request.QueryString("BookId")
  200. cmdInsert.Parameters.Add(New SqlParameter("@Comment", SqlDbType.VarChar, 50))
  201. cmdInsert.Parameters("@Comment").Value = TextComment.Text
  202. cmdInsert.Parameters.Add("@PostBy", SqlDbType.VarChar, 50).Value = Session("SESName")
  203. cmdInsert.Parameters.Add(New SqlParameter("@PostDate", SqlDbType.DateTime, 8))
  204. cmdInsert.Parameters("@PostDate").Value = DateTime.Now.ToString
  205. MyConnection.Open()
  206. cmdInsert.ExecuteNonQuery()
  207. MyConnection.Close()
  208. Response.Redirect("AdminAddComment.aspx?BookId=" & strID)
  209. End Sub
  210. Sub NewPage(ByVal sender As Object, ByVal e As DataGridPageChangedEventArgs)
  211. comment.CurrentPageIndex = e.NewPageIndex
  212. bindComment()
  213. End Sub
  214. Private Sub comment_DeleteCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles comment.DeleteCommand
  215. cID = CInt(e.Item.Cells(4).Text)
  216. Dim strdel As String
  217. Dim cmddel As SqlCommand
  218. strdel = "delete from Comment WHERE CommentId=@CommentId AND BookId=@BookId "
  219. cmddel = New SqlCommand(strdel, MyConnection)
  220.  
  221. cmddel.Parameters.Add(New SqlParameter("@BookId", SqlDbType.Int, 4))
  222. cmddel.Parameters("@BookId").Value = strID
  223. cmddel.Parameters.Add(New SqlParameter("@CommentId", SqlDbType.Int, 4))
  224. cmddel.Parameters("@CommentId").Value = cID
  225. MyConnection.Open()
  226. cmddel.ExecuteNonQuery()
  227. Response.Redirect("AdminAddComment.aspx?BookId=" & Request.QueryString("BookId"))
  228. MyConnection.Close()
  229. End Sub
  230. Private Sub ImageButton1_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
  231. Response.Redirect("AdminHome.aspx")
  232. End Sub
  233. Private Sub ImageButton2_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton2.Click
  234. Response.Redirect("AdminAuthoringTools.aspx")
  235. End Sub
  236. Private Sub ImageButton3_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton3.Click
  237. Response.Redirect("upload.aspx")
  238. End Sub
  239. End Class
  240.  
Last edited by Paladine; Mar 17th, 2007 at 2:31 am. Reason: Adding Code Blocks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Joycelyn is offline Offline
10 posts
since Mar 2007
Mar 8th, 2007
0

Re: error on page!! Cannot solve!!Help

Check syntax of the following linesImageUrl="...."... ???
ASP.NET Syntax (Toggle Plain Text)
  1. <asp:HyperLink id="HyperLink3" runat="server" ImageUrl="<A href="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink>
  2. <asp:ImageButton id="ImageButton2" runat="server" ImageUrl="<A href="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton>
  3. <asp:ImageButton id="ImageButton3" runat="server" ImageUrl="<A href="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton></FONT></P">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton></FONT></P">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ssaran is offline Offline
8 posts
since Feb 2007
Mar 9th, 2007
0

Re: error on page!! Cannot solve!!Help

image button coding now as below..but now still got the same problem...Help!!

<asp:imagebutton id="ImageButton1" runat="server" ImageUrl="file:///C:\Inetpub\wwwroot\ebook\Pic\Home1.gif"
Width="96px"></asp:imagebutton>
<asp:HyperLink id="HyperLink3" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink>
<asp:HyperLink id="HyperLink4" runat="server" ImageUrl="file:///C:\Inetpub\wwwroot\ebook\Pic\searchbook1.gif"
NavigateUrl="SearchBook.aspx">HyperLink</asp:HyperLink>
<asp:HyperLink id="HyperLink5" runat="server" ImageUrl="file:///C:\Inetpub\wwwroot\ebook\Pic\viewnotice1.gif"
NavigateUrl="ViewNotice.aspx">HyperLink</asp:HyperLink>
<asp:HyperLink id="HyperLink6" runat="server" ImageUrl="file:///C:\Inetpub\wwwroot\ebook\Pic\deletebook1.gif"
NavigateUrl="DeleteBook.aspx">HyperLink</asp:HyperLink>
<asp:ImageButton id="ImageButton2" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton>
<asp:ImageButton id="ImageButton3" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Joycelyn is offline Offline
10 posts
since Mar 2007
Mar 9th, 2007
0

Re: error on page!! Cannot solve!!Help

ASP.NET Syntax (Toggle Plain Text)
  1. <asp:HyperLink id="HyperLink3" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink>
  2.  
  3. <asp:ImageButton id="ImageButton2" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton>
  4.  
  5. <asp:ImageButton id="ImageButton3" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton>

Where are starting tags for the last ending tags of the "</asp:HyperLink>" and "</asp:ImageButton>" ?? (lines 5,12 and 13 in your code)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ssaran is offline Offline
8 posts
since Feb 2007
Mar 9th, 2007
0

Re: error on page!! Cannot solve!!Help

actually the problem u mention is not occur...don know y when i copy the code inside here will authomatically change like this... But this problem wat i met is b4 i put all this image button o.....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Joycelyn is offline Offline
10 posts
since Mar 2007
Mar 9th, 2007
0

Re: error on page!! Cannot solve!!Help

your problem could be on the AdminAddComment.aspx page.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ssaran is offline Offline
8 posts
since Feb 2007
Mar 16th, 2007
0

Re: error on page!! Cannot solve!!Help

i know...but i still cannot found the problem out....Help!!!!!!!!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Joycelyn is offline Offline
10 posts
since Mar 2007
Mar 17th, 2007
0

Re: error on page!! Cannot solve!!Help

The error states Object not declared.... On Line 41 and Char 3. Where is that in your code?

Provide the text from the error message you took a screen shot of, this will help us narrow things down.

Just as an FYI for future postings of code, the region of your code labeled with : #Region " Web Form Designer Generated Code " is a region you don't need to provide. Try to post the code that is relevant or related to the issue. I know you want to provide as much detail as possible, but being concise can help speed up resolution to your problem.

NOTE ** you should avoid using "actual" links versus relative links to items in your web page. This will greatly reduce the number of possible sources of error.

i.e. href="file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif (absolute link)

This should be written as href="/Pic/authoring.gif" (relative link - note the slash difference)

The method used is appropriate from a opening of the file in windows explorer, not so good for a web server which is using relative addresses and not absolute (or actual) addresses.

Hope this helps
Last edited by Paladine; Mar 17th, 2007 at 2:40 am.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
Mar 17th, 2007
0

Re: error on page!! Cannot solve!!Help

if view source from internet exporer, the line 41 is like the line which i bold below:

<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["viewAns"];
}
else {
theform = document.viewAns;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

This code is not in my coding in asp.net
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Joycelyn is offline Offline
10 posts
since Mar 2007
Mar 23rd, 2007
0

Re: error on page!! Cannot solve!!Help

the problem is because you deleted the form in your html code. You have no form therefore you cant postback to the server.
As you have no form the postback script you hightlighted couldnt find the form so couldnt get the viewstate.
Why did you delete it?
You have to have a form to have asp pages.
Reputation Points: 26
Solved Threads: 11
Posting Whiz in Training
f1 fan is offline Offline
275 posts
since Jan 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Send mail with CDOSYS
Next Thread in ASP.NET Forum Timeline: is it possible to create Animation using asp.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC