473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error : Response is not declared

22
Hi guys,
I am facing a problem with the Code behind file of the ASP.NET file i.e.new.aspx.vb is not allowing me to access the properties of the HTML controls on the .aspx page the error is as follows
My design code on the aspx page is
Expand|Select|Wrap|Line Numbers
  1. <table border = "0"; id = "tblecs" align ="center" style="width: 886px; height: 134px;" rules="none">
But in the code behind page
New.aspx.vb
When I write
Expand|Select|Wrap|Line Numbers
  1. Partial Class New
  2.     Inherits System.Web.UI.Page
  3.  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  4.  txtapptDate.Visible = False
  5.         lblformat.Visible = False
  6.         tblecs.Visible =False
The error the compiler gives me is "tblecs is not declared" when actually it is an HTML control & generally is easily accessible from an Asp.net page.
If anyone can help me out will be a lot more grateful to you, please rely to this asap.........

Thanks ..........
Ani
Mar 2 '09 #1
5 5221
Frinavale
9,735 Expert Mod 8TB
Try adding runat="server" to your <table>
Mar 2 '09 #2
Anni V
22
.......................
Mar 3 '09 #3
Anni V
22
@Frinavale
Thanks a lot buddy for the solution it did work
....Thank You
Mar 3 '09 #4
kunal pawar
297 100+
Anni, you can not access HTML control from code behind untill you are not using runat property in that HTML Tag.
Mar 3 '09 #5
Anni V
22
Thanks guys ,it worked I did'nt realize that
thank you kunal for the solution
regards;)
Mar 3 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mohammed Mazid | last post by:
Can anyone please help me here? Basically I have modified the source code and understood it but when I update a record in the db using a JSP, it gives me an error "The flight you selected does...
7
by: bob garbados | last post by:
Can someone point out why this is giving me the error "Variable is undefined: 'arrProducts' " <begin_code> Dim m_arrProducts() Sub SerializeCart() ReDim m_arrProducts(m_intCartCount -1)...
5
by: Michael | last post by:
Hello, I have a separate Database class that handles any database work that all my asp.net pages can use. My problem is, many times I use try/catch to catch errors, and I want to output these...
2
by: darrel | last post by:
I'm using a repeater control. I need the itemtemplate to be slightly different depending on the data, so I thought I'd use a select/case statement. Unfortunately, I'm getting a 'Container' is not...
0
by: tshad | last post by:
I have an error routine in my Global.asax that gives me a different message than asp.net when you let it give you the error page. My error routine looks like: ...
7
by: Joe Rigley | last post by:
Hi, I have a custom class with a public method. I want to perform a repose.redirect if an error occurs in the public method GetUserRoles. Unfortunately, Visual Studio 2003 is throwing an error...
9
by: Remulac | last post by:
Hello, I'm trying to get the value out of a dropdown list box and assign it to a variable. When I click on the list box, I invoke this line of code. I get the error, "Object reference not set...
4
by: Kiyomi | last post by:
Hello, I am trying to replace my alert message box with a popup page. In my page behind,
2
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access...
14
by: Darren L. Weber | last post by:
I am trying to compile a utility to create .avi files. See http://cpbotha.net/im2avi I'm working on Debian etch (a mix of testing/unstable). dweber@dnlweber:~/im2avi-0.4$ g++ --version g++...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.