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

ASP.NET

 
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 
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 
Ok so I changed the Created to be like this:

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;
a2.Command += new CommandEventHandler(Buttons_CommandEvent);
a2.Click += new ImageClickEventHandler(btnAdd_Click);

}
}

it find the control fine. and I add the handlers fine. no errors. But the Image is never posting back. This is just unreal. Is there a property that has to be set to allow posting back?

I'm caught in a nightmare



And to add. I put a regular button on the form and its not posting back.

This page belong to a master page. Do you have any idea why a page wont post back?
1 line of code equals many bugs. So don't write any!!

-- modified at 10:08 Friday 5th May, 2006
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 
GeneralRe: JavaScript in MasterPages [asp.net 2.0] Pin
student_rhr4-May-06 6:23
student_rhr4-May-06 6:23 
AnswerRe: JavaScript in MasterPages [asp.net 2.0] Pin
R.Prabha Devi4-May-06 3:24
R.Prabha Devi4-May-06 3:24 
AnswerRe: JavaScript in MasterPages [asp.net 2.0] Pin
Guffa4-May-06 8:04
Guffa4-May-06 8:04 
QuestionDataList OnCommand stopped working Pin
Ista4-May-06 2:53
Ista4-May-06 2:53 

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.