ASP Tutorial Code

I've set up my ASP application environment, testeed it with
"timetest.asp". Followed insructions to insert Recordset and Master
Detail Page set - SQL query works fine. Problem is that when I
publish the pages they do not display - 500 error. I've tried with
DW MX and CS3. OS is Vista Pro, IIS 7. Can anyone help please?
Thanks.

infoapps4b wrote:
> I've set up my ASP application environment, testeed it
with "timetest.asp".
> Followed insructions to insert Recordset and Master
Detail Page set - SQL query
> works fine. Problem is that when I publish the pages
they do not display - 500
> error. I've tried with DW MX and CS3. OS is Vista Pro,
IIS 7. Can anyone
> help please? Thanks.
First of all in Internet Explorer turn off friendly error
messages, then
your 500 error will give you more detail about the problem,
as there are
lots of possible errors.
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html

Similar Messages

  • Error when trying to edit fields in browser (asp tutorial)

    I am doing the asp tutorial and I have come to the part where
    you should maked the fields editable in the browser. I have hadet
    the edit, update, cancell link. When I try to press update I get
    this:
    System.Exception: Control not found in DataGrid column:
    LastName
    at DreamweaverCtrls.DataSet.OnDataGridUpdate(Object Src,
    DataGridCommandEventArgs E)
    I opened the last sample file called
    listEmployees-final-MS-Access.aspx... I can't run this one
    wither!!!
    Now I get:
    System.Exception: Unsupported TYPE attribute: NVarChar
    at DreamweaverCtrls.DataSet.GetDbTypeFromString(String str)
    at DreamweaverCtrls.DataSet.OnDataGridUpdate(Object Src,
    DataGridCommandEventArgs E)
    Help anyone please.

    has noone got this to work? Is the tutorial wrong?

  • The pt 3 tutorial code doesn't match the pt 2 tutorial code.  Nowhere to insert head in pt 2 code.

    At the end of the part 2 tutorial, this was the code:
    @charset "utf-8";
    /* CSS Document */
    #container {
    width: 968px;
    background: #FFF;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    overflow: hidden;
    }#main_image {
    background-image: url(images/main.jpg);
    background-repeat: no-repeat;
    #container #main_image {
    height: 376px;
    width: 968px;
    #left_column, #center_column, #right_column {
    width: 316px;
    float: left;
    #center_column, #right_column {
    margin-left: 10px;
    The part 3 tutorial instructed this:
    Copy the <script> tags from the Edge Web Fonts site, and paste them into the <head> section of index.html in Dreamweaver just above the <link> that attaches the style sheet like this:
    <head>
    <meta charset="utf-8">
    <title>Check Magazine</title>
    <script src="http://use.edgefonts.net/sarina.js"></script>
    <link href="styles/check_cs6.css" rel="stylesheet" type="text/css">
    </head>
    As you can see from the code at the end of part two (listed at the top), there is no reference to <head> anywhere in the code; therefore, I am uncertain as to where to insert these code instructions.

    I assume that the embedded tags are in the index document, not the styles type document?   I appreciate the information, but I don't see how it relates to my question.  Maybe your answer was just over my head? My original question was: If the instructions say this:
    Copy the paste them into the  section of index.html in
    Dreamweaver just above the  that attaches the style
    sheet like this:
    and there the word does not appear anywhere on the index file that I can see it (whether it's embedded or otherwise), where do I insert the code?
    Date: Fri, 8 Feb 2013 10:29:29 -0800
    From: [email protected]
    To: [email protected]
    Subject: The pt 3 tutorial code doesn't match the pt 2 tutorial code.  Nowhere to insert &lt;head&gt; in pt 2 code.
        Re: The pt 3 tutorial code doesn't match the pt 2 tutorial code.  Nowhere to insert  in pt 2 code.
        created by Nancy O. in Dreamweaver - View the full discussion
    The pair of and  tags are an integral part of any HTML document. When you create a new page in DW, it automatically creates the core HTML tags for you, so in that regard, there's nothing for you to add except content and styles. Embedded CSS styles are inserted inside the document's  tags like so:       body      #LeftSideBar       #RightSideBar      #MiddleContent
    External CSS is a separate physical file to which all your HTML pages are linked. Similar to above, links to external style sheets go inside the  tags like this:
      HTML & CSS Tutorials - http://www.html.net/http://w3schools.com/  Nancy O.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5058678#5058678
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5058678#5058678
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5058678#5058678. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Error when calling a javascript fonction from asp c# code

    Hi,
    I have an error when I excute my code below and I do not understand where it is coming from.
    page ASPX:
    <asp:Button ID="Bt_refresh" OnClick="Bt_refresh_Click" runat="server" Text="Resfresh" />
    page ASP:
    protected void Bt_refresh_Click(object sender, EventArgs e){            System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(), "Test", "<script type='text/javascript'>switchTo(event,'mapserv.xml');</script>", false);           }
    page JavaScript:
    function switchTo(event, dzi) {    console.log("Debut switchTo");    if (dzi) {        console.log(dzi);        viewer.openDzi(dzi);        console.log("open dzi");    } else {        viewer.close();        console.log("viewer closed");    }}
    and I get that error:
    Uncaught TypeError: Cannot read property 'openDzi' of nullLoad_image.js:14
    switchToLoad_image.js:14
    (anonymous function)
    However my link is working when I use this method in my ASPX page:
    <a href="#" onclick="switchTo(event,'map.xml');">map</a>

    Hi mi jo,
    ASP.NET forum is the right forum for your question, you can get more helpful ansers if you post a new thread there.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help with Flash CS3 Particle Effect Tutorial Code

    I did the tutorial from http://www.schoolofflash.com/2008/03/flash-cs3-particle-effect/. I used a star to replace the circle. Here's my code:
    var starsArray:Array = new Array();
    var maxStarss:Number = 8;
    function addStars(e:Event)
        var stars:Stars = new Stars();
        stars.x = stage.stageWidth/2;
        stars.y = stage.stageHeight/2;
        stars.alpha = Math.random() * .8 + .2;
        stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
        stars.xMovement = Math.random() * 10 - 5;
        stars.yMovement = Math.random() * 10 - 5;
        starsArray.push(stars);
        addChild(stars);
        stars.cacheAsBitmap = true;
        if (starsArray.length >= maxStarss)
            removeChild(starsArray.shift());
        stars.addEventListener(Event.ENTER_FRAME,moveStars);
    function moveStars(e:Event)
        e.currentTarget.x += e.currentTarget.xMovement;
        e.currentTarget.y += e.currentTarget.yMovement;
    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addStars);
    myTimer.start();
    This time, I'm trying to make the stars shrink and transparent as they move away from the point. So I coded it like this:
    import flash.events.Event;
    var starsArray:Array = new Array();
    var maxStarss:Number = 8;
    function addStars(e:Event)
        var stars:Stars = new Stars();
        stars.x = stage.stageWidth/2;
        stars.y = stage.stageHeight/2;
        stars.alpha = Math.random() * .8 + .2;
        stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
        stars.xMovement = Math.random() * 10 - 5;
        stars.yMovement = Math.random() * 10 - 5;
        starsArray.push(stars);
        addChild(stars);
        stars.cacheAsBitmap = true;
        if (starsArray.length >= maxStarss)
            removeChild(starsArray.shift());
        stars.addEventListener(Event.ENTER_FRAME,moveStars);
        stars.addEventListener(Event.ENTER_FRAME,animeStars);
    function animeStars(e:Event)
        trace(this.starsArray);
        this.scaleX-=0.01;
        this.scaleY-=0.01;
        this.alpha-=0.01;
        if (this.alpha<=0) // remove this object from stage
    function moveStars(e:Event)
        e.currentTarget.x += e.currentTarget.xMovement;
        e.currentTarget.y += e.currentTarget.yMovement;
    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
    myTimer.start();
    I couldn't make it work. All I got was an error message saying "
    1084: Syntax error: expecting identifier before rightbrace.
    Help?

    It is because of this line of code at the end
    myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
    if you read the documentation on addeventlistener it looks for these type of arguments to be passed
    addEventListener(type:String, listener:Function, useCapture:Boolean);
    animeStars is not a boolean it is a function. Since you already have animeStars in your addStars function you can exclude it in the last event listerer. try this:
    myTimer.addEventListener(TimerEvent.TIMER, addStars);

  • BUG!: JDeveloper 11g Tutorial code is incomplete.

    I am attempting the complete the JDeveloper 11g Tutorial from the Fusion Developer's Guide for Oracle Application Development Framework
    After adding all the latest jars available from the ADF Installer to the StoreFrontModule I am left with 10 errors all of with seem to be the result of missing methods (especially findByAltKey) from both Oracle packages and the tutorials code itself. The errors and the .java files affected are listed below. Please let me know if you need more information or if you have a solution to these compilation errors.
    Project: C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\StoreFrontService.jpr
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\account\queries\CustomerPaymentOptionVORowImpl.java
    Error(9,8): class oracle.jbo.server.ViewAccessorDef not found
    Error(468,22): does not override any method in its superclass
    Error(475,22): method createViewAccessorRS(java.lang.String) does not override any method in its superclass
    Error(476,27): method createViewAccessorRS(java.lang.String) not found in class oracle.jbo.server.ViewRowImpl
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\queries\PersonsVOImpl.java
    Error(25,39): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.PersonsVOImpl
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\service\StoreServiceAMImpl.java
    Error(422,28): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.OrderItemsVOImpl
    Error(471,48): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.jbo.server.ViewObjectImpl
    Error(526,44): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.PersonsVOImpl
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\queries\ShoppingCartTransientVOImpl.java
    Error(52,33): method add(oracle.jbo.domain.Number) not found in class oracle.jbo.domain.Number
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\queries\OrdersVOImpl.java
    Error(39,33): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.OrdersVOImpl
    Thanks,
    Shawn Pressley
    Edited by: user575216 on Dec 16, 2008 5:18 PM

    Go into project properties - technology scope and add ADF BC.

  • .asp/.aspx code erased or changed in DWCS4?

    I am a non-developer - a designer.
    We have a programmer who created a simple form in .aspx or .asp (not exactly sure which one) in Microsoft Visual Studio.
    When that .html page was opened in Dreamweaver CS4 he said the command "POST" was changed to "GET".
    Is this possible? He often builds data driven pages we then open in Dreamweaver...then the chaos begins! Is there something we should watch for?

    Your server processes ASP code in your pages and outputs the desired html. That html is then served to the viewer's browser. The browser will never see the ASP scripting unless, for some reason, the server doesn't process it. If that were the case, your pages would appear broken to the viewer.
    It sounds like the onsubmit line is part of an include file somewhere else in your site. Look at the code of the local copy of the page you are making the change to. You should see something like...
    <!--#include file="some_name.inc"-->
    ...in several locations. Those are links to include files. The onsubmit line might be contained within one of those. It may also be part of the actual form processing script (that would be my vote).
    Either way, to paraphrase bregent: if you are not familiar with ASPX, you really shouldn't be messing with these files, you may do more harm than good.

  • SAP Controls tutorial code problem

    Hello all,
    I'm working on a SAP tutorial and I can't get this piece of their code to work.  We're on version 4.7, basis version 6.2.
    This is a link to the tutorial and here is a segment of code that does not pass the syntax check. 
    http://help.sap.com/saphelp_webas630/helpdata/en/ea/6013361d5af835e10000009b38f839/frameset.htm
    DATA: EVENT_TYPE(20) TYPE C.
    CLASS lcl_event_handler DEFINITION.
    PUBLIC SECTION.
       CLASS-METHODS: CATCH_DBLCLICK FOR EVENT DBLCLICK OF CL_GUI_TEXTEDIT.
                                    IMPORTING SENDER.
    ENDCLASS.
    Lesson one worked just the way the tutorial described.  But the first exercise of lesson two is giving me a syntax error regarding IMPORTING SENDER.  Has anyone successfully completed exercise one of lesson two?
    Thanks
    Bruce

    I don't think that should be there.  Try removing it.
    DATA: EVENT_TYPE(20) TYPE C.
    CLASS lcl_event_handler DEFINITION.
    PUBLIC SECTION.
       CLASS-METHODS: CATCH_DBLCLICK
                 FOR EVENT DBLCLICK OF CL_GUI_TEXTEDIT.
    ENDCLASS.
    Regards,
    Rich Heilman

  • Problems with .asp email code - please help!

    Hi
    I am pretty new to Dreamweaver and still on a huge learning
    curve (not very 'technically minded" either) and I have come across
    a problem that apparently Dreamweaver does not supply a solution
    to. It seems that the only way to solve this is to buy another
    piece of bolt-on software.
    However, I am sure that there is a very simple line of code
    that will solve my problem..........
    I have created a form on a website page that sends
    information back via a process.asp page to an email address, both
    pages are suffixed .asp
    (I have created the process.asp form by working out the
    relevant bits of code on other websites that have been written for
    my company).
    The form uses fields to be filled in, and I have managed to
    write the process.asp page so that it successfully returns all the
    relevant info correctly to the specified email address. However my
    problem lies with the fact that I now need to use a drop-down menu
    to select an item from a list. I have added the menu into to the
    form, but I have not got a clue as to how the code on the
    process.asp page needs to be written in order to send the selected
    info back in the email.
    As an example of how the process.asp has been written, see
    below:
    body = body & "<b>Surname </b> " &
    request("surname") & "<br>"
    body = body & "<b>Address Line 1 </b> " &
    request("address line 1") & "<br>"
    etc.
    I would be very grateful for any guidance you may be able to
    give me.
    Many thanks
    Ruth

    >It seems that the only way to solve this is to buy
    another piece of bolt-on software.
    I don't understand this comment.
    >but I have not got a clue as to how the code on the
    process.asp page needs to be
    >written in order to send the selected info back in the
    email
    body = body & "<b>Surname </b> " &
    request("surname") & "<br>"
    body = body & "<b>Address Line 1 </b> " &
    request("address line 1") & "<br>"
    body = body & "<b>My New Drop Down Menu</b> "
    & request("mydropdownfieldname") & "<br>"

  • Tutorial & Code Sample for Developping Composites with CAF

    Do you have tutorials & Code samples for developping composites with CAF like Webdypro for Java as on this SDN site:
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Thanls, regards, peter

    Take a look at https://www.sdn.sap.com/irj/sdn/developerareas/xapps?rid=/webcontent/uuid/7b9b3834-0801-0010-6a9a-dc53e0db37f2">the [original link is broken] [original link is broken].
    cheers,
    Marilyn

  • Tutorial code summarizing recent questions

    I'm woke up early and can't sleep so I'll try and do something that will hopefully help some Java newbies.
    This is a Java testing application. It provides user's with various java related questions. It can be run as either an applet or an application. If it is run as an applet, then the applet will need to be signed if is to access any local resources on the user's machine.
    This program addresses some recently asked questions on the forum such as:
    1) Can methods be placed in a constructor
    2) How do you do without extending a Frame in a GUI app
    3) Java GUI applications are difficult
    4) Applets are a lot more complicated than regular GUI applications
    5) When should final variable be used
    6) Java homework problem - help needed
    7) Help with regular expressions
    8) IDE recomendation (I started with notepad then moved to JCreator)

    /* File: QuestionGUI.java
    package com.company.javatester.gui;
    import com.company.javatester.data.QuestionDAO;
    import com.company.javatester.model.Question;
    import javax.swing.*;
    import javax.swing.border.TitledBorder;
    import java.awt.event.*;
    import java.awt.*;
    * The question interface.  Would be better to have some sort of
    * Question controller to separate the business logic
    public class QuestionGUI {
       /** Title used for dialogs */
       private static final String title = "Java Tester 2k6";
       /** Data access object for retrieving questions */
       private final QuestionDAO questionDAO;
       /** Component used for GUI. Note that composition is used instead of inheritance */
       private JPanel contentPane;
       /** Label which displays question for user */
       private JLabel questionLabel;
       /** Area which the user will enter anser into */
       private JTextArea answerInput;
       /** The current question */
       private Question question;
       /** The number of questions the user has answered */
       private int questionCount = 0;
       /** The id for the first question. */
       private int firstQuestionID = 0;
        * Construct a question graphical interface with the given Question DAO.
        * @param questionDAO  the data access object for retrieving questions
       public QuestionGUI(QuestionDAO questionDAO) {
          this.questionDAO = questionDAO;
          // Note that methods called in the constructor can't be overrided
          // either directly or indirectly
          initComponent();
          // Start a new test
          startTest();
        * Initialize the component.  This method can't call any methods that
        * can be overriden since it is called by the constructor.
       private void initComponent() {
          // Initialize the component that will contain all the other components
          // for the question GUI
          contentPane = new JPanel(new BorderLayout(4, 4));
          // Initialize the question label
          questionLabel = new JLabel();
          questionLabel.setBorder(new TitledBorder("Question"));
          questionLabel.setVerticalAlignment(SwingConstants.TOP);
          questionLabel.setPreferredSize(new Dimension(300, 90));
          // Initialize the input area for capturing the user's answer
          answerInput = new JTextArea();
          answerInput.setPreferredSize(new Dimension(300, 100));
          // Initialize the button for starting the test
          JButton startButton = new JButton("start");
          startButton.addActionListener(new StartTestListener());
          // Initialize button for submitting answer
          JButton submitButton = new JButton("next");
          submitButton.addActionListener(new SubmitQuestionListener());
          // Add all the components to the question gui component
          JPanel buttonPanel = new JPanel(new GridLayout(1, 2, 4, 4));
          buttonPanel.add(startButton);
          buttonPanel.add(submitButton);
          contentPane.add(questionLabel, BorderLayout.NORTH);
          contentPane.add(new JScrollPane(answerInput), BorderLayout.CENTER);
          contentPane.add(buttonPanel, BorderLayout.SOUTH);
        * Start a new test.  This method can't call any methods that
        * can be overriden since it is called by the constructor.
       private void startTest() {
          questionCount = 0;
          // Note: Data access calls be done on separate thread if doing
          // extensive I/O to increase GUI responsiveness
          Question firstQuestion = questionDAO.getRandomQuestion();
          firstQuestionID = firstQuestion.getID();
          // Set the first question for the test.
          setQuestion(firstQuestion);
        * Set the current question.  If <tt>null</tt> then the test is over.  This
        * method can't call any methods that can be overriden since it is INDIRECTLY
        * called by the constructor.
        * @param question  the question to set as the current question
       private void setQuestion(Question question) {
          if ((questionCount > 0) && (question.getID() == firstQuestionID)) {// The test is over
             int choice = JOptionPane.showConfirmDialog(
                contentPane, "Done.\n\nDo you want to start over?",
                title, JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE
             if (choice == JOptionPane.YES_OPTION) {
                startTest();
          } else { // set the current question
             this.question = question;
             questionCount++;
             questionLabel.setText("<html>" + questionCount + ") " + question.getText() + "</html>");
             answerInput.setText("");
          // set focus to the answer area as convenience to user
          answerInput.requestFocusInWindow();
        * Get the component of this GUI
        * @return  the component of this GUI
       public JComponent getComponent() {return contentPane;}
        * Listener for button to start test.  It's been argued that this
        * should be a static class
       private class StartTestListener implements ActionListener {
          /** Start the test */
          public void actionPerformed(ActionEvent e) {
             startTest();
        * Listener for button to submit question anser.  It's been argued that this
        * should be a static class
       private class SubmitQuestionListener implements ActionListener {
          /** Validate user's answer */
          public void actionPerformed(ActionEvent e) {
             if (question == null) { // No question to validate answer against
                return;
             // Check if the user's answer is "correct"
             if (answerInput.getText().matches(question.getAnswer())) { // Correct
                JOptionPane.showMessageDialog(
                   contentPane, "Correct!!!", title, JOptionPane.INFORMATION_MESSAGE
                setQuestion(questionDAO.getNextQuestion(question.getID()));
             } else { // Incorrect
                JOptionPane.showMessageDialog(
                   contentPane, "Try again", title, JOptionPane.WARNING_MESSAGE
    }

  • Question about asp access

    Hi.
    I'm trying to get information from a MS Access database to a Java applet. I think the easiest way to do this is to use ASP. I got the asp page working to access the database and print its contents but I have no idea how the applet can access that information. I know nothing about asp and got the connection code from a tutorial. Can anyone tell me how I can access the information from a Java applet?
    Thanks in advance.
    ASP code follows:
    <%
    Set MyConn = Server.CreateObject("ADODB.Connection")
    MdbFilePath = Server.MapPath("db1.mdb")
    MyConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
    SQL_query = "SELECT * FROM Table1"
    Set RS = MyConn.Execute(SQL_query)
    WHILE NOT RS.EOF
    %>
    <LI><%=RS("Name")%>: $<%=RS("Balance")%>
    <%
    RS.MoveNext
    WEND
    %>

    Thanks, I've gotten the reading working. But I'm a
    little confused on how I would update. If I wrote an
    asp page (say...called update.asp) that updates the
    database, how would I call that from java? You
    wouldn't use an input stream would you?Same way. Don't confuse the input stream with "input to a database". It's just the response from the service, and also the way to actually get the service (URL) to be invoked. Of course, for updating the database, you're probably going to want to pass the service something, telling it what to update. Passing it something is done (or can be done, as one way) by putting the information on the URL, like:
    http://some/path/update.asp?key=abc&newValue...
    And if you have any links to tutorials on asp database code,
    that would be awesome. Thanks.I'd suggest using good-old google: http://www.google.com to search for those keywords.

  • Research on the Security of NGDC Based on ASP

    Research on the Security of NGDC Based on ASP
    Zhang Li Gong Jianya Zhu Qing
    Key Words
    active server pages (ASP); national geospatial data clearinghouse (NGDC); geographic information system (GIS); Internet
    Abstract
    On the basis of the authors? experience of setting up an NGDC Web site, this paper attempts to present some significant aspects about the security of NGDC based on ASP. They include data storing, database maintenance, new technical support and so on. Firstly, this paper discusses how to provide the security of data which is saved in the host of NGDC. The security model of ?New works ?DB Sever-DB-DB Object? is also presented. In Windows NT Server, Internet Information Server (I IIS) is in charge of transferring message and the management of Web sites. ASP is also based on IIS. The advantages of virtual directory technique provide by IIS are emphasized.
    An NGDC Web site, at the Research Center of GIS in Wuhan Technical University of Surveying and Mapping is also mentioned in this paper. Because it is only an analogue used for case study, the transmission of digital spatial products is not included in the functions in this NGDC Web site. However, the management of spatial metadata is more important and some functions of metadata query are implemented in it. It is illustrated clearly in the functional diagram of the NGDC Web site.
    1 Introduction
    Needless to say, it is very important for most GIS users to acquire and integrate the geospatial information from various districts. However, the current situation of geospatial information production and dissemination in the world is still unsatisfactory. On one hand, users do not know where the geospatial data files are stored and what geospatial data is useful for their applications, or have not necessary computer facilities. On the other hand, due to the lack of coordination and cooperation, the duplication of geospatial data production widely exists. Most of geospatial information is stored by different organizations including governmental organizations, commercial companies. What?s more, the lack of geospatial data exchange and sharing mechanism results in relative low benefit of geospatial data use. It is difficult for some products to get necessary information from other producers to integrate with or to update their own databases. In short, the value of geospatial information has not been shown exactly in GIS industry of China.
    It is obvious that the information distribution technique based on Internet can play a great role in GIS industry. National Geospatial Data Clearinghouse users will be able to query what geospatial data is being produced, how about is quality, where it is produced, and how to get the geospatial data economically and conveniently.
    2 NGDC and ASP technology
    As mentioned above, NGDC is a geospatial information distributed network system which is concerned with geospatial data producers, managers and users. So the relationship among them must be harmonized. The NGDC provides the service of geospatial information through internet. In detail, it will allow various data formats to exist in this opened geospatial information service system and it supports the share and query of the geospatial data from different sources. The main mission of NGDC is to offer a means of fast, efficient, safe, economical service of geospatial data provision to users. At the same time, it will offer means for data providers to advertise their new products and collect users? demands and feedbacks in order to promote the geospatial data production.
    To date, the model of NGDC is usually described as a provider-oriented model. In this model, every geospatial data provider is linked with internet as an NGDC node... user?s access NGDC nodes through internet and browses the catalogues of geospatial data stored in NGDC, and then they query the metadata about the available products for their applications. After selecting the desired data set, the user can send an order to the relevant producer on-line or by E-mail system. If users can not find the geospatial data available in this NGDC node for their applications, they will be able to access other NGDC nodes.
    So the construction of NGDC is concerned with the planning and maintenance of dynamic Web sites linked with internet. Since Active Server Pages (ASP) came out with its peculiar characteristics several years ago, which is applied to the construction of more and more dynamic Web sites in the diverse fields? In comparison with common gateway interface (CGI), ASP is more effective and flexible as a server scripts environment.
    With html pages, script commands and active X components, ASP can set up dynamic, interactive and efficient Web server programs. It is not important whether browsers can run those ASP codes, because all of ASP programs including scripts plugged in html, such as VBScript, JScript, are executed in servers. ASP programs will send a series of commands to the script engine, and then the script engine translates the commands into some codes which can be executed by servers. After running the executive codes, the results will be sent by servers to users? browsers in html. In this way, it is sufficient for browsers to have basic function of browse. As a result, the speed of the system increases rapidly.
    NGDC Web site provides users with a catalogue of geospatial data entity, data entity and the relevant metadata. Therefore it is inevitable to access various databases in the construction of NGDC. It is convenient to connect database systems with ASP plug-in Active X components, so Web pages can be linked to all kinds of databases which provide ODBC interfaces for other programs. Active X components provide the objects whose tasks are to finish certain functions. So Active X components are of great significance in setting up Web programs.
    3 Research on security of NGDC
    This paper attempts to present some significant aspects about the security of NGDC base on ASP, such as data storing, database, maintenance, new technical supporting and so on.
    3.1 Security of data storing
    The information stored in NGDC includes geospatial data, relevant metadata and catalogues of data products. The maintenance of all the information is a very hard task. Of course, the security of data storing is included in it. From the point of system maintenance, the security of data storing in NGDC is concerned with disk error-tolerance and back-up supporting.
    With the rapid development of manufacturing technique of hard disk, the life-span of hard disk has been lengthened. Disk error-tolerance decreases usually the possibility of data-losing because of errors of hard disks. It is inevitable that some errors cannot be limited in spite of any error-tolerance system. In order to maintain the security of data, the significance of data should be assessed firstly and so should the loss of data-losing. There are three kinds of dump plans for database or data files: full data dump, increment data dump and combination of them. As in NGDC the need of data back-up depends on its significance.
    3.2 Security of database maintenance
    As for popular large-scale database systems such as Microsoft SQL Server, Sybase, Oracle, Informix, security maintenance is implemented by four levels of ?New works ?DB Sever-DB-DB Object? security model. Every user has his network login ID and his password, with which the user ID and the password, users can login into network. Take Windows NT Server for example, Windows NT Server provides some security maintaining methods such as encoded password, minimum password length and so on.
    In general, network cannot automatically permit its network users to access databases in it. The fact that a user can access databases does not mean that he can automatically access databases in it. Only those users who have their database user IDs stored in system tables in database can access database.
    3.3 Security with ASP
    In the environment of Windows NT Server, Internet Information Server (IIS) is in charge of distributing information and maintenance of Web sites. ASP is also based on IIS. When users access some ASP files in their browsers, the relevant ASP scripts will run in server and the results will be sent users in Web pages.
    Virtual directories are different from physical directories in hosts or servers. Net work administrators may make good use of the mechanism of virtual directory in order to maintain the security. IIS supports virtual directory which plays a great role in the security maintenance of Web sites. Firstly, virtual directory conceals the information about actual directory structure. In normal browsers, users can get the path information of a certain Web site; the directory information of Web sites will be exposed to users linked with Internet. As a result, it is easy for the Web sites to be attacked by hikers. Secondly, it is convenient to transfer the WWW service from one server to another without updating the code in Web pages if there is the same virtual directory structure in two servers. Finally, when putting Web pages into virtual directories, administrators can assign different attributes to the directories. For example, in the construction of NGDC Web site, it is important to put normal html files and ASP files into different virtual directories. The attribute of directories in which normal html files are stored may be ?Read? while the attribute of directories in which ASP files are stored may be ?Execute?. On one hand, it simplifies the maintenance and management of NGDC Web sites. On the other hand, ASP source files will never be sent to user browsers. In other words, hikers cannot get the ASP source codes through their browsers. Thus it improves the security of ASP files.
    4 An NGDC model Web site in WTUSM
    Some other security aspects in operational model, programming, management in the plan and construction of NGDC should be concerned. As an example the construction of an NGDC model Web site is presented below in order to explain the security maintenance of NGDC in detail. On the basis of authors? research on relevant problems, this NGDC model Web site was planned and deployed in early 1999. As a model project, the purpose of construction of this Web site is to provide some useful experiences for other projects on NGDC. Therefore the process of geospatial metadata plays a great role in this Web site. In fact, there are not actual geospatial data products stored in this NGDC model Web site. The main task of this Web site is to provide relevant geospatial metadata services, so the functions of data product maintenance cannot be found. Geospatial metadata is stored into meta-database in Microsoft SQL Server. With ?New works -DB Sever-DB-DB Object? security model in Microsoft SQL Server, the relations between user and access rights are set up. In order to simplify the problem, those two tasks are assigned to two DB users. One is a user who is the owner of DB objects. (Of course, he has all rights to access, update and delete DB objects); the other is a normal user who can only access DB objects such as tables. While developing ASP programs in the integrate developing environment of Microsoft Interdev, the functions may be fulfilled by script programs running either in clients or in servers. As a result, it improves the confidentiality of ASP programs and the efficiency of NGDC service system.
    In the NGDC Web site, something has been done in order to improve the security of operation: a table named providers? information table is stored in NGDC to keep some useful information about relevant geospatial data providers, such as name, ID, passwords, contact methods and son on. The information may be a long, irregular string whose length is less than 1024. It is produced and maintained by NGDC. The providers? information table is stored in the server in NGDC. In this way, data producers provide geospatial products together with their identifying information through Internet.
    5 Conclusions
    In short, it is very convenient and efficient to distribute geospatial data in the NGDC nodes through internet. On the other hand, with the development and construction of NGDC, there will come more and more challenges and problems about the security of NGDC. Obviously some researches and discussions in this field need to be further carried on.

    Jaya
    We have two ways to achieve this scenario
    1.Going with PCR where we Query No of Years Completed
    2. Going for Custom Function
    In the above two ways  we have to maintain the year of completion in Date Specification Either Manually or Thorugh Dynamic Action which shd automaticallly update....IT00041
    I prefer the second one since PCR is some wht complicated

  • Trying to create a XML file from an ASP Form

    I have an ASP form on my website that generates a XML data
    file, but there are a few problems with it. First, when I generate
    the file, it creates a new file every time a user clicks on
    "Submit" and I would like the data to just be appended to a
    particular, existing XML file...how can I append the data to the
    XML file? The code I am currently using is shown below.
    Secondly, I need to nest/repeat certain fields within the XML
    file. Basically, I want the XML file to look like this (I
    simplified the code for ease of writing, so don't bother with the
    syntax):
    <Recipe>
    <RecipeName>
    <SubmittedBy>
    <Ingredients>
    <Amount>
    <Unit>
    <Ingredient>
    <Description>
    <Directions>
    <Recipe>
    <RecipeName>
    etc...
    How would I create a form that would create that type of XML
    file? Think of a MS Access form with linked subforms, but I don't
    want to repeat more data than I have to.
    Any advice or help would be very appreciated!!! Also, if you
    know of a 3-party product that might solve this for me, I am open
    to that also!
    Thanks!!!
    ASP Page Code:

    You may find this article useful
    http://xmlfiles.com/articles/michael/appendxml/default.asp
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "kbeveridge6778" <[email protected]> wrote
    in message
    news:[email protected]...
    >I have an ASP form on my website that generates a XML
    data file, but there
    >are
    > a few problems with it. First, when I generate the file,
    it creates a new
    > file
    > every time a user clicks on "Submit" and I would like
    the data to just be
    > appended to a particular, existing XML file...how can I
    append the data to
    > the
    > XML file? The code I am currently using is shown below.
    >
    > Secondly, I need to nest/repeat certain fields within
    the XML file.
    > Basically, I want the XML file to look like this (I
    simplified the code
    > for
    > ease of writing, so don't bother with the syntax):
    > <Recipe>
    > <RecipeName>
    > <SubmittedBy>
    > <Ingredients>
    > <Amount>
    > <Unit>
    > <Ingredient>
    > <Description>
    > <Directions>
    > <Recipe>
    > <RecipeName>
    > etc...
    > How would I create a form that would create that type of
    XML file? Think
    > of a
    > MS Access form with linked subforms, but I don't want to
    repeat more data
    > than
    > I have to.
    >
    > Any advice or help would be very appreciated!!! Also, if
    you know of a
    > 3-party product that might solve this for me, I am open
    to that also!
    >
    > Thanks!!!
    >
    > ASP Page Code:
    >
    > Function saveXMLData(strPath, strFileName)
    >
    > 'Declare local variables.
    > Dim aXMLDoca
    > Dim aRootNode
    > Dim aFormVar
    > Dim aPI
    > Dim Item
    >
    > 'Create an XMLDOM Object
    > Set aXMLDoca = server.CreateObject("Microsoft.XMLDOM")
    > aXMLDoca.preserveWhiteSpace = True
    >
    >
    > 'Create the root node for the document
    > Set aRootNode = aXMLDoca.createElement("function")
    > aXMLDoca.appendChild aRootNode
    >
    >
    > 'Iterate the Request Object for all form data
    > For Each item in Request.Form
    >
    > 'Do not include the variable if it contains btn
    > If instr(1,item,"btn") = 0 Then
    > Set aFormVar =aXMLDoca.createElement(item)
    > aFormVar.Text = Request.Form(item)
    > aRootNode.appendChild aFormVar
    > End If
    >
    > Next
    >
    >
    > 'Append the processing instruction
    >
    > Set aPI =
    aXMLDoca.createProcessingInstruction("xml","version='1.0'")
    > aXMLDoca.insertBefore aPI, aXMLDoca.childNodes(0)
    >
    >
    > 'Save the XML document.
    > aXMLDoca.save strPath & "\" & strFileName
    >
    >
    > 'Release all references.
    > Set aXMLDoca = Nothing
    > Set aRootNode = Nothing
    > Set aFormVar= Nothing
    > Set item = Nothing
    > Set aPI = Nothing
    > End Function
    >
    > dim strFullFile
    >
    > Function DoesFileExist(ByVal strFullFile)
    > Dim objFSO
    >
    > 'If InStr(strFullFile, ":") = 0 Then
    > 'strFileNam = Server.MapPath(strFullFile)
    > 'End If
    >
    > Set objFSO =
    Server.CreateObject("Scripting.FileSystemObject")
    > DoesFileExist = objFSO.FileExists(strFullFile)
    > Set objFSO = Nothing
    > End Function
    >
    >
    > Const cont_Num=10000
    > Randomize
    > Dim intNumber
    > dim strFile
    > Dim blnYes
    >
    > blnYes=False
    >
    > Do Until blnYes=True
    >
    > intNumber=Int((Cont_Num * Rnd)+1)
    >
    > 'Create a random file name so you don't write over the
    same file
    > strFile="Recipe"& intNumber &".xml"
    >
    > strFullFile="c:\inetpub\wwwroot\xmltest\" & strFile
    >
    > if DoesFileExist(strFullFile)=False then
    > blnYes=True
    > End If
    > Loop
    >
    > ' The page starts here
    > On Error Resume Next
    >
    > ' Save the XML Data
    > SaveXMLData "c:\inetpub\wwwroot\xmltest",strFile
    >

  • Database Server - SQL Access: Cannot connect from code but from SSMS

    Hi,
    I am using following connection string in my asp.net web.config:
    [Less than symbol] add name="FMMConnectionString" connectionString="Data Source=xxxxxxxxx,1234;Initial Catalog=Test1Db;User Id=Rajeev;Password=xxxxxxxxxxxxx;" providerName="System.Data.SqlClient" [Slash][Greater than symbol]
    The database is on remote database server. The sql user/ developer 'Rajeev' is deliberately given restricted permissions (to protect our schema) using following sql commands:
    GRANT ALTER,EXECUTE, SELECT,INSERT,UPDATE,DELETE ON SCHEMA ::dbo TO Rajeev
    DENY VIEW DEFINITION ON SCHEMA::dbo TO Rajeev;
    GRANT CREATE PROCEDURE TO Rajeev;
    GRANT CREATE FUNCTION TO Rajeev;
    DENY ALTER ON SCHEMA::dbo TO Rajeev; -- To disallow Rajeev to create objects on dbo schema but only create in Rajeev schema while still being able to select, insert, execute on dbo schema. 
    The above connection string works perfectly fine when used from Visual Studio> Server Explorer. I am able to execute following sql queries without issues. Same is true when using SQL Server Management Studio using Rajeev credentials.
    select top 100 * from XYZEmployees
    execute usp_GetMMBSchemeDetails '1' 
    The error I get in web page is following:
    The stored procedure 'usp_GetMMBSchemeDetails' doesn't exist.
    When I ran code using breakpoints to see what is happening, I see that when connection object is being instantiated, the connection state is being closed with following error:
    at System.Data.SqlClient.SqlConnection.GetOpenConnection()
    at System.Data.SqlClient.SqlConnection.get_ServerVersion()
    I turned off my firewall to see if it was blocking but it did not help. I tried using Visual Studio 2012 as well as Visual Studio 2013 but same issue showed up.
    Kindly let me know why I am able to execute sql queries from SSMS and Visual Studio's Server Explorer but not from application code. Is there something that needs to be enabled on remote database server so that the queries can run from code? I like to create
    more users like Rajeev with restricted permissions to develop my application. So kindly provide a solution if you know.
    Thanks,
    Pullet

    Thanks Everyone for your insights :) 
    RSingh, Your approach works when using SSMS, not when called from application code (example: asp.net code-behind page calling a stored proc using connection object).
    My requirement is, I only wanted developer to do front end programming without having the ability to look at backend sql objects definitions. He/she can call the sql objects in the program as needed. 
    I am able to finally solve this requirement by following approach. Hope it helps others. 
    1. Right-click Rajeev user in Database> Security>Users and unselect 'dbowner' from 'General' tab> 'Database Role Membership' section even though Default Schema shows up as Rajeev schema. Now, this user can't do anything on dbo schema of database
    (as well as in any other user's schema in this database).
    2. Ran above commands but excluded following command which was identified as root-cause.
    DENY VIEW DEFINITION ON SCHEMA::dbo TO Rajeev;
    3. Now ran a script that denies 'view definition' of dbo schema's tables. It loops through all tables and denies 'view definition' on each table. Adapted the script of http://blog.extreme-advice.com/2013/01/23/grant-view-defination-permission-to-all-stored-procedures-in-sql-server/.
    Now, the user Rajeev can execute dbo schema objects both from SSMS as well as from application code.
    4. DENY EXECUTE, SELECT ON SCHEMA::INFORMATION_SCHEMA TO Rajeev; -- Restricts Rajeev from executing INFORMATION_SCHEMA objects seen in SSMS.
    However one remaining open item is, I could not hide the system objects (which are part of sys schema) in SSMS. Ideally, I do not want Rajeev to execute the 'system views', 'system stored procedures', etc. When I execute same command (below command), it
    runs without errors but does not apply this restriction.
    DENY EXECUTE, SELECT ON SCHEMA::sys TO Rajeev;
    If you know the reason why it is happening like this, please kindly share.
    Cheers,
    Pullet
    Cheers | Pullet

Maybe you are looking for

  • Assigning a foreign key

    i have created a database which is administered by ora1 who created 2 tables called student and instructor then created a new user called dev1 with dba priviliges dev1 created a table called university assigned a primary key to the university_id colu

  • Create back button on preview page

    I have parameterized report where im trying to input ID to get the data. How do we create back button next to view report on the preview page in SSRS. Any help much appreciated.

  • Bugs in "Oracle 9iJDeveloper Handbook" Example Code

    Does any one know why the BC4J "DataHandler Component" Tag does not work? I'm looking at page 132 of the "Oracle9i JDeveloper Handbook", were it discusses executing the LocDept.jsp code example. Problem is, the First Previous Next Last Navigation Bar

  • HT3204 error message; runtime error;R6025

    CAN'T USE SEARCH MODE FOR I TUNES STORE

  • Search help doesn't appears in WEBUI

    Hi Everyone , I create a custom field for sales order header with EEWB. Normally with wingui the field has a value table and search help and user can choose only permitted entries. When I try to add this filled to webUI it appears like a text field o