Single Char Of A Cookie Value

I have a cookie like this:

Request.Cookies("connection")("permission")

with the value: YNNYNNYYYN

how can I get the single chars value? Y, N, N...

View Replies


ADVERTISEMENT

10,000 Char

If i wanna insert the length more than 10,000 char , How ?

View Replies View Related

Last Char Is In A Session

what i am trying to do is i have a session called "link" and in that session is a web address "http://www.google.com/" and what i am trying to do is if the last char is a "/" then i want to remove it .

View Replies View Related

Microsoft SQL Char Length

I previously had a post on a problem with the Microsoft SQL server, when I was trying to compare a record in the database with an inputed record, if the record in the database was not exactly the same length as the inputed record, it would not match. i.e. user codes = OAK,BRANT,QUYOU etc.

Unfortunately these records have already been made and they vary in length from 2-5 characters. Im programming in VBscript, does anyone know any functions which will rectify this problem?

i've tried the trim function but this has no effect, I could just change the length of the column so that they are all a similar length and thus will all be comparable, however this is certainly not ideal as an id code only two characters long is not unique, some of the records will clash.

I would like to avoid changing all the records as there are 25 different codes for about 10,000 records. im sure there is some code which could accomplish this but ideally I would like to solve the problem at source.

View Replies View Related

IE Appends Char 20 On Printout?

i'm trying to printout normal text from IE using Generic Text Driver
like so:

B10,10,0,1,1,1,100,N,"13123123"

problem is in the printout itself (if i use the print to file to debug)

IE keeps appending char 20 charachter to each line which screws up my
printing (trying to printout to a barcode printer)

View Replies View Related

Escape Char Information

is escape char in asp script and how we can encode the url in asp script?

View Replies View Related

Find Position Of A Char In A String

i have a string and want to find the position of the first '-' in it.
example i have :

"RCD-0-183"
I need to output : 0-183

View Replies View Related

Max Char Length Of POST Variable

Can someone tell me the maximum character length of a variable passed to an ASP page via a POST form (i.e. not through the querystring)? I read somewhere that said it was 1024 characters but that can't be right.

View Replies View Related

Adding Randomal Char To String

i got a string- for example the word "CodingForums" i want somehow to add randomal char- for example "0", 3 times the output can look like this-

"0C0odi0ngForums" "Co0ding0Foru0ms" "Co0din0gFor0ums" "0CodingForums00"
what is the best way to do this?

View Replies View Related

Response.cookie In Session_onstart Event And IE 6.0 Cookie Acceptance

When I set a cookie in global.asa in the sub session_onstart, even if
I have "privacy" in IE 6.X set to "block all cookies" the cookie is
still set, and I can get it on other pages.

I can't find an article that addresses this as a specific issue. Why
does the browser get the cookie when it is set in the session_onstart
event even when I have "block all cookies" set?

View Replies View Related

Char Encoding In Asp Send Mail Via Form

I have this piece of code in an .asp file. I call this file through a form and I send an email

Set myMail=CreateObject("CDO.Message")
myMail.Subject="my subject"
myMail.From=Request("email")
myMail.To="myemail@mail.com"
Dim Body
Body = Body & "Name: " & Request("name") & VbCrLf
Body = Body & "E-mail: " & Request("email") & VbCrLf
Body = Body & "-----" & VbCrLf
Body = Body & Request("the_message") & VbCrLf

myMail.TextBody=Body

myMail.Send
set myMail=nothing

The problem is when I try to fill in the form with greek characters. They appear in the email as ????? or very confused characters with no recovery.

View Replies View Related

Doesnt Display Char Type Data Field Length 1

I have one field char type data length 1.. It has data either 1 or 2 in all the field tht I have checked through enterprise manager.

I'm running query:

"select * from table" and fetching all the records and displaying...

It display all the data except data from this field..Doesnt display anything..

I had put Response.write rs("fieldname")

What could be the problem?

View Replies View Related

Session Cookie Vs. Regular Cookie

I want to know what's the differences between session cookie and regular cookie.

In ASP, when we create cookie, we do the following to identify an user:

Response.Cookies("name") = value

Is this regular cookie? How about session cookie? and when to use which?

View Replies View Related

String Manipulation Problem - Mid() To Extract 400 Char But At A "."

Ok, given a string up to any length, lets say 1,000 characters. I want to only display no more than 450 characters, but I want to end the string where a "." is found. In other words, have it go the 450 character, then from that point backwards, find the first "." That will be the end of what is displayed. I don't want hanging sentences in other words...

View Replies View Related

Single Value

I have been using recordsets to access data from a database.I then loop thru each row in a dataset and assign the values to the objects on my web page.The particular sql stmt that I have right now, only returns a single value from a database. I need to assign this single value to a variable in my asp code. Can I do this without using a recordset?

If I have to use a recordset, do I just do var1 = recordset("columnname") (I ofcource create the connection object, the sql stmt and stuff first).

View Replies View Related

Return Single Value In Asp/sql

I'm assuming this can be done, but I can't seem to get it to work... I'd
like to easily return a single value from a sql statement, something like:

"intNewItems = conn.execute "SELECT COUNT (ItemID) WHERE ItemDate = Date()",
where conn is the connection object, etc. What am I getting wrong?

View Replies View Related

SQL And Single Quote

I have a simple form submission but the problem is my SQL insert (or update) is failing if in the text field there is any single quotes (')
I tried running the like replace(textfield,"'","") to just remove them but it will still error out on me.
is there any other way to format the variable, do I need to use an escape character?

View Replies View Related

Single To Integer

I am trying to send a 'single' data type to a sql server db cell that is formatted for 'decimal' from asp/ado code and it is converting it to an integer. Should I be using some other data type in sql server?

View Replies View Related

Single Sql Statement

can i delete related data from 2 tables using a single sql statement? is my code correct? correct me if i wrong. i want to delete data where user click the delete link.
Code:

sqlDelete = "DELETE FROM Reservation R, Quotation Q WHERE R.resID = " & request.querystring("id") & " And Q.resID = " & request.querystring("id")

View Replies View Related

Single Record

I have a table with one header, everytime I use this code (below) it returns EOF and I know for sure there is at least a zero there:Code:

set rs = server.createobject("adodb.recordset")
rs.open "SELECT myonlyheader FROM mydatabase", "dsn=whatever"
response.write rs("myonlyheader")
rs.close
set rs = nothing
What am I doing wrong here?

View Replies View Related

Using XML For Single-sign On

I am looking to implement a single-sign on solution for my company's website which has many partner websites scattered around the globe.

I want the members to be inconvenienced as much as possible, so if they log into one website, they are logged into all of them. As each website exists on seperate web servers in different locations, this makes my options a little tricky.

Has anyone had any experiences of single-sign on? I only know a little of XML, but I understand that this kind of thing can be achieved using XML over SOAP.

View Replies View Related

Single Sign On

point me to resources that will tell me more about enabling a web application to tegrate with windows security for single sign on

View Replies View Related

Single Quote In SQL

Running into a what I thought should be a small problem but it's going on an hour and I still can't figure it out

Reading an excel file and running queries on Sheet names. The problem is when there is a single quote in the sheet name.

selectQuery = "SELECT * FROM Dave's Sheet"

I tried to use

selectQuery = "SELECT * FROM Dave's Sheet"

But that doesn't work either.

It keeps bombing the query. Not matter what I try I can't get this to work. I can't replace the single quotes because then it can't find the tab name. Any ideas?

View Replies View Related

Single Quotes

I've got an HTML page with a series of links that are intended to search a category listing in a database.

for example

link 1 has a querystring of "?subid=Boats"
link 2 has a querystring of "?subid=Cars & Trucks"
link 3 has a querystring of "?subid=Men's & Women's Outerwear"
etc

As long as the subid doesn't contain any single quotes or any special characters such as the "&", my SQL works ok and the records are retrieved. 'm using Request("subid") to get my querystring value.Is there any way I can escape the single quotes or other special characters in the Request("subid") so it won't break the SQL?

View Replies View Related

Single Quote

how i could insert data into my DB that contained apostrophes. for example, I wanted to insert Bailey's well, my SQL statement was being cut off when it hit the ' and i was getting all sorts of errors. i was writting some complex stuff to take out the ' then re-insert it when being displayed.lots of work then i thought, what if i replace my ' with " in my insert statement.

like i said, some of you may know this, but i thought id share my experience with you just in case someone runs across the same problem.

View Replies View Related

Modify Single Value

I've built an array like this and I've put it into an application:

Code:
If not isArray(Application("utenti"))thenDim online(1,4)online(0,0)=4 online(1,0)=1online(0,1)=5online(1,1)=1online(0,2)=7online(1,2)=1online(0,3)=9 online(1,3)=3online(0,4)=15online(1,4)=3application("utenti")=onlineEnd if
Now is it possible to modify some values in this application-array?For example trying to set the value in position 1,1 equal to 3 I wrote: application("utenti")(1,1)=3
or

Redim Preserve application("utenti")(1,1)
application("utenti")(1,1)=3

View Replies View Related

Single Sign-on W/ASP

I'm building a few web sites that will use distinct domain names but will reside on the same server, at the same IP address, in the same application space, and will share a database. They will each provide different content depending on the domain name, but will share some core functionality behind the scenes.

What I'd like to be able to do is have one site serve as the primary site. If a visitor comes to one of the secondary sites and wishes to perform a function that requires them to be logged in, I'd like them to be able to log in only once and then be able to visit any of the sites without having to login again. Does anyone know of a pure ASP script-based single sign-on system?

View Replies View Related

Single Quote In URL

I am having a problem with a single quote in my URL. I use HTMLEncode and all is good on my machine, but when I test it with a browser from a different machine, I get 403 on invalid characters. More, it seems to me that the URL gets truncated after that single quote that I have in my URL.

View Replies View Related

Single Quotes ( ' )

Access 2000 doesn't allow single quote when updating records from the webpage. If the user need to insert for example the name O'neil in a field it will create this error:

Syntax error (missing operator) in query expression ''O'neil', r_add1 ='Auburn', r_add2 =' ', r_city ='AUBURN', r_state ='WA', r_zip ='98001' WHERE r_id =279'.

Is there a script I can use to accept the single quote as part of a string of characters?

View Replies View Related

Single Code String

I have a problem in inputing single code(') string into the SQL database. I wrote in ASP language and connect to the SQL server to insert the data.
If the data contains single code string (e.g women's group)the syntax error appears and it stops.
I tried to change the double code(")instead of single one to insert the data and then, it also has error "does not permit column name ...." or something like that.
How can i solve the problem to input the data that contains single code(')?

View Replies View Related

Returning A Value From A Single Function

I would like to know if I can some set a variable to return a single value
from a function using the set command. Is this possible? Code:

View Replies View Related

Rule For Single Quotes

what is the rule for single quotes around a value name in a strsql?
y do you have to do it sometimes?

View Replies View Related

Single Quote In Link

I'm trying to produce an image with a javascript link. The problem seems to
be with the single quote. Here is the code that I wrote:

response.Write("<a href='javascript:PopUp('http://www.yahoo.com')'><img src='image1.jpg' width='50' height='67'></a>")

When I preview the page and roll over the image, the link is truncated to just javascript:PopUp( .

I've tried creating the link with a string like below.


strLink = "javascript:PopUp(" & " ' " & "http://www.yahoo.com" & " ' " & ")"

The string displayed properly when printed on screen, but when I tried to use it as the link it truncated again. I'm not real sure what to try next.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved