User Profile

Collapse

Profile Sidebar

Collapse
raulbolanos
raulbolanos
Last Activity: Jul 9 '10, 02:21 PM
Joined: Apr 29 '09
Location: Stuttgart, Germany
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • raulbolanos
    started a topic div ASP onclick event

    div ASP onclick event

    Hi guys, I have the followin problem.

    I need to execute from the .aspx file a code-behind function on onClick event.

    When I run the project, the ASP sentence is beign execute before show the whole HTML or click the tag.

    How can I avoid this? I really need to run this code-behind function after clicking the DIV dat.

    I would appreciate any kind of help.

    Thank you in advance.
    ...
    See more | Go to post
    Last edited by Frinavale; Jul 12 '10, 07:00 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

  • What you can do is make this method on the code-behind like an AjaxPro method.

    In order to do that, you have to download the library file by Michael Schwarz (http://www.ajaxpro.info/) and add it to the references.

    After that, add to the Web.config httpHandlers tag, the next entry:

    Code:
    <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/&
    ...
    See more | Go to post
    Last edited by Frinavale; Sep 3 '10, 03:29 PM. Reason: Please post code in [code] ...[/code] tags. Added code tags.

    Leave a comment:


  • Prompt Open/Save dialog box in code-behind and javascript

    I guys, I got 2 days trying to go thought this and I cannot figure out how to solve it, hope you can help me out here.

    I have a ASP Web Application, as simple as this;

    <%@ Page Language="C#" AutoEventWireup ="true" CodeBehind="Def ault.aspx.cs" Inherits="_Defa ult" %>
    <%@ Import Namespace="Syst em.IO" %>

    <HTML>
    <HEAD>...
    See more | Go to post

  • Update DATABASE using DataAdapter's update method

    Hi guys,

    I want to update this datatable into my DB but the table in the DB that I use, it doesn't use Primary Key and I really don't need it. Therefore I get this Exception error (System.Invalid OperationExcept ion: Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information).

    If I go to the DB and I add a new column into the table and assign it...
    See more | Go to post

  • My Query is something like this
    Code:
    string queryString = "SELECT xValue, yValue, specType, s.specIndex FROM (verspec s INNER JOIN verspecdata sd on s.specIndex = sd.specIndex) WHERE (productNumber = 'TEST') AND options = '000 000 000' AND specType = 0 AND curveIndex = 0 ORDER BY productNumber";
    See more | Go to post

    Leave a comment:


  • raulbolanos
    started a topic MySqlCommandBuilder SqlCommandBuilder Error

    MySqlCommandBuilder SqlCommandBuilder Error

    Hi Pr0's,

    I have a problem trying to implement the same example from this link:

    http://msdn.microsoft. com/en-us/library/system.data.sql client.sqlcomma ndbuilder.aspx

    But instead of Sql I use MySql. When I fill the DataSet with the data from the DB I dont have any trouble I can even fill also a DataGridViewer and display the data in my form.

    The problem is when I want to use the GetUpdateComman d....
    See more | Go to post

  • Solved, using API MessageBox you void this.
    See more | Go to post

    Leave a comment:


  • raulbolanos
    started a topic Use MessageBox without using Form's libraries

    Use MessageBox without using Form's libraries

    Hi guys,

    I need show an exception with a MessageBox but it take place in one project which mustn't use Form libraries. Maybe something like this.

    Code:
    public static void Main()
            {
                try
                {
                    hallo(4);
                }
                catch (ArgumentOutOfRangeException ex)
                {
                    MessageBox.Show(ex);
    ...
    See more | Go to post

  • Select specific Rootpath in folderBrowserDialog1

    Hey guys,

    How I can open a specific Rootpath in folderBrowserDi alog1 when it only accept SpecialFolder Enum.

    For example if I want to my Rootpath start from "C:\ProgramA\li b\v1.5\examples \".

    What can I do in this case?

    Thank you.
    See more | Go to post

  • raulbolanos
    started a topic Make default file association

    Make default file association

    Hi guys,

    I am facing this trouble.

    I have associated some extension to my Application and they work good. The problem comes when I go to one of this files, right click on it, open with, select another application (like note pad) and select the check box "Always use the selected program to open this kind of file".

    If I uninstall my program and re-install it again the file association will still...
    See more | Go to post

  • raulbolanos
    replied to Thread sleep with double
    Thank you it's solved now.
    See more | Go to post

    Leave a comment:


  • raulbolanos
    started a topic Thread sleep with double

    Thread sleep with double

    Hello guys,

    I want to wait a certain time but it wont be always integer values, but decimals also.

    For example I want to wait half second and in my program it's used like 0.5.

    Do you have any solution to this?

    Best regards,
    Raul Bolanos.
    See more | Go to post

  • The problem is that I have found only examples where whether the IF or CASE..WHEN statements are inside the Query. And I need to apply them outside....
    See more | Go to post

    Leave a comment:


  • I cant make this work... please help me.

    Code:
    int x = 23;
    string queryString = @"CASE WHEN (" + x + @" > 0)
                                         THEN UPDATE person SET person.age = 23 WHERE age = 22
                                         ELSE 'x is less than 0'
                                       END";
    ...
    See more | Go to post

    Leave a comment:


  • raulbolanos
    started a topic How to send an IF statement by a Transaction

    How to send an IF statement by a Transaction

    Hi guys,

    how can I send an IF statement by T-SQL?

    Lets suppose that I want to insert something, for example;

    Code:
    int n_count = 5;
    string querytosend = @"if  (" + n_count + " > 0)
         INSERT persons (name, age, address) values ('raul', 23, 'Könnigstraße 23')";
    the if statements change regarding the DB engine, I have installed MySQL Server 2005, when I...
    See more | Go to post

  • raulbolanos
    replied to split a string over two or more lines
    Hey guys, it's solved..

    Thank you anyway.
    See more | Go to post

    Leave a comment:


  • raulbolanos
    started a topic split a string over two or more lines

    split a string over two or more lines

    How I can split the following string in two or more lines?

    Code:
    string test = "its something unpredictable but in the end is right. I hope you had the time of your life.";
    which set of buttons should I use to split it like this and the string will be still logicaly one line

    Code:
    string test = "its something unpredictable 
                          but in the end is right.
    ...
    See more | Go to post

  • raulbolanos
    started a topic Problem sensind Transactions

    Problem sensind Transactions

    Hi guys,

    I want to send this transaction but I got an error.

    Code:
    string cmdString = @"IF (5 > 0) BEGIN PRINT 'Hi..' END";
    
    MySqlCommand command = new MySqlCommand(cmdString, m_connection);
    ActivateDatabaseApplicationRole();
    using (transaction = m_connection.BeginTransaction())
    {
    	Trace.WriteLine("\n\nBEGIN INSERT\n\n");
    	//AC foreach (OleDbCommand
    ...
    See more | Go to post

  • raulbolanos
    replied to Change DateTime.Now format to ISO 8601
    I found a way to do this

    Code:
    DateTime lastTime = DateTime.Now;
    string x = lastTime.ToString("u").Replace("Z", "");
    but I need to do this in 1 step because I send this time by parameters, i,e:

    Code:
    Insert(DateTime.Now);
    And I would like to send the time through it
    See more | Go to post

    Leave a comment:


  • raulbolanos
    started a topic Change DateTime.Now format to ISO 8601

    Change DateTime.Now format to ISO 8601

    Hello guys,

    I get this time from DateTime.Now "6/12/2009 11:45:28 AM" and I need to convert it ISO 8601 which is the one that SQL accepts "2009-12-06 11:45:28".

    What can I do?
    See more | Go to post
No activity results to display
Show More
Working...