Welcome Guest Search | Active Topics | Members | Log In | Register

asp.net question Options · View
66Chawge
Posted: Friday, October 05, 2007 8:12:01 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 05/10/2007 20:12:01
Date: Fri, 05 Oct 2007 20:12:01 GMT

I have declared a public variable in my ?.asp.cs file called psServerAddress. I have valued this variable with the address of the current server. Now, I want to pass this variable to a usercontrol.cs so I can create a dynamic url "http:\\[psServerAddress]\.....

The user controls are built in a packaged dll included in the project.

From http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework-aspnet.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Michael Nemtsev
Posted: Saturday, October 06, 2007 6:54:31 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 06/10/2007 06:54:31
Date: Sat, 6 Oct 2007 06:54:31 +0000 (UTC)

Hello 66Chawgerdsniegon@sais.com,

put your variably into the session and read it from your user control.
it's the simplest way

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


> I have declared a public variable in my ?.asp.cs file called
> psServerAddress. I have valued this variable with the address of the
> current server. Now, I want to pass this variable to a usercontrol.cs
> so I can create a dynamic url "http:\\[psServerAddress]\.....
>
> The user controls are built in a packaged dll included in the project.
>
> From
> http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework-aspnet.ht
> m
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com


Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.036 seconds.