User Profile

Collapse

Profile Sidebar

Collapse
polymorphic
polymorphic
Last Activity: Mar 31 '08, 02:20 PM
Joined: Oct 15 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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....
    See more | Go to post

    Leave a comment:


  • 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);
    ...
    See more | Go to post
    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
    ...
    See more | Go to post

  • polymorphic
    replied to Converting an Object to String
    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 %>")...
    See more | Go to post

    Leave a comment:


  • polymorphic
    replied to Converting an Object to String
    That is a good point. It will not read strTitle = CStr("<%=mobjSy stem.DescrShort %>"). The error reads "mobjSystem " required....
    See more | Go to post

    Leave a comment:


  • polymorphic
    started a topic Converting an Object to String

    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)...
    See more | Go to post

  • polymorphic
    replied to Pass a Parameter to an .exe
    That gives me two errors:

    1. Expected ";" @
    Code:
    function PROCTest()
    2. Object Expected @
    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'"'";
    ...
    See more | Go to post

    Leave a comment:


  • polymorphic
    replied to Pass a Parameter to an .exe
    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">
    ...
    See more | Go to post

    Leave a comment:


  • polymorphic
    replied to Pass a Parameter to an .exe
    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>
    ...
    See more | Go to post

    Leave a comment:


  • polymorphic
    started a topic Pass a Parameter to an .exe

    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...
    See more | Go to post

  • 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
    ...
    See more | Go to post

    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...
    See more | Go to post

    Leave a comment:


  • polymorphic
    replied to Classic ASP Variable Question
    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
    ...
    See more | Go to post

    Leave a comment:


  • polymorphic
    started a topic Classic ASP Variable Question

    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
    ...
    See more | Go to post

  • polymorphic
    started a topic Dynamic IFrame Creation Caching Problem

    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">...
    See more | Go to post

  • 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...
    See more | Go to post
    Last edited by pbmods; Jul 19 '07, 10:23 PM. Reason: Added CODE tags.

  • polymorphic
    replied to Data Field Via Array Not Saving
    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
    ...
    See more | Go to post

    Leave a comment:


  • polymorphic
    started a topic Data Field Via Array Not Saving

    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"...
    See more | Go to post

  • 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,
    cj
    See more | Go to post

    Leave 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, cj
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...