User Profile

Collapse

Profile Sidebar

Collapse
gchq
gchq
Last Activity: Dec 28 '09, 08:51 PM
Joined: Jan 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gchq
    replied to Triple DES Blues
    Ooops - the DB column was set to varchar(6) from the original mmyyyy format! The encrypted string was being truncated! Now it works as it should!
    See more | Go to post

    Leave a comment:


  • gchq
    started a topic Triple DES Blues

    Triple DES Blues

    Hi there

    There is no problem encypting and decrypting a credit card number, but whilst encrypting the expiry date seems to work it blows out on decryption with "Invalid length for a Base-64 char array"

    Any ideas?

    Here is the code - the keys are generated from a 40+ string held on another database (ReturnKey)....

    Code:
    Private Function IV_192()
            Dim vKey As String
    ...
    See more | Go to post

  • gchq
    replied to Open a window in a window
    The only trouble with the TabContainer controls is they are so problematic when it comes to 'wiring up' code behind for onclick - I have tried them and will include just the codebehind below as an example. This was a small menu section, need to do one at least ten times this size and I'd be falling over myself with keeping track of Ajax controls.

    So far the JavaScript mentioned is doing a great job, apart from re-loading closed windows...
    See more | Go to post

    Leave a comment:


  • gchq
    replied to Open a window in a window
    This seems to be the concept I was looking for - just need to create the JavaScript as a class to feed in variables and launch on the page with ScriptManager.. .

    Floating window with tabs
    See more | Go to post

    Leave a comment:


  • gchq
    replied to Open a window in a window
    Thanks for your replies...
    1. Using Masterpage is not essential, but in Version 1 (the last app) it was used

    2. ModalPopupExten der is ok for small pop-ups (I use this for reporting errors and such like), but where you need to call another (very detailed) page it wouldn't work... and having the possibilty of multiple windows open would also be a requirement..

    The idea is to get the 'look and feel' of a windows...
    See more | Go to post

    Leave a comment:


  • gchq
    started a topic Open a window in a window

    Open a window in a window

    Hi there

    Using VB.NET 2.0 I'm attempting to open a window that remains contained within the existing window! Any idea how to accomplish this?

    Thanks - and Happy New Year
    See more | Go to post

  • gchq
    started a topic Dynamic DB pdf forms issue
    in .NET

    Dynamic DB pdf forms issue

    Hi there

    VB.NET Web app

    Using a 'viewing page' I can pull a pdf file from the DB on the Development W/Station, but on the server it displays a blank page... As images are also stored in the same DB and relative directory, and are no problem, the issue can't be down to a path!

    Here is the code

    Code:
    Imports System.Data
    Partial Class Document_Viewer
        Inherits System.Web.UI.Page
    ...
    See more | Go to post

  • gchq
    started a topic Templated User Controls
    in .NET

    Templated User Controls

    Hi there

    I'm attempting to get a Templated User control to work, but for some reason the Template teg

    [CODE=html]

    <asp:PlaceHolde r ID="PlaceHolder 1" runat="server">

    <DivTemplate>

    <asp:Panel ID="Panel1" runat="server" Width="200" Height="300"></asp:Panel>

    ...
    See more | Go to post

  • Problem solved ! Typo on 'clipboardData'

    sigh!
    See more | Go to post

    Leave a comment:


  • gchq
    started a topic Div in Wizard control not accessible to javascript
    in .NET

    Div in Wizard control not accessible to javascript

    Hi there

    I have some text that is displayed (if the user clicks a button) in a div within a Wizard control step - this shows fine on the screen, but I also have a button to copy the text to the clipboard - but the text is not 'visible' to the javascript code click view source and you get :-
    Code:
    <div id="Wizard1_LedgerCheck" style="width: 473px; height: 96px">
    ...
    See more | Go to post

  • Solved it!

    Code:
    Dim PBS As String
                PBS = "function printContent() { "
                PBS += "var documentContainer = document.getElementById('printDiv'); "
                PBS += "var windowObject = window.open('', 'BalanceSheetData', 'width=740, height=400, toolbars=no, "
                PBS += "scrollbars=yes, status=no, resizable=no'); "
                PBS
    ...
    See more | Go to post

    Leave a comment:


  • gchq
    started a topic javaScript window.print only printing portion from view
    in .NET

    javaScript window.print only printing portion from view

    Hi there

    I have a Table nested in a Div that in turn is nested in panel (with scrollbars) in turn nested in a multiview..

    The table has the class set as 'print' - that points to a css file via the link
    Code:
    <link href="../../../../Styles/Print.css" rel="stylesheet" type="text/css" media="print" />
    The CSS being quite simple -

    ...
    See more | Go to post

  • OK - got it working now...

    Code:
    CREATE EVENT "Update_Sales_Prepayments"
    SCHEDULE "Update_Sales_Prepayments_1" START TIME '07:00' ON ( 1 ) START DATE '2008-03-01'
    HANDLER
    BEGIN
    
    FOR names as curs CURSOR FOR 
    
    SELECT Sales_Pre_Amount AS vAmount, Nominal_Code as vNominal FROM Nominal WHERE Sales_Pre_Months > 0 
    
    DO
    
    INSERT INTO
    ...
    See more | Go to post

    Leave a comment:


  • I'm now part way there...

    Code:
    BEGIN
    FOR names as curs CURSOR FOR SELECT Pre_Amount FROM Test_Nominal WHERE Pre_Months > 0 
    DO
    INSERT INTO Test_Nominal (Normal_Credit, Trans_Date) VALUES (Pre_Amount, current date);
    END FOR;
    end
    This will now perform the multiple inserts, but it is NOT inserting the value from the select statement....

    Getting...
    See more | Go to post

    Leave a comment:


  • Sybase Event query (Multiple Inserts based on Select)

    Hi there

    This was the closest to Sybase I could see....

    If I wanted to perform a multiple insert based on values in a table using, say a web app, I'd define a DataTable and bring in the elements using the where query, then iterate though the table using a for - next statement based on the total rows and insert new rows each time the code passed through the for - next loop...

    I can build an event that will...
    See more | Go to post

  • gchq
    started a topic asp.NET Deployment (Multiple sites)
    in .NET

    asp.NET Deployment (Multiple sites)

    Hi there

    Here is the scenerio - I have built a web app and wish to deploy one app on our servers for each new customer...

    I have discovered "Managing ASP.NET Precompiled Output for Deployment Using the aspnet_merge.ex e Command" at .NET Framework Developer Centre that will make versioning and partial updates much easier..

    Here is the question.. Is there any way, using VS2005, that I can build...
    See more | Go to post
    Last edited by gchq; Feb 11 '08, 05:50 PM. Reason: Hit a key and it saved before I finished!

  • gchq
    replied to Getting an XML file served from aspx
    in .NET
    Think I have found a way round this - to set up a local temp directory, then write a class to get the original xml document and save it to the local temp dir - this can then be accessed by the page that wants to select, insert or update changes to it, then call the class again to move the file...

    Here is the class

    Code:
    Public Sub GetXmlFile()
            Dim GetFile As String
            GetFile = "\\Interclaims1\InterclaimsC\Data\Shared\XML\Parkwood\Newsletter.xml"
    ...
    See more | Go to post

    Leave a comment:


  • gchq
    started a topic Getting an XML file served from aspx
    in .NET

    Getting an XML file served from aspx

    Hi there

    The issue

    Need to bring in an XML file to the App that is not in the App root.

    Part Solution

    I have built an aspx page that will bring in the XML file and 'serve' it

    Code:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim GetFile As String
            GetFile = "\\Interclaims1\InterclaimsC\Data\Shared\XML\Parkwood\Newsletter.xml"
    ...
    See more | Go to post

  • Hi Acoder

    I found the issue - replace ClientScript.Re gisterStartupSc ript with ScriptManager.R egisterStartupS cript - it's formatted in a different way, but once I got my head round that learning curve opening a new window and passing variables on partial postback works...

    Thank you for leaving your reply...
    See more | Go to post

    Leave a comment:


  • Posting variables to a new window on Ajax site (asp.NET - VB)

    Hi there

    Passing variables to a new window was quite easy before Ajax, just write a window.open script and include it under the button click event with the variables being including in the url and pulled out at the other end as request.queryst ring - the only way I can open a new window now is to include this as a javascript function at page_load time and the the button to call the function using Attributes.Add

    Soooo...
    See more | Go to post
No activity results to display
Show More
Working...