473,804 Members | 3,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

strange behavior of UriBuilder.Quer y

When I create a new UriBuilder and read the value if the Query
property, then the query is returned including leading '?'.
Not quite what I expected, but I can live with it (and it is
documented)
BUT, when I supply a new value I should NOT supply that
leading '?', because it is added automatically.
(and this is not documented)

For example: when I do myUriBuilder.Qu ery += "&arg=val", then
the value of Query contains TWO leading '?'s.

Is there a reason for this?

Hans Kesting
Nov 15 '05 #1
0 2494

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

Similar topics

2
1565
by: Kyle James Matthews | last post by:
I am working with the following script for a weblog that manipulates any combination of two variables: $postauthor and $archive. if (isset($HTTP_GET_VARS)) { $archive = $HTTP_GET_VARS; if (strlen($archive) > 15) { die("Sorry, the system cannot process your request. Please contact the webmaster."); } } elseif ((isset($HTTP_POST_VARS)) &&
0
1771
by: William Wisnieski | last post by:
Hello Everyone: I'm having a very strange problem occurring with my Access 2000 database. I call it the "mystery record." Here's the story: I have a query by form that returns a record set in a datasheet. The user double clicks on a row in that datasheet and a main form (pop up) opens bound to a table with a continuous subform bound to a query.
0
936
by: raluca.radulea | last post by:
Hi! How can I set a System.UriBuilder object to parse a ISAPI like url? Sample url: https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&UsingSSL=1&co_partnerid=55&siteid=99 Framework ver: 2.0 When I try to create an UriBuilder with that url, I get Query as an empty string, which is incorrect.
0
2529
by: Sam Jost | last post by:
I want to make a FtpWebRequest to download some files. My problem is: the ftp server does not put me into the root dir of the file system. So I need to access a path like: ftp://ftp.myserver.com/../../var/log/httpd/ UriBuilder and Uri always strip the ../../ part of this uri, so FtpWebRequest can't find the path, I can't download.
0
3574
by: ivb | last post by:
Hi all, I am using DB2 8.1.11.1 on NT with ASP.NET 1.1 When application make connection to database (via ADO.NET), it set "Connection timeout" parameter to 30 seconds. After, when my webpage requests database, and query execution time exceeds 30 seconds, the following error reported: ===
12
20710
by: John | last post by:
I can't get my head around this! I have the following code: <% .... Code for connection to the database ... .... Code for retrieving recordset ... If Not rs.EOF Then ... Do something...
2
1594
by: KDawg44 | last post by:
Hi, I have the following code: $resultSet = mysql_query($sqlString); $numResults = mysql_num_rows($resultSet); echo "Num Results = " . $numResults . "<br/>"; for ($i = 0; $i < $numResults; $i++) { $row = mysql_fetch_array($resultSet); echo "i = " . $i . "<br/>";
0
1027
by: KC-Mass | last post by:
Hi I looked at some tables for someone today who was wondering if the SiteID in each of the product and other tables was in the SiteName table. I used some quick queries that all looked about like: SELECT tblSiteNames.SiteID, tblSiteNames.SiteName, tblProduct.ProductID, tblProduct.ProductName
5
1691
by: JvC | last post by:
Background Access 2003. MDB Front End. I am populating a list box with the names of queries in the system. I am searching for strings in the query names and then creating a value list for users to select from. Problem My users occasionally use commas in query names. When I move the value list to the RowSource of the list box, the commas in the names are being interpreted as list separators. If my RowSource is:
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10562
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10303
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10070
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.