I have a date in a frame/page that i want to pass to another page. I can succefully pass a static value, i just can't pass a value from a text box.
I tried to make everything public. I believe that Me. may only refer to the page that is orginating the action. But how do I pass the text box. Can we assume since I can pass the static value, that the issue is how I grab the textbox value
the Error i get is
Object reference not set to an instance of an object
Here's the Property that is giving me trouble:
Protected WithEvents MsgLbl As System.Web.UI.W ebControls.Labe l
Public WithEvents ToDate As System.Web.UI.W ebControls.Text Box
Public WithEvents FromDate As System.Web.UI.W ebControls.Text Box
Public DatePublicVar As String
Public ReadOnly Property FromDateTxt() As String
Get
'DatePublicVar = "12/12/2004" ' This Works
DatePublicVar = Me.FromDate.Tex t 'this doesn't
Return DatePublicVar
End Get
End Property
Thanks, I'm an old vb guy who still hasn't found out how to do some obvious tasks 2 2200
"Timmins" <Ti*****@discus sions.microsoft .com> wrote in message
news:CF******** *************** ***********@mic rosoft.com... I have a date in a frame/page that i want to pass to another page. I can
succefully pass a static value, i just can't pass a value from a text box. I tried to make everything public. I believe that Me. may only refer to
the page that is orginating the action. But how do I pass the text box. Can
we assume since I can pass the static value, that the issue is how I grab
the textbox value the Error i get is Object reference not set to an instance of an object
Here's the Property that is giving me trouble:
Protected WithEvents MsgLbl As System.Web.UI.W ebControls.Labe l Public WithEvents ToDate As System.Web.UI.W ebControls.Text Box Public WithEvents FromDate As System.Web.UI.W ebControls.Text Box Public DatePublicVar As String
Public ReadOnly Property FromDateTxt() As String Get 'DatePublicVar = "12/12/2004" ' This Works DatePublicVar = Me.FromDate.Tex t 'this doesn't Return DatePublicVar End Get
End Property
unless your form is called "me" no this wont work
if your text box in in a form
form1.texbox1.v alue
if not its
texbox1.value
Thanks, I'm an old vb guy who still hasn't found out how to do some
obvious tasks
Your control, FromDate, is probably out of scope.
You should ask this question a DotNet group.
Bob Lehmann
"Timmins" <Ti*****@discus sions.microsoft .com> wrote in message
news:CF******** *************** ***********@mic rosoft.com... I have a date in a frame/page that i want to pass to another page. I can
succefully pass a static value, i just can't pass a value from a text box. I tried to make everything public. I believe that Me. may only refer to
the page that is orginating the action. But how do I pass the text box. Can
we assume since I can pass the static value, that the issue is how I grab
the textbox value the Error i get is Object reference not set to an instance of an object
Here's the Property that is giving me trouble:
Protected WithEvents MsgLbl As System.Web.UI.W ebControls.Labe l Public WithEvents ToDate As System.Web.UI.W ebControls.Text Box Public WithEvents FromDate As System.Web.UI.W ebControls.Text Box Public DatePublicVar As String
Public ReadOnly Property FromDateTxt() As String Get 'DatePublicVar = "12/12/2004" ' This Works DatePublicVar = Me.FromDate.Tex t 'this doesn't Return DatePublicVar End Get
End Property
Thanks, I'm an old vb guy who still hasn't found out how to do some
obvious tasks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Richard |
last post by:
**** Post for FREE via your newsreader at post.usenet.com ****
HI,
I am working on a project where I need to input data to a (local) HTML page
using multiple form elements, such as text, radio, checkbox, and dropdown.
When the form Submit button is clicked, I then need the input data either
written to another location on the same page, or written to another page (a
different frame would be fine)
|
by: Dthmtlgod |
last post by:
I am having a little difficulty in passing a value from a page to another
page. I am going to provide excerpts from the code. I think I am close.
This is from Page1.ASP
<%
Set Conn = Server.CreateObject("ADODB.Connection")
DSNtest="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtest=dsntest & "DBQ=" & Server.MapPath("ncci.mdb")
Conn.Open DSNtest
|
by: spiff |
last post by:
I am very very new to jscript. What I want to do is set a variable in one
frame of a page, and then reload another frame so that it uses the new
variable. Is this possible? I want to have a thumbnail menu in the first
frame, where clicking on the thumbnail sets a variable equal to the larger
image's filename. The script would then reload the page in the larger
frame, which uses the new variable value to load the larger version of the...
|
by: vbMark |
last post by:
Hello,
I am doing this:
window.location="page2.php?subj="+subj+"&body="+body;
to send information to another page.
However, I don't want that second page to show up or display in any way.
There is only behind-the-scenes work going on in that page.
|
by: Gibs |
last post by:
Hi
I have two aspx pages in a frame and in the top page i am
creating the controls dynamically and putting in a place
holder. I have a hyperlink in this page to populate the data in
the bottom aspx page. When the user clicks this hyperlink i
need to populate the bottom aspx pagebased on the user
imputs. So i need to pass the values from the top aspx page to
bottom aspx page. how can i achieve this. Please give some
ideas...
| |
by: Evan |
last post by:
I have a web page with 2 frames. The left frame is running menu.aspx and the
right frame is running images.aspx. When a selection is made in menu.aspx I
call a method in images.aspx and pass a variable. The intention is that
images.aspx will take the variable and load images into its frame (the right
one) based on the variable passed. What actually happens is the method runs
in the left frame and ruturns the error "Object reference not...
|
by: |
last post by:
Hi,
1st, I did a search and could not find any info on this, the Google results
were good, but I'm still have issues...So any help will be great.
I have a frame page, which contains 3 frames (Left, Content, and Footer)
In the content page, I have a checkbox, which value is a number (i.e. 500).
I would like that, when a user clicks on this checkbox, it will send the
value to my LEFT frame.
My left frame has an array, where I'm going to...
|
by: BrendanMcPherson |
last post by:
Hello,
Im try to do some tricks to help make a "Search Many Sites from One
Location".
http://www.act.org.au/b_nexus.htm
What I have decided to do is this:
1. You can choose which site you wish to visit from the first page,
after pressing go it takes you to a frame page.
|
by: HHAAPPYY |
last post by:
Hi
I am trying to pass value of the textbox along with another value to the query string.
when i am retriving the txtbox value it always shows me null,
my senario is like this
On my page div_admin.asp i have following things.<%
Dim page, content,console,banner,navbar
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |