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.
...
User Profile
Collapse
-
div ASP onclick event
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"/&
Last edited by Frinavale; Sep 3 '10, 03:29 PM. Reason: Please post code in [code] ...[/code] tags. Added code tags. -
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>... -
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... -
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";
Leave a comment:
-
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.... -
-
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); -
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. -
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... -
-
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. -
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....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";Leave a comment:
-
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;
the if statements change regarding the DB engine, I have installed MySQL Server 2005, when I...Code:int n_count = 5; string querytosend = @"if (" + n_count + " > 0) INSERT persons (name, age, address) values ('raul', 23, 'Könnigstraße 23')"; -
-
split a string over two or more lines
How I can split the following string in two or more lines?
which set of buttons should I use to split it like this and the string will be still logicaly one lineCode:string test = "its something unpredictable but in the end is right. I hope you had the time of your life.";
...Code:string test = "its something unpredictable but in the end is right. -
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 -
I found a way to do this
but I need to do this in 1 step because I send this time by parameters, i,e:Code:DateTime lastTime = DateTime.Now; string x = lastTime.ToString("u").Replace("Z", "");
And I would like to send the time through itCode:Insert(DateTime.Now);
Leave a comment:
-
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?
No activity results to display
Show More
Leave a comment: