Click here to Skip to main content
16,006,564 members
Home / Discussions / Database
   

Database

 
GeneralRe: CrossTab Pin
Amit Kumar G8-Aug-07 2:32
Amit Kumar G8-Aug-07 2:32 
AnswerRe: CrossTab Pin
fasih19818-Aug-07 3:00
fasih19818-Aug-07 3:00 
GeneralRe: CrossTab Pin
Amit Kumar G8-Aug-07 5:12
Amit Kumar G8-Aug-07 5:12 
QuestionSQL and Microsoft Access Pin
daalle27-Aug-07 10:18
daalle27-Aug-07 10:18 
AnswerRe: SQL and Microsoft Access Pin
Kschuler8-Aug-07 8:17
Kschuler8-Aug-07 8:17 
QuestionWhy @@Error Is not Working Pin
Amit Kumar G7-Aug-07 8:08
Amit Kumar G7-Aug-07 8:08 
AnswerRe: Why @@Error Is not Working Pin
fasih19817-Aug-07 21:05
fasih19817-Aug-07 21:05 
QuestionAdding method for GridView DeleteButton for to OnClick event Pin
--miCZar--7-Aug-07 5:11
--miCZar--7-Aug-07 5:11 
Hi all,

I want to add method that runs when i click DeleteButton on my GridView. Its button from <asp:CommandField ShowDeleteButton="true" />. I know how to solve it by simply adding new button on GridView for deleting and disabling the one from CommandField but thats not the way i want to solve it.

In GridView Load method row by row i choose DeleteButton and add OnClientClick method that shows ModalPopup and OnClick method (this method isnt firing when i click delete button).

<code>
protected void GridView1_Load(object sender, EventArgs e)
{
List<Control> myDeleteButtons = new List<Control>();

for (int i = 0; i < GridView1.Rows.Count; i++)
{
Tools.addAllControls(GridView1.Rows[i], myDeleteButtons);
((ImageButton)myDeleteButtons[4]).OnClientClick = "showPopup(this); return false;"; // working =-]
((ImageButton)myDeleteButtons[4]).Click += new ImageClickEventHandler(GridViewDelete); // not working =7
myDeleteButtons.Clear();
}
</code>

If any1 know how to solve it id be grateful to read that advice.





-------------------
n00b @ pr0grAmiNg
Questionno query analyser Pin
hepsy.i7-Aug-07 0:59
hepsy.i7-Aug-07 0:59 
AnswerRe: no query analyser Pin
Pete O'Hanlon7-Aug-07 1:30
mvePete O'Hanlon7-Aug-07 1:30 
AnswerRe: no query analyser Pin
Vasudevan Deepak Kumar7-Aug-07 2:49
Vasudevan Deepak Kumar7-Aug-07 2:49 
AnswerDataAdapter [modified] Pin
Baz7-Aug-07 0:23
Baz7-Aug-07 0:23 
GeneralRe: DataAdapter Pin
Pete O'Hanlon7-Aug-07 1:40
mvePete O'Hanlon7-Aug-07 1:40 
GeneralRe: DataAdapter Pin
Baz7-Aug-07 1:53
Baz7-Aug-07 1:53 
GeneralRe: DataAdapter Pin
Pete O'Hanlon7-Aug-07 2:06
mvePete O'Hanlon7-Aug-07 2:06 
QuestionLogin Pin
SVb.net7-Aug-07 0:03
SVb.net7-Aug-07 0:03 
AnswerRe: Login [modified] Pin
Krish - KP7-Aug-07 1:56
Krish - KP7-Aug-07 1:56 
Questionnewbie: returning multiple top 30 items Pin
Phillip Hodges6-Aug-07 23:37
Phillip Hodges6-Aug-07 23:37 
AnswerRe: newbie: returning multiple top 30 items Pin
Colin Angus Mackay6-Aug-07 23:44
Colin Angus Mackay6-Aug-07 23:44 
AnswerRe: newbie: returning multiple top 30 items Pin
Pete O'Hanlon6-Aug-07 23:47
mvePete O'Hanlon6-Aug-07 23:47 
AnswerRe: newbie: returning multiple top 30 items Pin
DQNOK7-Aug-07 9:09
professionalDQNOK7-Aug-07 9:09 
Questionchange table owner to dbo Pin
hepsy.i6-Aug-07 23:35
hepsy.i6-Aug-07 23:35 
AnswerRe: change table owner to dbo Pin
Pete O'Hanlon6-Aug-07 23:42
mvePete O'Hanlon6-Aug-07 23:42 
GeneralRe: change table owner to dbo Pin
hepsy.i6-Aug-07 23:53
hepsy.i6-Aug-07 23:53 
GeneralRe: change table owner to dbo Pin
Pete O'Hanlon6-Aug-07 23:55
mvePete O'Hanlon6-Aug-07 23:55 

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.