Click here to Skip to main content
16,005,389 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Setting XHTML errors to warnings Pin
Dustin Metzgar28-Jun-06 9:20
Dustin Metzgar28-Jun-06 9:20 
GeneralRe: Setting XHTML errors to warnings Pin
Ista28-Jun-06 9:24
Ista28-Jun-06 9:24 
AnswerRe: Setting XHTML errors to warnings Pin
minhpc_bk28-Jun-06 20:02
minhpc_bk28-Jun-06 20:02 
QuestionCan't Impersonate User Info thru ADO.Net Pin
WetRivrRat28-Jun-06 5:14
WetRivrRat28-Jun-06 5:14 
AnswerRe: Can't Impersonate User Info thru ADO.Net Pin
Dustin Metzgar28-Jun-06 8:51
Dustin Metzgar28-Jun-06 8:51 
QuestionHow to run a method from codebehind when clicking on a Pin
adfgh7528-Jun-06 5:11
adfgh7528-Jun-06 5:11 
AnswerRe: How to run a method from codebehind when clicking on a Pin
Edbert P28-Jun-06 13:18
Edbert P28-Jun-06 13:18 
AnswerRe: How to run a method from codebehind when clicking on a Pin
nrutter29-Jun-06 2:48
nrutter29-Jun-06 2:48 
Try this.

In the Page_Load method in the codebehind put:
divButton.Attributes.Add("onclick",Page.GetPostBackEventReference(divButton));

NB. This needs to be executed everytime, so don't put it inside any if blocks.

Now your page will post back when you click on the DIV.

Next thing to do is to work out which control caused the postback so you can call a specific handler for your control. Check here for how to do this

HTH
AnswerThanks! Pin
adfgh7529-Jun-06 4:07
adfgh7529-Jun-06 4:07 
QuestionSend Parameters to 2CO Pin
Abubakarsb28-Jun-06 5:11
Abubakarsb28-Jun-06 5:11 
AnswerRe: Send Parameters to 2CO Pin
minhpc_bk28-Jun-06 20:58
minhpc_bk28-Jun-06 20:58 
QuestionHow to send Shopping Cart Parameters to 2CO ?? Pin
Abubakarsb28-Jun-06 5:10
Abubakarsb28-Jun-06 5:10 
Questionaudio streaming on a webpage Pin
keroed_edmond28-Jun-06 4:59
keroed_edmond28-Jun-06 4:59 
QuestionHTTP 401.1 - Unauthorized IIS error message. Pin
Muzaffer Husain28-Jun-06 4:26
Muzaffer Husain28-Jun-06 4:26 
QuestionAsp.net Autopostback Pin
seyha28-Jun-06 2:42
seyha28-Jun-06 2:42 
AnswerRe: Asp.net Autopostback Pin
_AK_28-Jun-06 2:45
_AK_28-Jun-06 2:45 
QuestionInternet Usage Monitor Pin
Rafdy28-Jun-06 2:36
Rafdy28-Jun-06 2:36 
Questionwant to access usercontrol in webpage Pin
ravikiranreddydharmannagari28-Jun-06 2:10
ravikiranreddydharmannagari28-Jun-06 2:10 
AnswerRe: want to access usercontrol in webpage Pin
Sushant Duggal28-Jun-06 2:23
Sushant Duggal28-Jun-06 2:23 
AnswerRe: want to access usercontrol in webpage Pin
Reza Raad28-Jun-06 2:24
Reza Raad28-Jun-06 2:24 
GeneralRe: want to access usercontrol in webpage Pin
ravikiranreddydharmannagari28-Jun-06 18:26
ravikiranreddydharmannagari28-Jun-06 18:26 
QuestionFTP user Creation with ASP.NET Pin
poornachander kola28-Jun-06 1:53
poornachander kola28-Jun-06 1:53 
Questionstore date in mysql with asp.net Pin
Amit Agarrwal28-Jun-06 0:47
Amit Agarrwal28-Jun-06 0:47 
AnswerRe: store date in mysql with asp.net Pin
Paddy Boyd28-Jun-06 1:23
Paddy Boyd28-Jun-06 1:23 
GeneralRe: store date in mysql with asp.net Pin
Amit Agarrwal28-Jun-06 1:26
Amit Agarrwal28-Jun-06 1:26 

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.