Commit And Rollback In ASP With JAVASCRIPT LANGUAGE (not VBS)
I need to have transactions control with JAVASCRIPT ASP LANGUAGE (server-side, not client-side...Remember asp can use VBS, JS or Pearlscript).
I have one table A and one table B (1:n) and so i need to use INSERT(table A), SELECT (PK from table A) and INSERT (n times in table B).
In the end, i need to return to ASP if the transaction was commited or rolled back!...if i didn't need that, i could just make a big sql string to send to the database, but if i did, how would i return the result to the asp?
seems like alot of things in ASP VBSCRIPT dont have equals in ASP JAVASCRIPT. tryign to do a lowercase on a string "101:121:212 ABCA" so it becomes "101:121:212 abca"
LCASE doesnt work , get error so i assume its not in the JScript version of ASP.
i can display the results ok, but if i return 100 records from my table i would like it to display 5 records per page. i have looked at asp recordset paging on several sites, however cannot find any scripts that work with ASP JAVASCRIPT....
I am runnig a Oracle procedure(this inserts records in table)with asp.command object.I dont want to commit the inserts, I want to turn auto-commit off when I execute this procedure.Can this be done in ASP,if so,can some one give me a example.
While scouting around this group, I've stumbled upon this ASP script which deals with rolling back transactions -
'-- Error Handler if oConn.Errors.Count > 0 then oConn.RollbackTrans Response.Write("FAIL") Response.End Response.write(err.description) end if
Which has given me pause to wonder if what I am doing is correct. I'm basing my rollback on the err.number not being 0 (sample code below).Is this ok, or should I be using the conn.errors.count property instead?
Is there any way of rollback any changes made by the file system object in the event of an error. I delete a file and copy one somewhere and the copy fails is there anyway to rollback the delete. Essentially a file system version of a transaction.
I have a problem with displaying data from a database where text is written in slovenian and in czech. The accents aren't displayed. What can I do to display all the accents in Slovenian and Czech?
A word in the database: prijímání (f) Displayed on my ASP page: prijímání (f) (the accent at r is missing)
My database is a Access-2000-database. All the accents are displayed in the database.
I really want to build mine using classic ASP as this is the language my trusted friend has a talent for.This seems to make sense in the short term. However I worry about the lack of social networking sites built with ASP.
There must be reasons for this. So plan to recode using PHP and transport existing database across once I have earnt enough from the website to pay for the services of a qualified person.Is this plan sensible, should I stick with my friend and ASP OR should I code with PHP from the start?
I have built a couple using a little ASP code for example the 'include' comand. The server I am using obviously supports ASP but I want to move to another host but they dont support ASP.
What other language would be similar to ASP. The new hosting site supports cgi, php and ruby. I know nothing about any of these. I may want to be able to access a database in the future or add a message board to a site so the language needs to be a bit interactive.
I'm looking for the best solution, for example, I don't know if it's better to have all the text in the page in all languages and then select it with a querystring:
page.asp?lang=1
And in the code:
lang = CInt(Request.QueryString("lang")) If lang = 1 Then ' xhtml for language 1 else ....
I don't consider this a good solution, it's a nightmare to update.Maybe storing text in a database? XML? I would like to hear your suggestions and opinions about best methods.
how to have multiple language asp pages? For example, you have a database driven website that you want customers around the world to use. How do you setup the asp pages so that it is easy to change the text based on where the user is connecting from?
Since ASP server scripts use VBScript by default, does it mean it is redundant to put the following in ASP page? Then when do we need to use this? In client-side VBScript?
I have learnt how to use some aspects of php. But have got a little stuck on databases. Are there some easy examples to follow from the internet on how to modify databases in asp?
Is asp very similar to php? In the sense that you can achieve the same things with it?
is there an online dictionary that I can use to learn asp? especially one that can be kept and stored offline(I am not on the internet at home)
I have no idea what would cause this because my system setting is set to English and all of my other programs that use the date and time are doing it in English but my ASP seems to be giving me the date in Italian For example..
WeekDayName(WeekDay(Now())) = venerdě instead of Friday.
I have some dynamic pages like asp files and the data comes from database. What I need is to display the page content to diffrent languages. Suppose user selects Germany and the page content changes to german language.
What's the best way to toggle two different language on the web site using asp. Some web sites seem to store html links in database and call it on demand. Please advise and show the best way to program it.
I want to make a website both in English and in French, I dont know how to design the database (same for both ) or different.
Can anyone of you suggest me how can i make a website for more then one language. The two versions of the website will have both the graphics and contents different and there is a search option too.
How can i search an english database with a french keyword?
My set of .NET 2003 CDs has 2 .net cds; 1 prerequisite cd; plus msdn. I get to a certain point in the installation and it prompts me for the English Lanaguage CD and I don't know what this is. I bought the set from someone who didn't want them any more - did I not get one of the CDs?
I want to watermark images already on the server, on the fly as they're being called. I've found some PHP scripts that do it but I need them in an ASP environment using either VBScript(preferred) or Javascript. Anyone have any ideas or suggestions?
I'm sort of trying to force my way through some manuals and w3schools trying to pick up asp. i'm farmiliar with PHP so i figure it will be a breeze there's just one general theory idea i don't understand. if ASP can be written with either javascript or vbscript. then is ASP just adding the <% %> tags around the code?
something like "Session.Timeout" or "response.write" this doesn't look like VBScript to me. are these elements of ASP, VBScript, or something else?
I hope you can understand my question.I'm sort of confused with the languages / where to look to find information because i dont know what to look for.
text into the text box with shift+alt key. A normal user is unaware of it. ifI upload pages into my remote domain. There how a person who has not installed arabic in his pc is able to enter arabic. now i think my concern will be more clear to u if u need some further assistance then don't hesitate to ask.
Iam working on a search that needs to fetch words from other languages for any given word entered in english. I use an access database to store the english words and its equalent words in other languages. For example:
When i search for chinese equalent of Invoice (or any other word), the retrieved result is?.
I see that ASP allows you to specify the scripting language of your choice - including (if you get the COM object) PERL, REXX and more. That seems pretty good, I think.
Out of the box, it supports VBScript and JScript.
The question is (and I know that personal preference will come into this) what would you choose to use out of JScript and VBScript? Does one actually have more capability than the other?
I am currently creating a multi-language site using ASP .NET and was wondering what people think the best way to do this. Keeping a session variable of the users's choice? Cookies?
How do you obtain the nationality of the person surfing to your site in regular ASP not ASP.NET? Windows CE's webserver supports HTTP 1.0. I intend to use Windows CE's webserver.
I am learning them and using them in a project simultaneously. I felt VBscript is a little primitive when it comes to error handling. I mean I can't put "On Error Resume Next" command before every code line of the program. That's one of the problem I came across so far - and for me it is a major draw back to develop a application with no or little error-handling.
which is better to use along with ASP - VBScript or JScript or JavaScript. As I don't have experience using them, I can't judge which is better to use in a real time project.