473,396 Members | 2,113 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,396 software developers and data experts.

Calculate URL with ~

Hi. I use the tilda ~ symbol to calculate URLs from the base of the
application when using Response.Redirect() eg.

Response.Redirect ( @"~\ResolveErrors\Resolve.aspx" );

But is there a way to pre-calculate the URL? I want to embed it in the page.

E.g. MyUrlString = URL.Encode (@"~\ResolveErrors\Resolve.aspx" );

Thanks!
--
McGeeky
http://mcgeeky.blogspot.com
Nov 28 '05 #1
2 1303
ResolveURL( "~/blablah" )

"McGeeky" <an**@anon.com> schreef in bericht
news:u4*************@TK2MSFTNGP10.phx.gbl...
Hi. I use the tilda ~ symbol to calculate URLs from the base of the
application when using Response.Redirect() eg.

Response.Redirect ( @"~\ResolveErrors\Resolve.aspx" );

But is there a way to pre-calculate the URL? I want to embed it in the
page.

E.g. MyUrlString = URL.Encode (@"~\ResolveErrors\Resolve.aspx" );

Thanks!
--
McGeeky
http://mcgeeky.blogspot.com

Nov 28 '05 #2
Thank you!

--
McGeeky
http://mcgeeky.blogspot.com
"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
ResolveURL( "~/blablah" )

"McGeeky" <an**@anon.com> schreef in bericht
news:u4*************@TK2MSFTNGP10.phx.gbl...
Hi. I use the tilda ~ symbol to calculate URLs from the base of the
application when using Response.Redirect() eg.

Response.Redirect ( @"~\ResolveErrors\Resolve.aspx" );

But is there a way to pre-calculate the URL? I want to embed it in the
page.

E.g. MyUrlString = URL.Encode (@"~\ResolveErrors\Resolve.aspx" );

Thanks!
--
McGeeky
http://mcgeeky.blogspot.com


Nov 28 '05 #3

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

Similar topics

2
by: Phil Powell | last post by:
Relevancy scores are normally defined by a MySQL query on a table that has a fulltext index. The rules for relevancy scoring will exclude certain words due to their being too short (minimum...
1
by: Building Blocks | last post by:
Hi, All I need is a simle calculate form script which contains this: A script that can handle text input, radio buttons, checkboxes, and dropdowns. Each one of these variables will contain a...
2
by: Gįlos Zsuzsa | last post by:
Hi all, I need to calculate Formulas. For example: dim strFormula as string="25*(12-6)" I ned a DotNet Function to calculate this Formula (25*(12-6)=150): dim dblValue as double = 150
1
by: Robert de Ridder | last post by:
I use an asp page to display pages, where the dynamic content is in an iframe. To calculate the height of the iframe I use the calcheight function. However when trying to do this with external...
4
by: Jan Szymczuk | last post by:
I'm creating an MS Access 2000 database where I have a number of people entered using simple basic fields, Surname: SMITH Forenames: John DoB: 09/09/1958 Age:...
1
by: Ladislau S. | last post by:
Dear reader, I am an occasional user of MS Access 2000 running on Windows 98. My hobby is ship model building so I made a database for things that I want to buy. After two strokes I bin unable...
6
by: charliewest | last post by:
Can someone pls point me to or recommend the easiest way to calculate someoneĀ“s age using the TimeSpan object, in .NET CF? IsnĀ“t there a simple way to use the TimeSpan object to calculate the...
3
by: Libber39 | last post by:
Hi everyone, Have a query on how to calculate the amount of weeks and days contained in a number in an access query. ie: the difference in days between 2 dates amounts to 17 days. I want to now...
0
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars...
6
by: rrstudio2 | last post by:
I am using the following vba code to calculate the median of a table in MS Access: Public Function MedianOfRst(RstName As String, fldName As String) As Double 'This function will calculate the...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.