Showing posts with label aspnet. Show all posts
Showing posts with label aspnet. Show all posts

Thursday, March 29, 2012

Passing values between asp.net pages.

In asp you called a new page and passed any variable information through a query string.
Can some one tell me what the best practice is in asp.net to get information from one asp.net page to another ?

Or at least what the options wereYou can do this exactly as you did in ASP.
If you didn't want to continue using the querystring you could use cookies, sessions, or some other choices. But the querystring in a browser is a querystring in a browser - you can read one or create one just as you always did.

passing values between pages (one is previouspage) with asp.net 1.x

i have a page opens a popup in that popup i get some property values for control in the previous page

i need to pass the values to the control vwhen i clik a button

what is the best choise

when i need session i can'nt refresh the previous page correctly so it fails for me (browser asks me a msgbox)

when i want to pass with query string my value is a html tag it allso fails because of security

thanks for helps

i realy need help talk to me guys

Can you clarify the question a bit.

You have a window you pop up that gathers some data that you want to write back to the previous page that the window popped up from?

If so you can use javascript to do it:


function SelectItem(item, invalue)
{
if (window.opener)
if (window.opener.closed == false)
if (window.opener.document && window.opener.document.forms[0] &&
window.opener.document.forms[0].elements[item])
{
window.opener.document.forms[0].elements[item].value = invalue;
}
window.close();
}

Passing values From One asp.net Page to another

Hello All,

Please helping to understand this .. as i ma novice for .Net
technology..

What are the different possible way to send the value from one to
another in asp.NET using C#.NET ??

I Know only two way ...

1. Through query string.
2. Through session varible.

Apart from above to ways is there any other way to send the value from
one page to another.
Please suggest me if possible share the code...

Thank's and regards
Tarun Sinha"TARUN" <tarun.sinha@.gmail.comwrote in message
news:1190207338.512755.322880@.n39g2000hsh.googlegr oups.com...

Quote:

Originally Posted by

What are the different possible way to send the value from one to
another in asp.NET using C#.NET ??
>
I Know only two way ...
>
1. Through query string.
2. Through session varible.


Yep, either of those will work just fine - what problems are you having...?

Quote:

Originally Posted by

Apart from above to ways is there any other way to send the value from
one page to another.


In ASP.NET 2 you can do cross-page posting:
http://msdn2.microsoft.com/en-us/li...139(vs.80).aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Sometimes you can make use of Page.PreviousPage property.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"TARUN" <tarun.sinha@.gmail.comwrote in message
news:1190207338.512755.322880@.n39g2000hsh.googlegr oups.com...

Quote:

Originally Posted by

Hello All,
>
Please helping to understand this .. as i ma novice for .Net
technology..
>
What are the different possible way to send the value from one to
another in asp.NET using C#.NET ??
>
I Know only two way ...
>
1. Through query string.
2. Through session varible.
>
Apart from above to ways is there any other way to send the value from
one page to another.
Please suggest me if possible share the code...
>
>
Thank's and regards
Tarun Sinha
>


On Sep 19, 6:21 pm, "Mark Rae [MVP]" <m...@.markNOSPAMrae.netwrote:

Quote:

Originally Posted by

"TARUN" <tarun.si...@.gmail.comwrote in message
>
news:1190207338.512755.322880@.n39g2000hsh.googlegr oups.com...
>

Quote:

Originally Posted by

What are the different possible way to send the value from one to
another in asp.NET using C#.NET ??


>

Quote:

Originally Posted by

I Know only two way ...


>

Quote:

Originally Posted by

1. Through query string.
2. Through session varible.


>
Yep, either of those will work just fine - what problems are you having...?
>

Quote:

Originally Posted by

Apart from above to ways is there any other way to send the value from
one page to another.


>
In ASP.NET 2 you can do cross-page posting:http://msdn2.microsoft.com/en-us/li...139(vs.80).aspx
>
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net


But still i am looking for sending the values from one to another
I have been instructed not to use both the way i.e session and quert
string ..
Please suggest the third way for doing this
"TARUN" <tarun.sinha@.gmail.comwrote in message
news:1190208904.393014.322050@.k79g2000hse.googlegr oups.com...

Quote:

Originally Posted by

I have been instructed not to use both the way i.e session and quert
string ..


? Why...?

Quote:

Originally Posted by

Please suggest the third way for doing this


I have already done this - did you not click the hyperlink I suggested...?

--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Wednesday, March 21, 2012

Passport Authentication in ASP.NET

Hi All,

I want to implement the .Net Passport Authentication in my ASP.NET web
application.

I have installed the Microsoft Passport SDK 2.5 on my machine. I have
also registered my profile (email address and company profile) while
downloading the Passport SDK.

I have not yet received the SiteID and the Key from Microsoft for
registering my Web Application for Passport Authentication.

I want to know the further steps involved in implementing the Passport
Authentication.

Can anyone help me?

Thanks in advance.

SudhirGo back to the Passport site and find an email for a contact person. I had
to do this with MapPoint .NET (now MapPoint Web Service) to speed up the
process.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

************************************************** **************************
****
Think Outside the Box!
************************************************** **************************
****
"Sudhir Pai" <sudhir_pai@.rediffmail.com> wrote in message
news:8883ea5a.0307062137.48cc1141@.posting.google.c om...
> Hi All,
> I want to implement the .Net Passport Authentication in my ASP.NET web
> application.
> I have installed the Microsoft Passport SDK 2.5 on my machine. I have
> also registered my profile (email address and company profile) while
> downloading the Passport SDK.
> I have not yet received the SiteID and the Key from Microsoft for
> registering my Web Application for Passport Authentication.
> I want to know the further steps involved in implementing the Passport
> Authentication.
> Can anyone help me?
> Thanks in advance.
> Sudhir