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

Passing strings between webforms

Hi!

How do I pass strings between webforms using Request["..."] in the target
webform but without using

Response.Redirect("SearchPOs.aspx?vendorName=" + vendorName);

in the source webform. This is bec. the source webform is a popup window and
I am not able to pass the strings. I also dont want the popup (source)
webform to become another target webform. Any suggestions?

thanks,
newbie
Nov 16 '05 #1
1 1911
There are a couple ways to do that. In your main page, when you call the
ShowModalDialog or ShowModelessDialog method, assign the string to the
returnValue property, test that value in the parent page, and then you can
include it in the querystring or, if you don't want it in the querystring,
then assign the value to a hidden element in your webform.

DalePres
MCAD, MCDBA, MCSE

"Newbie" <Ne****@discussions.microsoft.com> wrote in message
news:F7**********************************@microsof t.com...
Hi!

How do I pass strings between webforms using Request["..."] in the target
webform but without using

Response.Redirect("SearchPOs.aspx?vendorName=" + vendorName);

in the source webform. This is bec. the source webform is a popup window
and
I am not able to pass the strings. I also dont want the popup (source)
webform to become another target webform. Any suggestions?

thanks,
newbie

Nov 16 '05 #2

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

Similar topics

3
by: Ivan Sammut | last post by:
I have 2 webforms (WebForm1 & Webform2) I have a button on webform1 that when I click it I need to pass some variables to webform2 and then Popup webform2 and show the variables I passed. Any...
6
by: Newbie | last post by:
How do I pass string values from one webform to another?
1
by: Newbie | last post by:
Is there a way to pass strings from one webform to another without using Response.Redirect( ) ? The reason is that I need the webform passing the string to close its window.
1
by: Paul R | last post by:
Hi, I have a Winforms application that access some SQLServer2000 stored procedures. I have now written some new Webforms pages to use some of the same stored procs. The Webforms use the SAME...
0
by: AM | last post by:
Hi All, I am trying to implement paging for datalists on all webforms. I have a classtest with some functions. The code works fine with webform1 but my query is how should i pass the references of...
3
by: Mantorok | last post by:
Hi all I'm pretty new to ASP.Net, is it possible to pass arguments (maybe objects too) to web forms without using a querystring in the URL? Thanks Kev
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
5
by: Bit byte | last post by:
Can I use C# (Winforms) to design a website?. I am from C/C++ background but know nothing about Internet programming. My understanding of WebForms are that they are similar to WinForms in that...
6
by: Andy Baker | last post by:
I am attempting to write a .NET wrapper for a C++ DLL file, but am having problems with passing strings as parameters. How should I be writing my C# function call when the C header file is...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.