o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

need to return value from jscript to vb.net (am using response.write) -

After much searching I have finally figured out a way to call a jscript "confirm" box from serverside vb.net code. The code I am using is as follows:
Dim sb As New StringBuilder("")
sb.Append("<script language='javascript'>")
sb.Append("if (confirm('Are you sure?')) {document.submit();}")
sb.Append("</script>")
Response.Write(sb.ToString())
Unfortunately, now I can't figure out how to pass the value returned by the "confirm" function back to my vb.net code.

Anybody have an idea for me?
JT

 

need to return value from jscript to vb.net (am using response.write) -
After much searching I have finally figured out a way to call a jscript "confirm" box from serverside vb.net code. The code I am using is as follows: Dim sb As New StringBuilder("") sb.Append("<script language='javascript'&


Interaction Jscript - and Data -
Dear forum my web page is created whit ASP.NET Inside the page, i write a jscript that do some work. Question is how is possible to send data ( from APS or from my PC) to the jscript programm, so jscript elaborate them Thank very much Roberto


HOWTO: Use Multiple Scripting Languages on a ASP Page and call each other's functions -
Yes, you can call a JScript Function for VBScript and vice versa. TIf you don't have Perl installed, snip out the apporpriate sections - and ASP or something tries to call a sub Write in PerlScript, so I had to stick in a dummy function to stop an error. Code: <% @LANGUAGE


Mixing Jscript and ASP -
Hello, I have some jscript which checks the browser version. I now want to add some ASP code (<%response.redirect "newpage.htm"%>). How do I do this?? I dont know Jscript AT ALL - "stole" the code somewhere!! Thanks, T


Format Text in Asp easy q's :) -
I have an out put, and i want it to be a certain text font, but i dont know how to do it. It seems the ASP just puts out normal courier and iwnated to format it like the rest of my pages. This is normal asp, not asp.net [highlight=VB] Do While not rsGuestbook.EOF 'Write the HTML t


Add JSCRIPT TO ASP oRs -
How can I add a jscript function to this line? response.write "<td align='left' valign='top'><font size='2'><B>" & oRs("question") & "</b></font><br>" & "</td>" & vbCrLf Reason is I wa


newline -
Why does this code not give me a newline when i view the source in the browser. Response.Write "<table width=100% align=center cellpadding=0 cellspacing=0 border=1>" Response.Write "<tr bgcolor=#c0c0c0><td>ID</td>" Response.Write "&


Another cookie question -
I have a web page that connects to a database (SQL server) and loops through the data and generates a list of links to go to different areas of the site. When the user clicks the link I want to write a cookie so I know whick link they selected. Here's how the link is created. <


Response write unavailable -
I got a really wierd message when I tried to add a response.write I added a class to my project that would handle db access I have the colde like this: Public Class DBAccess Public Function GetPurchaseOrderLines(parameters) As DataTable Try //perform all


ASP inside local script -
I want to write ASP indise local script tags so that I can make dynamic functions, obviously this is not possible because I tried doing it and i had errors, is there anyway around this. e.g. <script language=jscript> JScript here <% ASP code here %>


Howto call Jscript code from webpage -
I have some code written in JSCRIPT, which I need to can from my webpage(an image link). How can I do this? I need one parameter from a session variable into the JSCRIPT function. I know how to do it with javascript, but I am unsure how to do it with JSCRIPT... kind regards Henrik


Anyone knows what JScript does -
I am pretty sure JScript and Javascript are not the same thing right? JScript looks like a cross between Javascript and VBScript. Why would one use JScript?


Working with a table in VBScript -
hi everyone! Thanks for viewing my post. I have these lines of code that will populate a table based on records, but I am having a problem, not all records required will be available. Let me post the code first and explain what I need for it to do. Code: do Until rs.EOF if


Read a database backwards -
Hi, Ive written a basic guestbook in asp, However at the minute its reading the newest message last (at the bottom) by using: <% Set Conn = Server.CreateObject("ADODB.Connection") Conn.Provider = "Microsoft.Jet.OLEDB.4.0" Conn.ConnectionString = &q


Error: ADODB.Recordset (0x800A0BB9) -
Hi, I am receiving this error and havn't a clue why: ADODB.Recordset (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. PostMessage.asp, line 285 Here's my code, which the error is pointing to: Response.Write


Jscript vs VBscript -
I was reading the Jscript language reference and I had a question. It seems to me that both Jscript and VBscript use the filesystemobject in the same way. Is this true or am I just looking at this the wrong way? Also is VBscript EVER compatible with Netscape?


How to bind the data to a datagrid -
I have the following i am able to see the data under reponse.write, please can you help me bind the data to a datagrid(datagrid1) result1 = myobj.getSubCategoryList("MOT-V300", "GSM", "jamaica", 294, 1, 1) Dim i As Integer Fo


asp and jscript -
hi! i have a sticker progrem that print stickers 3 in raw according to what the user requested now i put a textbox that the user will write how many times he want the printer to print the selected stickers i am working with asp and jscript and i dont know how to do it?


Server.GetLastError() in ASP -
I am just starting out on ASP and was trying to raise an Error and retrieve info about the error by making a call to the GetLastError function of the Server class, but instead what I get is the plain vanilla IE error reporting (see attachment for a picture of what my IE looks like when


Web Browser security -
I'm trying to build a protect pages via login, I would able to see the result in IE5.0, but not with Netscape 4.5. The following is my code: This is securitycheck.asp &lt;% response.expires=0 if session("securitylevel")&gt;1 then ' nothing to do else respo


How to use jscript confirm in VB.NET -
I would like a message box on the client side. Everyone says to use jscript confirm, but how? Here is what I have so far. No errors but no confirm either. Function jscriptMsgBox() Dim response As Boolean Dim strBuilder As StringBuilder = New StringBuilder()


Redirect Response.Write output -
I have a problem... I ahve a link on my page where I create an excel file of a recordset.. here is the code: //Print as excel Response.Contenttype="application/vnd.ms-excel"; Response.Write("<table border=1><tr>"); Response.


Loops help me pls :( -
ok, is it possible to do "Arrays" in ASP ?? I know its just VBScript but I cant remember how to. and anyways I dont know if this is possible through arrays. OK, here's the scenario: I have a couple of variables listed as "Text1, Text2, Text3, Text4" resp


sql Query in asp only getting half of selected fields -
I am trying to select 8 fields but when I try to access fields 5 & 6 there is nothing in them but there is in the other fields. the info is in the database I know for sure. Here is my sql string: strSQL = "SELECT " & _ "termscondid, " & _ "Sta


JScript JavaScript -
I saw a book today about JScript .NET...so I guess that I got a ind of confused. Is JScrikt and JavaScript the same thing??? Isn't .NET microsofts framework. Why do JScript have a .NET book????


Adding newlines in your ASP Response.Write statements -
When I loop through things and use response.write multiple times in a row, I end up with a big long string of HTML, not the pretty formatted source I want. It works fine, and I have been happy up until now. For some reason I want neat and formatted HTML code sent to the browser. How


System DSN - no records -
I am trying to connect to a System DSN and when I run this I get no data showing just a small block representing the table. I am sure of the dsn... Is this code correct? The DSN has a pswd: 123456.. If it does not work it show me something, no>? <%@ Language=VBScript %&g


JScript replace() help needed! -
Ok, I have a sql server database, and when I gete the date I get it as 2003.01.12 ... and this crazy format doesn't work well when I export the data to access, so I want to replace "." with "-"... My code looks like this: var s1= new String; var s2= new Str


<Resolved> what's wrong with this -
Hey u all... I have recently started using JS on ASP, but somewhere something went wrong: I could'nt compare two strings!! Code: <%@ LANGUAGE = JScript %> <html> <%var tester = (Request.QueryString("t")), oConn, oRs, filePath, r,i=1,b=false; filePath


radio button that disables checkbox -
ok I am trying to code in a radio button that when checked disables the checkbox next to it, but only the checkbox next to it. I can get the checkbox disabled, but then it disables everything. thanks in advance here is the code: Do Until lrs_system.EOF x = x+1 If x = 1 t


Response.Write positioning -
I'm using Response.Write in my TRY, CATCH, error trapping on my VB codeBehind page. Two questons...Can you position the Response.Write? It pops up on the upper left side of my page and I have a .gif there. Also, can you change the font color of the message?


Response How -
Is there a way to Use the Response.redirect method and have it Just update a Frame Rather than the Whole Browser? And How would you Access a Frame using VBScript? I know that in JScript you can use Parent.frames("main")..... But I need this to be in VBScript... Mainly be


Response.Write for Check boxes -
Happy Friday all, I have a few check boxes on my form and what I am trying to do is when they are check their values write over to my confirm page. This is what I have so far: <% If Response.Write(vbAccptSif)="on" then response.Write("AccptSif")


[2005] How to return Unix style charage return without ^M -
I have a device running Linux (ADSL router) which sends an inform string to my VB.NET page. I build my response string and return the values using the following code: .... responseText.AppendLine("text1") responseText.AppendLine("text2") Response.ContentTyp


preloading data into outlook -
hi, just wondering if someone out there can point me in the right direction, I am developing an app (asp) which the users want to copy ther data out into there normal applications (office- word/excel etc..) so we have given them a button and created an the relevant info in a h


Funky! rs data by columns not rows -
i am trying to creat funky tables so my data is returned by columns not by rows. Ok! Not so funky! --------- Here's what I have done so far which works ok but - me thinks there is some clever math way to do it involving less code ------------------- Thanks in advance for any i


Response.Write Error -
Response.Write Error I am using Response.Write in a class to write HTML code when i call the method stored from that class... but am getting an error: "response is not available in this context" what should i do?


replace function..... -
hi i have one textfield to replace single quote and double quote into 2 single quotes but when i display i can onli display single quote but for the double quote i did not displayed out so can enlightened me...thank alot.. countryName = repalce(request.form("CountryNameTF&qu


Question about Server-side JScript -
Ok, most of you know that you can output a new line in vbscript with vbCrLf. Is there anything like this in jscript?


cookie not working - help needed! -
I need help with the script below. If the cookie is set, a message should say so. If not, a message will say so and then set the cookie and it's value. for some reason this does NOT work: Code: <% Option Explicit Response.Buffer = true Dim expDate, aspPoll aspPoll =