473,383 Members | 1,864 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,383 software developers and data experts.

variable transfer

(Type your message here)
how can i use variable transfer between different webforms in visual c#.net?
please help me
--------------------------------
From: lolo aaaaa

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>olI9xQFIk0iBuUL41wSCeA==</Id>
Nov 16 '05 #1
1 1301
If you have a reference to the other form then you can access the public
method, properties and fields of that form.

e.g. If you have a public string property on Form2 called
MyPublicStringProperty then the following code from another Form would
instantiate an instance of Form2 and set this property:

Form2 f = new Form2();
f.MyPublicStringProperty = "Testing...";

--
Steve Willcock, MCSD
http://www.willcockconsulting.com/

"lolo aaaaa via .NET 247" <an*******@dotnet247.com> wrote in message
news:uj**************@TK2MSFTNGP11.phx.gbl...
(Type your message here)
how can i use variable transfer between different webforms in visual c#.net? please help me
--------------------------------
From: lolo aaaaa

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>olI9xQFIk0iBuUL41wSCeA==</Id>

Nov 16 '05 #2

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

Similar topics

1
by: Danny Poulsen | last post by:
Hi How do I transfer a variable on one page to another page? example: page1.htm <script language="JavaScript"> var t = 1; </script>
3
by: Tor Inge Rislaa | last post by:
How to refer to a variable on another webform Hi, I have a Webform1 with a public variable that is assigned a value before my Webform2 is displayed. In the Page_Load procedure of Webform2 I want...
5
by: Jade | last post by:
I saw some web page saying I could do it this way in javascript: var iNumber = <%#publicvarname publicpropertyname %> but it doesn't seem to work. I have this piece of code here in...
1
by: Vlady | last post by:
The scenario is the following: from the login page I set a session variable like Session=3; Server.transfer("anotherpage.aspx"); In anotherpage.aspx in page load I check to see if that Session is...
3
by: markaelkins | last post by:
Hi. I am trying to enter a variable in the treenodesrc of a treenode. I am basically trying to send an ID variable into sql to return different records. I've searched everywhere and cannot find the...
0
by: aure_bobo | last post by:
Hi all, I'm currently developing a system with several webapps in ASP.NET/C#. One of my website is used to login user : I will call this website Webapp1. Depending on the user attributes, I...
3
by: vvenk | last post by:
Hello: This was posted in a wrong forum; that's why I am posting here again. Sorry. I just wrote my first ASP.Net application, tested it on my development environment and deployed it on a...
8
by: Alex Murphy | last post by:
The first page have the pre-define variable. How to transfer to next php page? Thanks
2
by: Mirovk | last post by:
Hi, I have a session variable wich value arrives from a previous .asp but in my actual page I need to modify it based upon a selected value from a radio button. I will try to figure out for...
29
by: Martin | last post by:
For reasons I won't go into, I need to transfer from 1 to 3 bytes to a variable that I know is 4 bytes long. Bytes not written to in the 4-byte target variable must be zero. Is the following use of...
1
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: 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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.