Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 9875787

@User 9875787
About
Posts
11
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Button click event in Google Maps
    U User 9875787

    I am working with Google Maps embedded on my webpage. What I want is to create a button click event, so that after a user has entered an address into a textbox (called txtBoxMaps), they can click a button which will display the new location on the same webpage. I tried using: google.maps.event.addListener(map, 'click', function(event) but when I click the button (btnDisplay) nothing happens. I can see the google map but it doesnt change after the "Display" button is clicked. Here is my code below:

        .style1
        {
            width: 104px;
        }
        .style2
        {
            width: 144px;
        }
        #GO
        {
            width: 92px;
        }
        #Display
        {
            width: 113px;
        }
    

    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
    <script type="text/javascript">

    function Initialize() {
    
    
        var mapOptions = {
            center: new google.maps.LatLng(-33.01, 27.9),
            zoom: 13,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };
    
        var map = new            google.maps.Map(document.getElementById('GMap1'), mapOptions);
    
    
        google.maps.event.addListener(map, 'click', function(event) {
        mapZoom = map.getZoom();
        startLocation = event.latLng;
        var input = document.getElementById('TextBox1');
    
        });
    

    }

    google.maps.event.addDomListener(window, 'load', Initialize);
    

    </script>

    <input type="text" id="TextBox1"/>
    <input type = "button" id="btnDisplay" value = "Display"/>

    JavaScript javascript com hardware iot tools

  • Clearing Textboxes (Foreach) Not Working
    U User 9875787

    Thanks man

    ASP.NET csharp debugging question

  • Clearing Textboxes (Foreach) Not Working
    U User 9875787

    Thanks!

    ASP.NET csharp debugging question

  • Validate textbox (characters)
    U User 9875787

    Hi. I would like to validate a textbox so that it only contains strings (words/sentences) but not symbols such as < > ! @ etc. I checked the Regular Expression Validator, but didnt find a Validation Expression which validates for symbols Is there a Validator Expression for this? Thanks

    C# regex question

  • Clearing Textboxes (Foreach) Not Working
    U User 9875787

    Hi all. I am writing a program using Microsoft Visual Web Developer. I have 3 textboxes (TextBox1, TextBox2 and TextBox3) and a button. I want to use a foreach loop to clear textboxes. For some reason this code doesnt work on a Webform. While debugging it, the debugger skips the line: "if (c is TextBox)" and so the textboxes dont get cleared. Here control = {ASP.default_aspx} When I use the below code in Microsoft Visual C# with a windows form it works. What could be wrong? Here is the code: protected void Button1_Click(object sender, EventArgs e) { ClearTextBoxes(this); } public void ClearTextBoxes(Control control) { foreach (Control c in control.Controls) { if (c is TextBox) { ((TextBox)c).Text = " "; } }

    ASP.NET csharp debugging question

  • Cannot insert the value NULL into column
    U User 9875787

    Hi all. I have run into a problem with inserting values into table. I have 2 tables: PUBLISHER with fields: PUBLISHER_CODE (Primary Key) and PUBLISHER_NAME. BOOK table fields: PUBLISHER_CODE (Primary Key and Foreign key to PUBLISHER table) and TITLE. The user enters bookCode and publisherName into 2 textboxes Here is the code for inserting: "INSERT INTO BOOK (TITLE) VALUES(@bookCode)"; "INSERT INTO PUBLISHER (PUBLISHER_NAME) VALUES(@publisherName)"; When running programme, the PUBLISHER table generates a new PUBLISHER_CODE (Primary Key) and publisherName inserted. Now problem is for the BOOK table the following error appears: "Cannot insert the value NULL into column 'PUBLISHER_CODE'", table BOOK :sigh: Why is this happening? Doesnt BOOK generate same/new PUBLISHER_CODE from PUBLISHER table since its a foreign key?

    Database help question learning

  • Comparing 2 values in same column SQL (C#)
    U User 9875787

    Thanks! :)

    Database database csharp tutorial

  • Comparing 2 values in same column SQL (C#)
    U User 9875787

    Hi all. I am busy writing a program, in Microsoft Visual Web Developer, and have a database was several tables. The one I am focusing on now is the ACCOUNT table. This table contains username, password and email column. I want to compare a username entered into a textbox with the existing usernames in the ACCOUNT table, so that I can create a message saying that the entered user already exists. I know how to do this in C# with if statements, but am really unsure with SQL, since not sure how to use it with SELECT.Thanks

    Database database csharp tutorial

  • No new tables in database after executed query
    U User 9875787

    Yeah it didnt work. However I realised that this script didnt have any code to create tables so I used a different script with "CREATE TABLE" code in the query and it worked! thanks

    Database database sql-server sharepoint sysadmin tools

  • No new tables in database after executed query
    U User 9875787

    Hi all. I am using Microsoft SQL Server 2008 Management Studio. I have been trying to create a database (containing tables etc) from a query file (Delivery.sql). In the Object explorer I right-clicked Database folder and created the "Delivery database". I then clicked New Query and pasted the contents of Delivery.sql (from notepad) into the new query. Now when I execute this code, it says it has completed successfully, but in the Object Explorer the "Delivery database" does not contain any tables :sigh: . I am confused and am in need of help . Thanks. Here is the image of the object explorer: http://imageshack.us/a/img694/7558/sqlobjectexplorerp.png[^] Here is the code of the query file (Delivery.sql):

    USE [Delivery database]
    GO

    /****** Object: Database [Delivery] Script Date: 05/09/2013 19:23:43 ******/
    CREATE DATABASE [Delivery] ON PRIMARY
    ( NAME = N'Delivery', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\Delivery.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
    LOG ON
    ( NAME = N'Delivery_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\Delivery_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
    GO

    ALTER DATABASE [Delivery] SET COMPATIBILITY_LEVEL = 100
    GO

    IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
    begin
    EXEC [Delivery database].[dbo].[sp_fulltext_database] @action = 'enable'
    end
    GO

    ALTER DATABASE [Delivery] SET ANSI_NULL_DEFAULT OFF
    GO

    ALTER DATABASE [Delivery] SET ANSI_NULLS OFF
    GO

    ALTER DATABASE [Delivery] SET ANSI_PADDING OFF
    GO

    ALTER DATABASE [Delivery] SET ANSI_WARNINGS OFF
    GO

    ALTER DATABASE [Delivery] SET ARITHABORT OFF
    GO

    ALTER DATABASE [Delivery] SET AUTO_CLOSE OFF
    GO

    ALTER DATABASE [Delivery] SET AUTO_CREATE_STATISTICS ON
    GO

    ALTER DATABASE [Delivery] SET AUTO_SHRINK OFF
    GO

    ALTER DATABASE [Delivery] SET AUTO_UPDATE_STATISTICS ON
    GO

    ALTER DATABASE [Delivery] SET CURSOR_CLOSE_ON_COMMIT OFF
    GO

    ALTER DATABASE [Delivery] SET CURSOR_DEFAULT GLOBAL
    GO

    ALTER DATABASE [Delivery] SET CONCAT_NULL_YIELDS_NULL OFF
    GO

    ALTER DATABASE [Delivery] SET NUMERIC_ROUNDABORT OFF
    GO

    ALTER DATABASE [Delivery] SET QUOTED_IDENTIFIER OFF
    GO

    ALTER DATABASE [Delivery] SET RECURSIVE_TRIGGERS OFF
    GO

    ALTER DA

    Database database sql-server sharepoint sysadmin tools

  • Placing & arranging controls on web form
    U User 9875787

    Hi all. I am using Microsoft Visual Web Developer Express 2010. I am finding working with the controls on the form very annoying, as it is hard to place and rearrange the various components e.g. labels, textboxes, unlike in Microsoft Visual C# Express 2008 (where you can drag and drop and adjust a component anywhere on the screen) I have tried using tables, and though they work, the components are hard to get positioned the way you want (see the link below with labels). Is there an easier way of laying out the controls? Thanks http://imageshack.us/a/img10/2388/designview.png[^]

    ASP.NET csharp question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups