User Profile

Collapse

Profile Sidebar

Collapse
Jmaes Wang
Jmaes Wang
Last Activity: Sep 14 '13, 12:31 PM
Joined: Oct 15 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Orientation change setection only works from Portrait to Landscape

    I need to detect mobile browser screen orientation change. It's interesting that the following javascript can detect the orientation change from portrait to landscape but not the opposite. Why?

    Code:
    <script type='text/javascript'>
        detectOrientation();
        window.onorientationchange = detectOrientation;
        function detectOrientation() {
            var panel2CleinetID = '<%= Panel2.ClientID %>';
    ...
    See more | Go to post

  • Using jquery autocomplete from database in asp.net - couldn't get minLength working

    Hi,

    I want to use jquery autocomplete from database in asp.net. I got it working except the minLength option. As shown in the following code, I tried a few ways but couldn't get minLength option working. Please shed light on this. Thank you.

    Here is my code:
    Code:
        <script src="../../../jquery/jquery-1.7.2.js" type="text/javascript"></script>
        <script type="text/javascript"
    ...
    See more | Go to post

  • Help! SQL select statement for an uncommon task

    Let’s say we have 3 tables: fruit name, color and taste that have data like this:

    Fruits:
    Apple

    Color:
    Red
    Green
    Yellow

    Taste:
    Sweet
    Bitter

    I need to come up with a single SQL statement that will combine all 3 tables so that for each fruit there will be as many records as max number of records in any of other tables (in this case 3 records because...
    See more | Go to post

  • I also tried using Microsoft OLE DB provider. There was also an error:
    "No value given for one or more required parameters."

    I think there mst be a way to import blob columns from Paradox database in C#. Any ideas?
    See more | Go to post

    Leave a comment:


  • The problem has been resolved. Actually it's another column that caused the error. I thought it was this column even though I couldn't figure out anything wrong.
    See more | Go to post

    Leave a comment:


  • Failed query blob columns from Paradox databse via ODBC

    Attached please find my code. I failed to query the blob column. Note the Paradox driver version is 4.0. The error is:

    Error code: -2146232009
    Error msg: ERROR [07002] [Microsoft][ODBC Paradox Driver] Too few parameters. Expected 1.
    Source: odbcjt32.dll


    I can query non-blob columns of the table with the same code. Can you please tell me what the problem is? Is this the limitation of .Net Framework...
    See more | Go to post

  • How to insert DBNnull into binary column via parameter list?

    The table was created using the following script:
    Code:
    CREATE TABLE [USERS] (
    [USER_PASSWORD] binary(100) NULL
    );
    The SqlCeCommand command text:
    Code:
    INSERT INTO [USERS]
               ([PASSWORD])
         VALUES
               (@password);

    Add the parameter:
    Code:
    command.Parameters.Add("@password", SqlDbType.Binary).Value = DBNull.Value;
    Execute the command...
    See more | Go to post
No activity results to display
Show More
Working...