Ok, thanks. I'm still transitioning into ASP.NET.
I have a comboBox that I need to modify the height. I do not know where to all the JavaScript from. I tried using the "RegisterClient ScriptBlock" in the code-behind but was unable to get that to work due to my lack of experience....
User Profile
Collapse
-
BC30456: not a member of 'ASP.default_aspx" - ASP.NET
I have a javascript function which I am trying to call in an ASP.NET page but I receive the following error:
"BC30456: 'FixComboHeight is not a member of 'ASP.default_as px"
Javascript Function:
Code:<script type="text/javascript"> function FixComboHeight() { var combo =<%=cbMSDivision.ClientID%>; combo.FixUp(combo.InputDomElement,true);
Last edited by jhardman; Apr 1 '08, 11:02 PM. Reason: moved to .Net forum. ASP forum is for "classic" ASP -
Custom Control Not Rendering Properly - VB - ASP.NET
I have a custom control that I did not create. It is made up of many classes and is rendered dynamically. Perhaps none of that really matters.
The control renders properly on the first load when the Page_Init, Page_Load, etc. methods are called. However, when these events are not called then the control does not render properly.
How can I debug this?
The ASPX page itself has:
Code:<%@ Page
-
OK, Here I think I have the answer:
What I think was happening is that when I was converting to string:
strTitle = CStr(<%=mobjSys tem.DescrShort %>)
The result would be:
strTitle = SOPs - Research Pilot Brewery
This would result in an error: "Expected end of statement" - Error 0 .
When I used strTitle = CStr("<%=mobjSy stem.DescrShort %>")...Leave a comment:
-
That is a good point. It will not read strTitle = CStr("<%=mobjSy stem.DescrShort %>"). The error reads "mobjSystem " required....Leave a comment:
-
Converting an Object to String
I need to convert a data object to string.
Currently, my script follows as:
strTitle = CStr(<%=mobjSys tem.DescrShort %>)
When this is compiled it appears as:
strTitle = CStr(SOPs - Title1)
The error I get is that a '0' is expected. I've tried different variants with no success. The reason I want to convert it to string is to later pass it as part of a URL: Server.URLEncod e(strTitle)... -
That gives me two errors:
1. Expected ";" @Code:function PROCTest()
Code:<body ONLOAD="PROCTest()">
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <SCRIPT TYPE = "text/javascript"> function PROCTest() { window.location.href = "\\\\BABBROFFIL001\\Groups\\OPIM\\BrewSchd.exe%20'"'\\\\BABBROFFIL001\\Groups\\opim\\Sched'"'";
Leave a comment:
-
The code below almost works. The app starts up but then will not accept the parameter properly. I get the message that path "\\CL001\\Mart\ \op2\\Test" does not exist.
Like I had mentioned before, in the command line I have to use a /p to properly pass the parameter: \\CL001\Mart\OP 2\Test1.exe /p '\\CL001\mart\o p2\Test'
Code:<HTML> <SCRIPT language = "javascript">
Leave a comment:
-
Thanks the response. I have tried location.href but get the error "Object Expected":
Code:<SCRIPT LANGUAGE="javascript"> function PROCTest() { document.location.href = document.location.href = "\\\\CL001\\Mart\\OP2\\Test1.exe%20'"'\\\\CL001\mart\op2\Test'"'"; } </SCRIPT> <html> <head> <title></title>
Leave a comment:
-
Pass a Parameter to an .exe
I need to pass a parameter to an executable either via URL or link or script or whatever but nothing is working.
The .exe is: \\CL001\Mart\OP 2\Test1.exe
The parameter is: '\\CL001\mart\o p2\Test'
A direct type of this in the URL works:
\\CL001\Mart\OP 2\Test1.exe /p '\\CL001\mart\o p2\Test'
However, if I type this (\\CL001\Mart\O P2\Test1.exe /p '\\CL001\mart\o p2\Test') into... -
Um, you could be right. The pdfs cache when I open the html independently of the rest of the site. However, if I link to the html page then no caching. What is the difference?
Here is the changed script:
Code:<SCRIPT type="text/javascript"> var pageNo; var nav; pageNo = 1; function makeIframe(nav) { if (nav == "f") { if (pageNo
Leave a comment:
-
Dynamic IFrame Creation Caching Problem
I've been working on this problem on and off for a while now. I need to dynamically embed a pdf into an iframe. It works fine but the pdf is not caching. I assume that this is because the iframe is dynamic so that each time a new pdf is opened, a new iframe is created? Is there a way around this? I moved this from asp to html so that it supposedly WOULD cache the pdf. Could it be because...Leave a comment:
-
The SQL output I get is:
Update TimeAct set reviewerNotes= 'ddd', Flagged = 1, FlaggerID = , FlaggedDate = '7/25/2007 2:37:26 PM' where [ID] =
If I change the code to:
Code:sql_update = "Update TimeAct set reviewerNotes= '" & replace(request("reviewerNotes"),"'", "''") & "'" sql_update = sql_update & ", Flagged = 1, FlaggerID
Leave a comment:
-
Classic ASP Variable Question
I have passed some variables via a querystring to an asp page. The variables are passing ok but when I try to concatenate them into a string sql statement they are not appearing:
For example:
Code:dim RecordID, callerPage, FlaggerID RecordID = Request("edit") callerPage = Request("callerPage") FlaggerID = Request("flagger") 'Response.Write
-
Dynamic IFrame Creation Caching Problem
I have succeeded in embedding PDF files in a dynamic iframe. The problem is that I need the PDF to cache. If the PDF remains the same from page load to page load then the pdf is somehow cached with the html page. But if I try to navigate to another pdf in the IFRAME then no caching occurs. Is the problem in the IFRAME reloading instead of just refreshing the pdf?
[CODE=javascript]<SCRIPT type="text/javascript">... -
Passing a JavaScript variable as the src of an EMBED
I am no longer good at Javascript and need help. I'm trying to embed pdf files in html then build some sort of navigation between the pdfs via the pdf numbered file name.
I can generate the javascript functions to extract and manipulate strings, ints, etc but can't seem to deal with the variables I produce.
For instance, if current embedded pdf filename is "1.pdf" and button "Next" is clicked then... -
Great observation, thanks! That was helpful.
I also didn't have a value correct:
Code:response.Write cstr(userRefNum) & "<br>" valuez = (cstr(request.Form("txtSelectedValues"))) <---------------- selectedArray = Split(valuez, ",") For Each item In selectedArray todayDate = day(now()) 'check to see if record exists 'if so then
Leave a comment:
-
Data Field Via Array Not Saving
I have an asp classic page. All the data is saving properly except for data selected from a multipl-select list box. I'm not sure what I am doing wrong.
everything seems to be ok until the loop through the array. I have a "dim item" declared earlier in the code but am not sure that is sufficient.
The first two reponse.write snippets print to screen fine but the last one:
"response.w rite sql"... -
Hi,
I've run into the same situation described above. It seems that using an array as well as another recordset would be ideal for me. do you have a sample of the code you used to make this work?
Thanks,
cjLeave a comment:
-
sorry, i figured this out. never fails - i work on an issue forever THEN post the problem THEN i solve the problem.
I needed to use a plain connection:
conn.Execute(sq l)
thanks, cjLeave a comment:
No activity results to display
Show More
Leave a comment: