Encode Standard Text Into URL
Is there an easy way to automatically detect and encode a URL within a string? How can I automatically make it so that the link is clickable?
View RepliesIs there an easy way to automatically detect and encode a URL within a string? How can I automatically make it so that the link is clickable?
View RepliesCan anyone explain how ASP encodes UTF8 data? I'm posting single-character
Cyrillic from an HTML page to an ASP, and the 2-byte test characters come up
as 4-bytes each. As follows:
&H04 4D comes up &HD1 00 8D 00
&H04 4E comes up &HD1 00 7D 01
&H04 4F comes up &HD1 00 8F 00
The algorithm I'd tried worked OK for the first and third example above, but
it fails for the second. (No, two out of three IS bad.)
For security reason, we are changing our form submission coding with HTML encode on all the text fields to block the SQL injection. However, we encounter a problem on double byte character (we will input english and chinese character into the fields). If we input double byte character into the HTML encode fields and save to SQL database (our IIS server locale is in English language), the data will be corrupted.Could anyone proivde a workaround solution to solve the above issue.
View Replies View RelatedI have problem with what is seen in address bar.
I need a code to encode my queryStrings and again decode it
in the destination.So ther will be just unkown charecters for users in the address bar
I have tried Microsoft logging format and w3c logging format. My call response.appendtolog "my message" encodes the message and outputs my+message. How can I disable encoding of the message.
View Replies View RelatedI have downloaded and installed an ASP Calendar offered for free by Manohar Kamath from his website. I've modified it to accept two new fields (sStart_Time & sEnd_Time). I want to be able to have drop down selections for the time entry, but do not know how to accomplish this.
Please take a look and tell me if this can be done using the <% =Server.HTMLEncode(sStart_Time) %>"> value for this piece or if there is some other way to accomplish this, please let me know.
If I leave it as the following, it works OK, but I want to make it easier for people who are adding to the database: Code:
Is there a third-party product or something that will allow me to call a
standard DLL (not a COM DLL) from ASP code?
I'd like to display sections of my site using non standard fonts. What i'd like to know is if there is any way of me being able to force a font to install that is stored on my web server, or can i make the client browser look at my font file before the page is displayed?
View Replies View RelatedA friend has told me that links that worked fine in IE 6 on a PC are now not
working in IE 7. The only thing they can see is that these links have the
following common traits:
a) long file names, ie about 30 plus chars
b) underscores in the filenames.
c) They are derived from the old asp routine to force a pdf download rather
than open them up in the browser window.
I'm desperately trying to borrow a PC to install IE 7 (I don't want to
affect my own PC in anyway at the moment) to test this
i have to write same sql statement twice.. is there anyway i can write statement once and call all the values in second combo box ? Code:
View Replies View RelatedDoes anybody know where I can get some standard lists like
- a list of all countries in the world (with abbreviation, international prefix...
- a list of common christian names (aaron, abbey, adeline...
- a list of all currencie
- a list of all language
in txt/xls/mdb or whatever format
Can someone please tell me what the 5 standard protocols of ASP are?
View Replies View Relatedcoding standard in c# what is the best way of coding i mean some developers develop applications through direct query's INSERT,UPDATE,SELECT,DELETE or some developer develop applications through using classes create classes and call INSERT,UPDATE,SELECT,DELETE querys some developer develop application's through stored procedure create classes and call stored procedures i mean i am little confused what is the best way to written code .
View Replies View Relatedwhen some data is being into my database, most of the data is recieved from a form.
2 of the fields are dates, but looking at the db (access) the dates are stored in the '38307' format. - is this the standard way access stores dates?
Now, how do I get it to enter /todays/ date into a column? I thought it would be something like
RecordSet.Fields("LogDate") = today()
but this is wrong, right?
The other date, is to be entered by the user in the form. Now, what is the best way of going about this? It will be in a different column, but in the same format. My default, it would be 'todays' date, but needs the option of being changed. Any ideas? Code:
I've tried several users code, and everytime i try to do the redirect part it fails, this webpage at least gave me a confirm that it is the redirect part failing.
View Replies View Relatedanyone have experience customizing iCode's Everest Standard webstore pages?
View Replies View RelatedI am performing a post from one classic ASP page to another in order to get the value of a string passed between the two pages. I have a client script variable declared to take the value of the value being received in the page i.e. var x = '<%=varName%>'. Unfortunately, ASP seems to be adding a carriage return to the value of varName when it
is passed in i.e. it expands the stated line to var x = 'FieldContents';. I.e. somewhere a carriage return has been added. The string gets passed in OK if I use the Get mechanism. Don't know why this carriage return is being added when using Post mechanism. Anybody seen this before? Is it a bug in ASP ?
I have this problem in controlling a the text in a Text Area. How can I do
that for example the field size is 200, when it reaches 50 it automatically
goes to the next line. Bcoz im having problem when viewing it in my report,
it continuesly views in a strieght line and im having problem in printing.
When using ASP's FileSystemObject to create text files, I am unable to get user submitted text (in Hebrew) to save as anything other than "?????". The text file is being saved in Unicode and setting the CodePage in ASP proved unsuccessful. Strangely, hard coded Hebrew text in an ASP variable does add to the text file correctly.
Any ideas of why this happens and how to get it to work correctly?
I have a text area which I want to limit the number of words or number of text entered into it. Is this possible?
<textarea name="textarea" cols="35" rows="5"></textarea>
In the text area above, can I say limit the person filling in the text area to say 100 characters?
I have a form on asp page that pulls info from a DB when the page loads.
It them puts the info into text boxes on the page that are editable by the
user.
The only problem I have is say in the description text box it should
read "HP Laserjet 5Si" , it always cuts the text off where it just says "HP"
.. It does this on all the text boxes? I can't seem to figure out why it
is doing it. Here is the sample code:
With quotes around <%= vdesc%>
<td><input name="desc" type="text" id="desc" size="45" value="<%=
vdesc%>"></td>
And I tried it without.
I have text in a field coming from a database. The text has various
forms such as:
text1
text1 or text2
text1 or text2 or text3
text1; or text2
text1; or text2; or text3
etc...
how can I parse this with a reg ex? I tried this:
(.+);? or
but it only captures 1 submatch (text1) and only if theres an "or"
after it
I'd like to get 1 submatch for each piece of text separated by the
"or", just the text itself if there is no or.
Anyone know how to do it?
I have this problem in controlling a text in a Text Area. How can I do that, for example the field size is 200, when it reaches 50 it automatically goes to the next line. Because im having problem when viewing text in my report, it continuesly views in a straight line. Can you give me ASP code for that.
View Replies View RelatedI have text - ARI Promise, when I hover over the text I would like a box to appear with the Promise information. It would be several paragraphs that need to be formatted with paragraph and bullets. Is this possible to do? If so how would I go about it?
View Replies View RelatedI have a search page, after search returns value I want to display fields in text box instead of table.
View Replies View RelatedI am getting the above error in an asp page. Not sure why? The error details is given below. Code:
View Replies View RelatedI'm trying to make a text box for comments. I know how to put one value into a text box like name, but i'm not sure how to pull multi-values. I want to be able to display the time,user and comment in a text box. I don't know how to go about this. The comments are stored in a different table and there can be many comments for one policy.
What i did was i have asp code the displays all the comments and puts it into a table, but i want to put this into a text box not sure how to go about it. Here is the code i'm using. the reason why i need it to be in a text box is so the user can update it, does anybody have any ideas. Code:
I have a drop down as below.
<select id="drp1">
<option value="1">One</option>
<option value="2">Two</option>
</select>
I need the text value of the drop down box.
Request.form("drp1").value is giving 1 , but I need the value "One". How can
I do this.
1) How do I check for a text box with a null value?
2) How do I check for a text box that doesn't have a valid number/ integer inside it?
I am trying to create a text box in ASP which automatically populates itself with the person's name who is currently viewing the page.I want it to retrieve the name from Active Directory.The text box populates itself when the page is loaded.
The Active Directory code for name is 'cn'.So when logged on users name = 'cn' display the name in the textbox.
I'm putting a standard mail page together, that will allow my users to
sent templete emails out to people.
The files are stored in textfiles.I have come up with a script to produce the names into a Select list, but know i'm wanting them to be read into a textarea box,to allow me to submit them into from the form into the sendmail.asp page! but the only way i can pass them out, is into a iframe, whichd oesn't seem to allow me to then pass them into the sendmail.asp page.
I have an ASP page to be used as a Softball Roster. The user will enter their roster information and the information will then go into a SQL database. My problem is this... I keep getting this error "String or Binary Data would be truncated". I figured out what this message meant and I have printed my variable to the screen to see what I get.
As an example what I get for my variable PlayerFirstName is Joe, John, Henry, Alex. I only want one name at a time so that I can import them into SQL. How do I parse my line apart so that I can loop through it and pull off only one item at a time and put it into SQL?
how can i write a line to a text file? also, how can i put every line of a text file into an array - and see whether a value mathes any of the lines in the array?
View Replies View Related