C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Value passing


Posted Date: 06 Aug 2008      Total Responses: 3

Posted By: Muralee Krishnan.K       Member Level: Gold     Points: 1



I have a text box in the first form and the Web Browser in the second form.
Second form open when the radio button is clicked in the first form.

I want to pass the values from the web browser in the second form to the textbox of the first form.


The Problem is

the value is not passing from the second form to first form after closing the second form.

I want to pass the value. Can any on tell how it is possible With Example.


Muralee Krishnan.K





Responses

Author: Yugi    06 Aug 2008Member Level: GoldRating:     Points: 3


urs is state management problem

use sessions to pass values from one form to other

create seession
session.add("key",value);
get session value

string sname=session("key").tostring();



for more queries contact yugi.it@gmail.com



Author: ANIL PANDEY    06 Aug 2008Member Level: DiamondRating:     Points: 4

u can use the Query String to pass the Value from one page to another.. or Using the Session is also the Best Idea..

u can use session like this

session("id") = "TextBox1.Text";

or
Response.Redirect("form2.aspx?id="+TextBox1.Text);

hope this Will Work for u..

Thanks
Anil

Thanks & Regards
Anil Kumar Pandey



Author: D.Jeya kumar(JK)    06 Aug 2008Member Level: DiamondRating:     Points: 4

Hi,

Using session vairable we can share the values between any web forms.

the syntax is
In vb.net

Session("Variable")="Some value"
dim str as string= Session("Variable")

In c#

Session["Variable"]="Some value";
string str=Session["Variable")

Regards
JK



Post Reply
You must Sign In to post a response.
Next : Web Browser in C#.Net 2.0 (Windows)
Previous : fileupload equalent control for windows
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use