Click here to Skip to main content
15,894,646 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to select first several datarow from a dataset, and how to create a dataset from datarow? Pin
Abhishek Sur5-Sep-09 10:16
professionalAbhishek Sur5-Sep-09 10:16 
GeneralRe: how to select first several datarow from a dataset, and how to create a dataset from datarow? Pin
Seraph_summer5-Sep-09 11:16
Seraph_summer5-Sep-09 11:16 
GeneralRe: how to select first several datarow from a dataset, and how to create a dataset from datarow? Pin
Abhishek Sur5-Sep-09 12:07
professionalAbhishek Sur5-Sep-09 12:07 
Questiondownloadable files Pin
hasani20075-Sep-09 7:35
hasani20075-Sep-09 7:35 
AnswerRe: downloadable files Pin
Manas Bhardwaj5-Sep-09 7:40
professionalManas Bhardwaj5-Sep-09 7:40 
AnswerRe: downloadable files Pin
Abhishek Sur5-Sep-09 7:54
professionalAbhishek Sur5-Sep-09 7:54 
QuestionUser control with ListView and event wiring. Pin
CodeProjectNeil5-Sep-09 5:51
CodeProjectNeil5-Sep-09 5:51 
AnswerRe: User control with ListView and event wiring. Pin
Abhishek Sur5-Sep-09 10:30
professionalAbhishek Sur5-Sep-09 10:30 
Basically the Placeholder once rendered to the client is just a DIV. So why dont you create btnClose a server side one and just use javascript to change the visibility of the placeholder.

This will eliminate the unnecessary postback of your page. Just in the DataBound event use
btnClose.Attributes.Add("onclick","javascript:yourfunction('" + placeholderId + '");

On your case, as it is a custom delegate defined by you, ASP.NET will not add its handler. Delegates only get object when a function is assigned to it. Use

this.yourclass.CloseButtonEvent += new CloseButtonHandler(  put method name here that will handle the event  );


Write this in Page_Load.. and as Page_Load is always called first before the actual btnclick event is triggered, the delegate will have the function.

Smile | :) Smile | :) Rose | [Rose]

Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

QuestionTreeView - Load/Save XMLDataSource Pin
krishy195-Sep-09 4:59
krishy195-Sep-09 4:59 
AnswerRe: TreeView - Load/Save XMLDataSource Pin
Arindam Sinha5-Sep-09 5:44
Arindam Sinha5-Sep-09 5:44 
QuestionHave the HTML output Pin
behnam-s5-Sep-09 4:12
behnam-s5-Sep-09 4:12 
AnswerRe: Have the HTML output Pin
Manas Bhardwaj5-Sep-09 6:36
professionalManas Bhardwaj5-Sep-09 6:36 
AnswerRe: Have the HTML output Pin
Abhishek Sur5-Sep-09 8:19
professionalAbhishek Sur5-Sep-09 8:19 
GeneralRe: Have the HTML output Pin
behnam-s6-Sep-09 4:38
behnam-s6-Sep-09 4:38 
GeneralRe: Have the HTML output Pin
Abhishek Sur6-Sep-09 22:29
professionalAbhishek Sur6-Sep-09 22:29 
QuestionA Query Pin
mehrdadc485-Sep-09 2:59
mehrdadc485-Sep-09 2:59 
AnswerRe: A Query Pin
Abhijit Jana5-Sep-09 3:01
professionalAbhijit Jana5-Sep-09 3:01 
GeneralRe: A Query Pin
mehrdadc485-Sep-09 3:28
mehrdadc485-Sep-09 3:28 
AnswerRe: A Query Pin
Manas Bhardwaj5-Sep-09 3:04
professionalManas Bhardwaj5-Sep-09 3:04 
GeneralRe: A Query Pin
mehrdadc485-Sep-09 3:08
mehrdadc485-Sep-09 3:08 
GeneralRe: A Query Pin
Manas Bhardwaj5-Sep-09 3:12
professionalManas Bhardwaj5-Sep-09 3:12 
AnswerRe: A Query Pin
Blue_Boy5-Sep-09 5:28
Blue_Boy5-Sep-09 5:28 
Questionbind data from textboxes to griview Pin
Flavia A5-Sep-09 0:31
Flavia A5-Sep-09 0:31 
AnswerRe: bind data from textboxes to griview Pin
Abhijit Jana5-Sep-09 0:34
professionalAbhijit Jana5-Sep-09 0:34 
GeneralRe: bind data from textboxes to griview Pin
Flavia A5-Sep-09 1:58
Flavia A5-Sep-09 1:58 

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.