Hi,
I have two froms (form1 and form2). I want to be able to pass values from
form 1 to form2 and be able to use those values leter in form2. This is my
code for form1
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Server.Transfer ("form2.aspx ", True)
End Sub
Public ReadOnly Property Property1() As String
Get
Return DropDownList1.S electedItem.Tex t
End Get
End Property
This is my code for form2
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
sourcepage = CType(Context.H andler, transsend)
TextBox1.Text = sourcepage.Prop erty1
End If
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
sourcepage = CType(Context.H andler, transsend)
TextBox2.Text = sourcepage.Prop erty1
End Sub
The form load works perfect on form2 but when I click the button1 on form2 I
get the error
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.InvalidC astException: Specified cast is not valid.
Source Error:
Line 45: Private Sub Button1_Click(B yVal sender As System.Object, ByVal
e As System.EventArg s) Handles Button1.Click
Line 46:
Line 47: sourcepage = CType(Context.H andler, transsend)
Line 48:
Line 49: TextBox2.Text = sourcepage.Prop erty1
Any ideas? 8 1958
Here's a nice, simple way to pass values from one page to another:
(VB.NET code)
'Add data to the context object before transferring
Context.Items(" myParameter") = x
Server.Transfer ("WebForm2.aspx ")
Then, in WebForm2.aspx:
'Grab data from the context property
Dim x as Integer = CType(Context.I tems("myParamet er"),Integer)
Of course there are a number of ways to pass values from one page to
another, such as using the querystring, cookies, session,
context, saving to a temporary table in the database between each page, etc.
You'll have to decide which technique is best for your application.
Here are several good articles on the subject to help you decide. http://msdn.microsoft.com/msdnmag/is...e/default.aspx http://www.aspalliance.com/kenc/passval.aspx http://www.dotnetbips.com/displayarticle.aspx?id=79
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:6E******** *************** ***********@mic rosoft.com... Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Server.Transfer ("form2.aspx ", True) End Sub
Public ReadOnly Property Property1() As String Get Return DropDownList1.S electedItem.Tex t End Get End Property
This is my code for form2 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load 'Put user code to initialize the page here
If Not Page.IsPostBack Then
sourcepage = CType(Context.H andler, transsend)
TextBox1.Text = sourcepage.Prop erty1
End If
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
sourcepage = CType(Context.H andler, transsend)
TextBox2.Text = sourcepage.Prop erty1
End Sub
The form load works perfect on form2 but when I click the button1 on form2 I get the error
Specified cast is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidC astException: Specified cast is not valid.
Source Error:
Line 45: Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Line 46: Line 47: sourcepage = CType(Context.H andler, transsend) Line 48: Line 49: TextBox2.Text = sourcepage.Prop erty1
Any ideas?
When you use Server.Transfer the Handler is only set to the "transferer " on
the first request. When the user hits a button on your second page and
causes a postback, the first page that did the transferring is gone forever.
You will to persist Property1 if you would access to it on a postback.
HTH,
bill
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:6E******** *************** ***********@mic rosoft.com... Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Server.Transfer ("form2.aspx ", True) End Sub
Public ReadOnly Property Property1() As String Get Return DropDownList1.S electedItem.Tex t End Get End Property
This is my code for form2 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load 'Put user code to initialize the page here
If Not Page.IsPostBack Then
sourcepage = CType(Context.H andler, transsend)
TextBox1.Text = sourcepage.Prop erty1
End If
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
sourcepage = CType(Context.H andler, transsend)
TextBox2.Text = sourcepage.Prop erty1
End Sub
The form load works perfect on form2 but when I click the button1 on form2
I get the error
Specified cast is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.InvalidC astException: Specified cast is not
valid. Source Error:
Line 45: Private Sub Button1_Click(B yVal sender As System.Object,
ByVal e As System.EventArg s) Handles Button1.Click Line 46: Line 47: sourcepage = CType(Context.H andler, transsend) Line 48: Line 49: TextBox2.Text = sourcepage.Prop erty1
Any ideas?
Hi,
Looking at the example http://www.dotnetbips.com/displayarticle.aspx?id=79
That's still using the session instead of the context. I tries using the
context but The only way the data ia available after form.transfer is at form
laod of the second form. I am looking for a way to store it by using least
amount of memory and not in database and not on client so cookies are out.
Thanks
"Steve C. Orr [MVP, MCSD]" wrote: Here's a nice, simple way to pass values from one page to another: (VB.NET code)
'Add data to the context object before transferring Context.Items(" myParameter") = x Server.Transfer ("WebForm2.aspx ")
Then, in WebForm2.aspx:
'Grab data from the context property Dim x as Integer = CType(Context.I tems("myParamet er"),Integer)
Of course there are a number of ways to pass values from one page to another, such as using the querystring, cookies, session, context, saving to a temporary table in the database between each page, etc. You'll have to decide which technique is best for your application. Here are several good articles on the subject to help you decide. http://msdn.microsoft.com/msdnmag/is...e/default.aspx
http://www.aspalliance.com/kenc/passval.aspx
http://www.dotnetbips.com/displayarticle.aspx?id=79
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message news:6E******** *************** ***********@mic rosoft.com... Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Server.Transfer ("form2.aspx ", True) End Sub
Public ReadOnly Property Property1() As String Get Return DropDownList1.S electedItem.Tex t End Get End Property
This is my code for form2 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load 'Put user code to initialize the page here
If Not Page.IsPostBack Then
sourcepage = CType(Context.H andler, transsend)
TextBox1.Text = sourcepage.Prop erty1
End If
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
sourcepage = CType(Context.H andler, transsend)
TextBox2.Text = sourcepage.Prop erty1
End Sub
The form load works perfect on form2 but when I click the button1 on form2 I get the error
Specified cast is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidC astException: Specified cast is not valid.
Source Error:
Line 45: Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Line 46: Line 47: sourcepage = CType(Context.H andler, transsend) Line 48: Line 49: TextBox2.Text = sourcepage.Prop erty1
Any ideas?
How do I persist property1?
"William F. Robertson, Jr." wrote: When you use Server.Transfer the Handler is only set to the "transferer " on the first request. When the user hits a button on your second page and causes a postback, the first page that did the transferring is gone forever.
You will to persist Property1 if you would access to it on a postback.
HTH,
bill
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message news:6E******** *************** ***********@mic rosoft.com... Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Server.Transfer ("form2.aspx ", True) End Sub
Public ReadOnly Property Property1() As String Get Return DropDownList1.S electedItem.Tex t End Get End Property
This is my code for form2 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load 'Put user code to initialize the page here
If Not Page.IsPostBack Then
sourcepage = CType(Context.H andler, transsend)
TextBox1.Text = sourcepage.Prop erty1
End If
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
sourcepage = CType(Context.H andler, transsend)
TextBox2.Text = sourcepage.Prop erty1
End Sub
The form load works perfect on form2 but when I click the button1 on form2 I get the error
Specified cast is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidC astException: Specified cast is not valid. Source Error:
Line 45: Private Sub Button1_Click(B yVal sender As System.Object,
ByVal e As System.EventArg s) Handles Button1.Click Line 46: Line 47: sourcepage = CType(Context.H andler, transsend) Line 48: Line 49: TextBox2.Text = sourcepage.Prop erty1
Any ideas?
My objective is. I have two forms one with customer data and second with
shipping data. After the user fills the customer data and select next the
data is transferred to second form. When second form is filled the data is
sent to database. Now each forms have 15 textboxes so that would be a total
of 30 variables when transferred to form2. That's why I am afraid of using
the sesion. If 4 users are using that will be a total of 120 variables in
session
"Steve C. Orr [MVP, MCSD]" wrote: Here's a nice, simple way to pass values from one page to another: (VB.NET code)
'Add data to the context object before transferring Context.Items(" myParameter") = x Server.Transfer ("WebForm2.aspx ")
Then, in WebForm2.aspx:
'Grab data from the context property Dim x as Integer = CType(Context.I tems("myParamet er"),Integer)
Of course there are a number of ways to pass values from one page to another, such as using the querystring, cookies, session, context, saving to a temporary table in the database between each page, etc. You'll have to decide which technique is best for your application. Here are several good articles on the subject to help you decide. http://msdn.microsoft.com/msdnmag/is...e/default.aspx
http://www.aspalliance.com/kenc/passval.aspx
http://www.dotnetbips.com/displayarticle.aspx?id=79
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message news:6E******** *************** ***********@mic rosoft.com... Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Server.Transfer ("form2.aspx ", True) End Sub
Public ReadOnly Property Property1() As String Get Return DropDownList1.S electedItem.Tex t End Get End Property
This is my code for form2 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load 'Put user code to initialize the page here
If Not Page.IsPostBack Then
sourcepage = CType(Context.H andler, transsend)
TextBox1.Text = sourcepage.Prop erty1
End If
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
sourcepage = CType(Context.H andler, transsend)
TextBox2.Text = sourcepage.Prop erty1
End Sub
The form load works perfect on form2 but when I click the button1 on form2 I get the error
Specified cast is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidC astException: Specified cast is not valid.
Source Error:
Line 45: Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Line 46: Line 47: sourcepage = CType(Context.H andler, transsend) Line 48: Line 49: TextBox2.Text = sourcepage.Prop erty1
Any ideas?
OK, I'd suggest using a single form with two panels.
Only one panel is visible at a time. The first panel holds the customer
controls, and the second panel holds the shipping controls.
That way all the controls persist between postback automatically and it's
fairly light on server RAM usage. The tradeoff is it sucks up slightly more
bandwidth, but hey, you can't have everything.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:D7******** *************** ***********@mic rosoft.com... My objective is. I have two forms one with customer data and second with shipping data. After the user fills the customer data and select next the data is transferred to second form. When second form is filled the data is sent to database. Now each forms have 15 textboxes so that would be a total of 30 variables when transferred to form2. That's why I am afraid of using the sesion. If 4 users are using that will be a total of 120 variables in session
"Steve C. Orr [MVP, MCSD]" wrote:
Here's a nice, simple way to pass values from one page to another: (VB.NET code)
'Add data to the context object before transferring Context.Items(" myParameter") = x Server.Transfer ("WebForm2.aspx ")
Then, in WebForm2.aspx:
'Grab data from the context property Dim x as Integer = CType(Context.I tems("myParamet er"),Integer)
Of course there are a number of ways to pass values from one page to another, such as using the querystring, cookies, session, context, saving to a temporary table in the database between each page, etc. You'll have to decide which technique is best for your application. Here are several good articles on the subject to help you decide. http://msdn.microsoft.com/msdnmag/is...e/default.aspx
http://www.aspalliance.com/kenc/passval.aspx
http://www.dotnetbips.com/displayarticle.aspx?id=79
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message news:6E******** *************** ***********@mic rosoft.com... > Hi, > I have two froms (form1 and form2). I want to be able to pass values > from > form 1 to form2 and be able to use those values leter in form2. This is > my > code for form1 > > Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As > System.EventArg s) Handles Button1.Click > Server.Transfer ("form2.aspx ", True) > End Sub > > Public ReadOnly Property Property1() As String > Get > Return DropDownList1.S electedItem.Tex t > End Get > End Property > > > This is my code for form2 > > > > Private Sub Page_Load(ByVal sender As System.Object, ByVal e As > System.EventArg s) Handles MyBase.Load > 'Put user code to initialize the page here > > If Not Page.IsPostBack Then > > sourcepage = CType(Context.H andler, transsend) > > TextBox1.Text = sourcepage.Prop erty1 > > End If > > End Sub > > Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As > System.EventArg s) Handles Button1.Click > > sourcepage = CType(Context.H andler, transsend) > > TextBox2.Text = sourcepage.Prop erty1 > > > End Sub > > > The form load works perfect on form2 but when I click the button1 on > form2 > I > get the error > > Specified cast is not valid. > Description: An unhandled exception occurred during the execution of > the > current web request. Please review the stack trace for more information > about > the error and where it originated in the code. > > Exception Details: System.InvalidC astException: Specified cast is not > valid. > > Source Error: > > > Line 45: Private Sub Button1_Click(B yVal sender As System.Object, > ByVal > e As System.EventArg s) Handles Button1.Click > Line 46: > Line 47: sourcepage = CType(Context.H andler, transsend) > Line 48: > Line 49: TextBox2.Text = sourcepage.Prop erty1 > > Any ideas? >
Sorry about the weekend delay.
Place this property on your page 2.
Private Property Property1FromPa ge1()
Get
Return CType(ViewState ("Property1From Page1"), String)
End Get
Set(ByVal Value)
ViewState("Prop erty1FromPage1" ) = Value
End Set
End Property
In your page load, when not postback, you will set this property:
Page_Load
Property1FromPa ge1 = CType(Context.H andler, transsend).Prop erty1
Property1FromPa ge1 will always contain the value from the first page, and
you can use this value on all subsequent postbacks.
bill
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message
news:F2******** *************** ***********@mic rosoft.com... How do I persist property1?
"William F. Robertson, Jr." wrote:
When you use Server.Transfer the Handler is only set to the "transferer "
on the first request. When the user hits a button on your second page and causes a postback, the first page that did the transferring is gone
forever. You will to persist Property1 if you would access to it on a postback.
HTH,
bill
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message news:6E******** *************** ***********@mic rosoft.com... Hi, I have two froms (form1 and form2). I want to be able to pass values
from form 1 to form2 and be able to use those values leter in form2. This
is my code for form1
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Server.Transfer ("form2.aspx ", True) End Sub
Public ReadOnly Property Property1() As String Get Return DropDownList1.S electedItem.Tex t End Get End Property
This is my code for form2 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load 'Put user code to initialize the page here
If Not Page.IsPostBack Then
sourcepage = CType(Context.H andler, transsend)
TextBox1.Text = sourcepage.Prop erty1
End If
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e
As System.EventArg s) Handles Button1.Click
sourcepage = CType(Context.H andler, transsend)
TextBox2.Text = sourcepage.Prop erty1
End Sub
The form load works perfect on form2 but when I click the button1 on
form2 I get the error
Specified cast is not valid. Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.InvalidC astException: Specified cast is not valid. Source Error:
Line 45: Private Sub Button1_Click(B yVal sender As System.Object,
ByVal e As System.EventArg s) Handles Button1.Click Line 46: Line 47: sourcepage = CType(Context.H andler, transsend) Line 48: Line 49: TextBox2.Text = sourcepage.Prop erty1
Any ideas?
Hi,
How long does session variable stays in server memory after session.remove?
Thanks
"Steve C. Orr [MVP, MCSD]" wrote: OK, I'd suggest using a single form with two panels. Only one panel is visible at a time. The first panel holds the customer controls, and the second panel holds the shipping controls. That way all the controls persist between postback automatically and it's fairly light on server RAM usage. The tradeoff is it sucks up slightly more bandwidth, but hey, you can't have everything.
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net "Chris" <Ch***@discussi ons.microsoft.c om> wrote in message news:D7******** *************** ***********@mic rosoft.com... My objective is. I have two forms one with customer data and second with shipping data. After the user fills the customer data and select next the data is transferred to second form. When second form is filled the data is sent to database. Now each forms have 15 textboxes so that would be a total of 30 variables when transferred to form2. That's why I am afraid of using the sesion. If 4 users are using that will be a total of 120 variables in session
"Steve C. Orr [MVP, MCSD]" wrote:
Here's a nice, simple way to pass values from one page to another: (VB.NET code)
'Add data to the context object before transferring Context.Items(" myParameter") = x Server.Transfer ("WebForm2.aspx ")
Then, in WebForm2.aspx:
'Grab data from the context property Dim x as Integer = CType(Context.I tems("myParamet er"),Integer)
Of course there are a number of ways to pass values from one page to another, such as using the querystring, cookies, session, context, saving to a temporary table in the database between each page, etc. You'll have to decide which technique is best for your application. Here are several good articles on the subject to help you decide. http://msdn.microsoft.com/msdnmag/is...e/default.aspx
http://www.aspalliance.com/kenc/passval.aspx
http://www.dotnetbips.com/displayarticle.aspx?id=79
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Chris" <Ch***@discussi ons.microsoft.c om> wrote in message news:6E******** *************** ***********@mic rosoft.com... > Hi, > I have two froms (form1 and form2). I want to be able to pass values > from > form 1 to form2 and be able to use those values leter in form2. This is > my > code for form1 > > Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As > System.EventArg s) Handles Button1.Click > Server.Transfer ("form2.aspx ", True) > End Sub > > Public ReadOnly Property Property1() As String > Get > Return DropDownList1.S electedItem.Tex t > End Get > End Property > > > This is my code for form2 > > > > Private Sub Page_Load(ByVal sender As System.Object, ByVal e As > System.EventArg s) Handles MyBase.Load > 'Put user code to initialize the page here > > If Not Page.IsPostBack Then > > sourcepage = CType(Context.H andler, transsend) > > TextBox1.Text = sourcepage.Prop erty1 > > End If > > End Sub > > Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As > System.EventArg s) Handles Button1.Click > > sourcepage = CType(Context.H andler, transsend) > > TextBox2.Text = sourcepage.Prop erty1 > > > End Sub > > > The form load works perfect on form2 but when I click the button1 on > form2 > I > get the error > > Specified cast is not valid. > Description: An unhandled exception occurred during the execution of > the > current web request. Please review the stack trace for more information > about > the error and where it originated in the code. > > Exception Details: System.InvalidC astException: Specified cast is not > valid. > > Source Error: > > > Line 45: Private Sub Button1_Click(B yVal sender As System.Object, > ByVal > e As System.EventArg s) Handles Button1.Click > Line 46: > Line 47: sourcepage = CType(Context.H andler, transsend) > Line 48: > Line 49: TextBox2.Text = sourcepage.Prop erty1 > > Any ideas? > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: domeceo |
last post by:
can anyone tell me why I cannot pass values in a setTimeout function
whenever I use this function it says "menu is undefined" after th
alert.
function imgOff(menu, num) {
if (document.images) {
document.images.src = eval("mt" +menu+ ".src")
}
alert("imgOff_hidemenu");
hideMenu=setTimeout('Hide(menu,num)',500);
|
by: jr |
last post by:
Sorry for this very dumb question, but I've clearly got a long way to go!
Can someone please help me pass an array into a function. Here's a starting
point.
void TheMainFunc()
{
// Body of code...
TCHAR myArray;
DoStuff(myArray);
|
by: Russell |
last post by:
Hi there,
I'm currently creating a .NET Web Application and I have a question about
passing values from one screen to another. I previously used Session
variables in the code to store these values, however I can no longer use
this method because of my current website "Cloaking" the URL. (When site is
cloked, the session variables don't seem to work with frames)
Anyway, I was wondering if anyone could offer an alternative, I have tried...
|
by: Jim Heavey |
last post by:
I know that I can create session variables and pass those values from one
screen to another, but is there not a way to makes variables from one scree
n available to another screen other then session variables? Is there not a
way to create properties in the one screen and then pass some sort of
reference to the screen you are calling?
Can you point me to an example or an article on how to use?
Thanks in advance for your...
|
by: Wes Hutton via .NET 247 |
last post by:
I am trying to pass a data object (set or row) into a functionbyref, and have the same issue either way. In the maincontroller function, I have no issues accessing any parts of mydataset. If I extract a data row, it has values and is fine. However, when I pass either the whole dataset or just a data rowto another function, it errors out, and in the Locals windowjust has "error: cannot obtain value" against every field. I'vecopied the code...
| |
by: John Pass |
last post by:
Hi,
In the attached example, I do understand that the references are not changed
if an array is passed by Val. What I do not understand is the result of line
99 (If one can find this by line number) which is the last line of the
following sub routine:
' procedure modifies elements of array and assigns
' new reference (note ByVal)
Sub FirstDouble(ByVal array As Integer())
Dim i As Integer
|
by: Xah Lee |
last post by:
in March, i posted a essay “What is Expressiveness in a Computer
Language”, archived at:
http://xahlee.org/perl-python/what_is_expresiveness.html
I was informed then that there is a academic paper written on this
subject.
On the Expressive Power of Programming Languages, by Matthias
Felleisen, 1990.
http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
|
by: teddarr |
last post by:
I have an assignment I've been working on for a few days now. I need some help with the last detail.
The program is supposed to create 5 objects with varying floating-point parameter lists. The class (Rectangle) is supposed to calculate the perimeter and area and tell whether the shape is a square or not. Then put this info in a table and sent to an external file. The limits on the sides of the rectangle is greater than 0.0 and no more...
|
by: TG |
last post by:
Hi!
Once again I have hit a brick wall here. I have a combobox in which
the user types the server name and then clicks on button 'CONNECT' to
populate the next combobox which contains all the databases in that
server. Then after the user selects a database, I have another button
that he/she click and I want to retrieve file groups from a specific
table. At this point when he/she clicks on that button I get an error:
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
| |