473,406 Members | 2,849 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,406 software developers and data experts.

ASP.NET: HtmlInputText = Nothing

Hello,
(I am sorry for my English - it is not my native language.)
I am learning .NET. Could you help me please with the following
problem?
I created .aspx page with a HTML control:
<input id=CustomersType name=CustomersType type=hidden runat=server>
and I made declaration in behind-code:
Protected WithEvents CustomersType As
System.Web.UI.HtmlControls.HtmlInputHidden
and the assignment instruction in Page.Load:
CustomersType.Value = ...
Unfortunately CustomersType = Nothing (in QuickWatch), so there's an
error in the assignemt line.
Could you help me please how to correct this - how to rewrite this
code.
Thank you very much.
(MP)
Dec 4 '05 #1
1 1476
Hi,

Should you be using New?

Protected WithEvents CustomersType As New _
System.Web.UI.HtmlControls.HtmlInputHidden

Ken
"Mały Piotruo" <ma**********@poczta.onet.pl> wrote in message
news:in********************************@4ax.com...
Hello,
(I am sorry for my English - it is not my native language.)
I am learning .NET. Could you help me please with the following
problem?
I created .aspx page with a HTML control:
<input id=CustomersType name=CustomersType type=hidden runat=server>
and I made declaration in behind-code:
Protected WithEvents CustomersType As
System.Web.UI.HtmlControls.HtmlInputHidden
and the assignment instruction in Page.Load:
CustomersType.Value = ...
Unfortunately CustomersType = Nothing (in QuickWatch), so there's an
error in the assignemt line.
Could you help me please how to correct this - how to rewrite this
code.
Thank you very much.
(MP)

Dec 4 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: CoreyMas | last post by:
Hello everyone, Here is my situation I created an HTML text box that contains a value that is calculated using Javascript. I expose this control so that .Net sees it, but when I go to...
2
by: charliewest | last post by:
I need to create textboxes in real-time, the actual number of which is determine by a result from a database query. I have been able to create the controls, and then add them to the ASPX page....
1
by: Maras | last post by:
Hello, as we know VB is not case sensivity. I have a following problem, I have to send to another server few parametrs by post or get method, one of them MUST be a "clientID", it's preety...
2
by: Chris Barrow | last post by:
Hi everyone, Does anyone know if there is a problem populating a system.web.ui.htmlcontrols.htmlinputtext control when the control's type is set to "password?" I am attempting to retreive a...
1
by: Wolfgang Schmidt | last post by:
Hello, I have several datagrids in my application. At the moment, data rows which are in editmode can only be saved by clicking the corresponding save button. I would like to add the function...
4
by: qualitynice | last post by:
HELP :-)... I'm creating an embedded activex object in an asp.net page using the HtmlGenericControl class. I'm doing this because when I tried to embed it directly in the aspx page, it stopped...
10
by: Corey B | last post by:
I have a data grid that has three columns: First Name, Middle Name, and Last Name. The grid has a list of people with a blank row at the bottom of the grid (in the footer) that allows the user to...
0
by: Jim in Arizona | last post by:
I'm trying to do a simple update of data but I can't get the code right. It's a datalist control that has the update/cancel/delete subroutines. Here's the broken down datalist aspx code (just...
0
by: George Ter-Saakov | last post by:
I am adding some functionality to HtmlInputText so i derived my class from it. The problem is when i switch page to desing mode the VS shows an error and do not render control. Unable to cast...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.