|
Jesse Evans wrote: If that's the case, why do I get the proper string when I insert a Response.Write(Request.Querystring("Format"));
Because the Write method will get the value of the collection, which is a comma separated string with the values of the collection. If the collection only contains one item, there is nothing to separate with commas so the value will be that single item.
Jesse Evans wrote: Also, Response.Write(Request.Querystring("Format").Value) does not print the string. In fact, I cannot find .Value as a property of Request.QueryString in any MS documentation.
Right. My bad. There is no Value property. My memory failed me.
The Querystring method returns an IStringList object, which has the Count and Item properties.
You can use the Item property to get the first item in the collection:
var szMethod = Request.Querystring("Method").Item(1);
As the Item property is the default property of the object, you can also write it like this:
var szMethod = Request.Querystring("Method")(1);
You can also use anything that will get the value of the collection, like:
var szMethod = new String(Request.Querystring("Method"));
---
b { font-weight: normal; }
|
|
|
|
|
Guffa,
constructs 1 & 2 work! Thanks. Strangely, construct 3 does not. Oh well, your explaination makes sense and thanks again for your help with my understanding of this.
'til next we type...
HAVE FUN!! -- Jesse
|
|
|
|
|
hi,
can anybody help me on how to create multiple checkboxes in textarea or listbox in asp
-- modified at 1:36 Wednesday 10th May, 2006
|
|
|
|
|
hi to all,
I use web chart control in my project but when i use showlegend by set it true then this show one extra imagees ( if i use 3 item show in graph then legend show 4 option one is blank image and 3 is which i used.
Problem is that " how can remove that extra image show in legend"
thanks
arvind
Arvind
|
|
|
|
|
Hi guys,
I have a div layout of my website, and I want to test it in new IE. I don't want to do much otherwise Iw will have to rebuild it later.
Is this browser available for download anywhere? I am not an MSDN subscriber/.
Regards,
ma se
|
|
|
|
|
IE 7 will be much more standards compliant than IE 6. You can expect it to render the pages pretty much like Firefox.
---
b { font-weight: normal; }
|
|
|
|
|
I am creating a deployment project. I have used custom action, and installing database. Username and password will be get from user. I also edited password character as * using Orca. But i dont know how to set msiHiddenProperties for the password. Even though the password is *, The parameter shows the password and also in log file. How to hide the parameters and user entered text in log file. and also how to use verbose log method
my email id: haikumars@gmail.com
Thanks
KumarShanmugam
|
|
|
|
|
So what I want is a footer that is *always* at the bottom of my browser window (I'm only optimizing for Internet Explorer if that makes a difference).....
But I want it to be comprised of 5 side by side DIV elements.
I've also got a container DIV elements where everything is inside of it.
I've tried two methods with varying results:
1) Make the footers have absolute positioning with bottom =0. This makes it so one DIV element is at the very bottom but the other 4 don't show up
2) Make the footers relative positioning, this makes it so that they are side by side, but occur after the last element (in other words, not at the very bottom).
3) I tried putting the footers inside/outside the wrapper DIV with no effect.
Here is the code:
#footer1, footer2, footer3, footer4, footer5{
color: #dbdfee;
height: 65px;
width: 20%;
text-align: left;
background-color: transparent;
background-image: url(img/bg_top.png);
background-repeat: repeat-x;
background-position: bottom;
margin-top: 0px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0%;
position:relative;
clear: none;
float: left;
}
#footer5{
width: 19.95%;
float: left;
}
#wrapper-page{
width: 100%;
background: #b4c2d4 url(img/bg_grad.png) repeat-x center top;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
position: relative;
min-height: 100%;
}
Ideas?
Thanks very much in advance!
This is also a question of style... if you're going to have different things going on in each DIV I thought you should divide it into different DIVs... I want to make sure my 5 DIV approach is actually correct.
|
|
|
|
|
How to package website with VB 6 become single file (exe)
|
|
|
|
|
Hi,
I am developing an application using ASP.Net 2.0; When I run the application from Visual Studio .Net, it works fine but when i run it through browser(IE) by writing "http://localhost/AB/Login.aspx".
Following Error occured:
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.
I have also given the rights to the user by running aspnet_regiis –ga <windowsuseraccount>
but the problem still remains the same.
Could anyone guide me in resolving this issue.
Thanks
Regards.
|
|
|
|
|
Hi,
How to use Javascript to draw a rectangle when the user drags the mouse across the webpage?
I know the drawing methods but how do we allow the user to be able to draw a rectangle on the webpage?
e.g When the user drags the mouse across the page and releases the mouse button, a rectangle appears.
|
|
|
|
|
You could probably track the coordinates of the start and end point, then calculate the width and height of a div and place it there. The div would have a border and a transparent image as a background... Don't know if you could click on the controls behind the div dough.
Try it.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I open a new window by using window.open function. But I want to execute a function in the parent window when i closing the new window . Pls Help. Urgent
|
|
|
|
|
We don't f*** care if it is urgent.
You can refrence the window that opened "you" with: window.opener.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Dear all
I want to make a visitors book in my website. But, I am using only HTML , no ASP or such. So my solution is to use a JavaScript. But, I dont know how to connect to the MS Access database using JavaScript.
Could anyone help me in that.
Is there any better solution, any ready made visitors book in the net.?
Thanks a lot
|
|
|
|
|
There are probably hundreds of freely available solutions, if you care to search the Internet for them; try Google. But if you'd like to take a crack at writing your own, this[^] is a good article on general database access using JavaScript.
"...a photo album is like Life, but flat and stuck to pages." - Shog9
|
|
|
|
|
You can't connect to Access using only Javascript. Access is a file based database, and you can't access the file system of the server using Javascipt.
If you used a database server, like MS SQL or MySQL, it would be possible, but not advisable. The connectionsstring would be plainly visible in the source code, and anyone could connect directly to your database and do whatever they wanted to it.
Without using server side code there is no good way to use a database.
There are plenty of free guestbook solutions that you can use. Most of them come with some kind of advertisment, though.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
How do I draw a rectangle inside an asp.net Imagebox control?
The rectangle should be drawn when the user drags the mouse diagonally across the imagebox control.
I have tried and asked around and it seems that javascript is used to draw the
rectangle in response to the mouse dragging.
Edit/Delete Message
|
|
|
|
|
Is possible to close a Windows from an ather Windows?
|
|
|
|
|
Only if you have a reference to that window, or at least the name of the window.
---
b { font-weight: normal; }
|
|
|
|
|
hi this is hassan well i need some help on how we can call a window API in ASP 3.0..actually im on a work to design a browser type thing through FSO so used to read files of every type e.g .doc,.pdf,etc so how can i read all this..and how can i when i want to show a dialog BOX as it appear in the open with case for un recognize files like .bak,.com etc...can any body help me regarding this..if yes plz mail me at revinsclaw@yahoo.com
Hassan Akhtar
|
|
|
|
|
I am using drop down list in my web application (web control not html control) and I am not getting scrolls in my combo box. i have already used style sheet containing overflow=auto/ scrolls but no help. Please tell me how to do it
|
|
|
|
|
Hi,
I have an application that is single threaded that uses a Multithreaded library I have received from a vendor. I'm having a problem where it's intermittantly getting a null exception.
The vendor says to be sure I have set the multithreading option in the compiler. I have looked and I do not see one but I have seen this as an option on some other compilers.
I am using Visual Studio 2003. Anyone know what option this is? I have searched the developers CD but I only find examples how to write multithreaded programs.
Thank you,
Glenn
|
|
|
|
|
Thanks to reply for the previous question.I need regular expression for the following questions.
1.I need to accept e-mail address for user name.Which can accepts letter,numbers,".","@". How to do regular expression for this...
2.I need to accept only letters, numbers.i tried this one.
^([0-9]*[a-z]*[A-Z]*)$, but it is giving error in some case.one of the example is "dfdfdfdf1234", it generates error on entering this value.
Suresh.P.S
|
|
|
|
|
1. Here's one that I use: "^[a-z][\w\.\-%~]*@[\w\.\-]+\.[a-z]{2,4}$". It's based on the standard for e-mail addresses, but it might be a bit more strict than you want, as some people have e-mail addresses that doesn't conform to the standard.
2. Put the ranges in the same set: "^([0-9a-zA-Z]*)$".
---
b { font-weight: normal; }
|
|
|
|