Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to store images and retrive them to Data Grid View in database C#? Pin
Christian Graus27-Jul-08 11:23
protectorChristian Graus27-Jul-08 11:23 
AnswerRe: How to store images and retrive them to Data Grid View in database C#? Pin
nelsonpaixao28-Jul-08 13:50
nelsonpaixao28-Jul-08 13:50 
AnswerRe: How to store images and retrive them to Data Grid View in database C#? Pin
Zafar Sultan28-Jul-08 19:01
Zafar Sultan28-Jul-08 19:01 
QuestionRemote Connection (SQL Server) Pin
mehrdadc4827-Jul-08 9:24
mehrdadc4827-Jul-08 9:24 
QuestionRe: Remote Connection (SQL Server) Pin
Paul Conrad27-Jul-08 9:59
professionalPaul Conrad27-Jul-08 9:59 
AnswerRe: Remote Connection (SQL Server) Pin
Wendelius27-Jul-08 10:35
mentorWendelius27-Jul-08 10:35 
QuestionCalling two ethods in a button click action Pin
WebMaster27-Jul-08 8:29
WebMaster27-Jul-08 8:29 
AnswerRe: Calling two ethods in a button click action Pin
Guffa27-Jul-08 8:52
Guffa27-Jul-08 8:52 
semiramisContraA wrote:
I need to call two methods, (one written in javascript defined in the header part of an aspx page and the second written in c# in aspx.cs file of the same aspx page) in the button_click action of a button in the aspx page.


You can't do that. You can't call an existing Javascript function from the server side event.

Use the client side click event (accessible throught the OnClientClick property of the control) to call the Javascript function.

semiramisContraA wrote:
And I can not put the first method from within the second one, because of some problems.


Of course not. When the server side event runs, the request for the new page has already started, so the first function doesn't exist any more. If you would add code to the page from the server side event for calling the Javascript function, that code would load when the page is completed, and it would call the new Javascript function that would be created when the page reloads after postback.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Calling two ethods in a button click action Pin
Christian Graus27-Jul-08 10:14
protectorChristian Graus27-Jul-08 10:14 
QuestionDatabase with MS Acess Pin
benjamin yap27-Jul-08 4:58
benjamin yap27-Jul-08 4:58 
AnswerRe: Database with MS Acess Pin
Paul Conrad27-Jul-08 5:45
professionalPaul Conrad27-Jul-08 5:45 
GeneralRe: Database with MS Acess Pin
benjamin yap27-Jul-08 6:02
benjamin yap27-Jul-08 6:02 
GeneralRe: Database with MS Acess Pin
Paul Conrad27-Jul-08 6:05
professionalPaul Conrad27-Jul-08 6:05 
GeneralRe: Database with MS Acess Pin
benjamin yap27-Jul-08 6:07
benjamin yap27-Jul-08 6:07 
GeneralRe: Database with MS Acess Pin
Paul Conrad27-Jul-08 6:10
professionalPaul Conrad27-Jul-08 6:10 
GeneralRe: Database with MS Acess Pin
benjamin yap27-Jul-08 6:12
benjamin yap27-Jul-08 6:12 
GeneralRe: Database with MS Acess Pin
Paul Conrad27-Jul-08 6:22
professionalPaul Conrad27-Jul-08 6:22 
Questionread Priv1.edb Pin
mohammadser27-Jul-08 4:30
mohammadser27-Jul-08 4:30 
AnswerRe: read Priv1.edb Pin
DaveyM6927-Jul-08 5:05
professionalDaveyM6927-Jul-08 5:05 
Questionstring.writeline format Pin
George_George27-Jul-08 3:59
George_George27-Jul-08 3:59 
AnswerRe: string.writeline format Pin
User 665827-Jul-08 4:27
User 665827-Jul-08 4:27 
GeneralRe: string.writeline format Pin
George_George27-Jul-08 16:45
George_George27-Jul-08 16:45 
QuestionToolBox Icon - VS2008 Pin
DaveyM6927-Jul-08 3:52
professionalDaveyM6927-Jul-08 3:52 
GeneralRe: ToolBox Icon - VS2008 Pin
DaveyM6928-Jul-08 0:21
professionalDaveyM6928-Jul-08 0:21 
Questionaccessing hardware information Pin
Seyyed Hossein Hasan Pour27-Jul-08 2:18
Seyyed Hossein Hasan Pour27-Jul-08 2:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.