Click here to Skip to main content
15,914,162 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncheckbox control and rowID Pin
karinb4-May-06 5:43
karinb4-May-06 5:43 
AnswerRe: checkbox control and rowID Pin
Paddy Boyd4-May-06 5:54
Paddy Boyd4-May-06 5:54 
AnswerRe: checkbox control and rowID Pin
MontenegroATL4-May-06 8:29
MontenegroATL4-May-06 8:29 
GeneralRe: checkbox control and rowID Pin
karinb9-May-06 8:58
karinb9-May-06 8:58 
QuestionFREE !!!! ASP.NET Resources Pin
dotnetguide4-May-06 5:06
dotnetguide4-May-06 5:06 
AnswerRe: FREE !!!! ASP.NET Resources Pin
Guffa4-May-06 6:23
Guffa4-May-06 6:23 
QuestionHelp me..with this message..The server viewstate cache has timed out Pin
jorgeils4-May-06 4:04
jorgeils4-May-06 4:04 
QuestionUsing CommandArgument inside a DataList geeks out Pin
Ista4-May-06 3:47
Ista4-May-06 3:47 
I have the following DataList

<div style="overflow:scroll;">
<asp:DataList ID="dlAvatar" runat="server" DataKeyField="FileName" RepeatLayout="Flow" RepeatDirection="Horizontal" SelectedItemStyle-BorderStyle="Inset" >
<ItemTemplate>
<asp:ImageButton ID="imgAvatarSelect" runat="server" OnCommand="Buttons_CommandEvent" ImageUrl='<%# Eval("FileName") %>' CommandArgument='<%# Eval("FileName") %>' CommandName="Select"/>
</ItemTemplate>
</asp:DataList>
</div>

When I use Inline for the "CommandArgument" My onCommand event wont get fired, but when I take it out it works fine.

I I found the control like this inside my code behind:
//void dlAvatar_ItemCreated(object sender, DataListItemEventArgs e)
//{
// int i = 0;

// object a = e.Item.FindControl("imgChoose");

// ImageButton a2 = a as ImageButton;

// if (a2 != null)
// {
// a2.CommandArgument = ((AvatarPicture)e.Item.DataItem).FileName;
// }
//}

but, it finds the control and sets the value. but the commandArgument never changes its value.

And yes, its commented out because it wasnt working.

Any ideas?

1 line of code equals many bugs. So don't write any!!
AnswerRe: Using CommandArgument inside a DataList geeks out Pin
minhpc_bk4-May-06 16:06
minhpc_bk4-May-06 16:06 
GeneralRe: Using CommandArgument inside a DataList geeks out Pin
Ista4-May-06 16:29
Ista4-May-06 16:29 
GeneralRe: Using CommandArgument inside a DataList geeks out Pin
minhpc_bk4-May-06 16:50
minhpc_bk4-May-06 16:50 
GeneralRe: Using CommandArgument inside a DataList geeks out Pin
Ista5-May-06 4:05
Ista5-May-06 4:05 
GeneralRe: Using CommandArgument inside a DataList geeks out Pin
Ista5-May-06 4:26
Ista5-May-06 4:26 
QuestionPrivilages of clients to copy files on a server Pin
haneen19844-May-06 3:28
haneen19844-May-06 3:28 
QuestionProcessing Webpages on different Web Server Pin
rohan19814-May-06 3:24
rohan19814-May-06 3:24 
QuestionProblem with my web site. Pin
Suj_784-May-06 3:13
Suj_784-May-06 3:13 
AnswerRe: Problem with my web site. Pin
Paddy Boyd4-May-06 3:48
Paddy Boyd4-May-06 3:48 
AnswerRe: Problem with my web site. Pin
RichardGrimmer4-May-06 5:57
RichardGrimmer4-May-06 5:57 
AnswerRe: Problem with my web site. Pin
Dipan Patel From Gandhinagar6-May-06 2:53
Dipan Patel From Gandhinagar6-May-06 2:53 
QuestionGetting around virtual directories? Pin
scott987uk4-May-06 3:11
scott987uk4-May-06 3:11 
AnswerRe: Getting around virtual directories? Pin
Paddy Boyd4-May-06 3:49
Paddy Boyd4-May-06 3:49 
GeneralRe: Getting around virtual directories? Pin
scott987uk4-May-06 3:53
scott987uk4-May-06 3:53 
AnswerRe: Getting around virtual directories? Pin
Paddy Boyd4-May-06 3:55
Paddy Boyd4-May-06 3:55 
QuestionJavaScript in MasterPages [asp.net 2.0] Pin
student_rhr4-May-06 2:57
student_rhr4-May-06 2:57 
AnswerRe: JavaScript in MasterPages [asp.net 2.0] Pin
R.Prabha Devi4-May-06 3:08
R.Prabha Devi4-May-06 3:08 

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.