Click here to Skip to main content
15,895,011 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Input CAPS letters in textbox Pin
Fred_Smith28-Aug-07 11:50
Fred_Smith28-Aug-07 11:50 
GeneralRe: Input CAPS letters in textbox Pin
Christian Graus28-Aug-07 13:34
protectorChristian Graus28-Aug-07 13:34 
GeneralRe: Input CAPS letters in textbox Pin
tjkota28-Aug-07 13:36
tjkota28-Aug-07 13:36 
QuestionUse different web.config for debugging Pin
error140828-Aug-07 8:31
error140828-Aug-07 8:31 
AnswerRe: Use different web.config for debugging Pin
nateraaaa28-Aug-07 8:51
nateraaaa28-Aug-07 8:51 
GeneralRe: Use different web.config for debugging Pin
error140828-Aug-07 8:53
error140828-Aug-07 8:53 
AnswerRe: Use different web.config for debugging [modified] Pin
Fred_Smith28-Aug-07 9:05
Fred_Smith28-Aug-07 9:05 
Questionhandle imagebutton click in gridview Pin
ChrisFarrugia28-Aug-07 5:29
ChrisFarrugia28-Aug-07 5:29 
Dear All,

I am placing an image button inside a gridview:

<asp:GridView ID="equipmentGrid" runat="server" AutoGenerateColumns="false" OnRowCommand="equipmentGrid_RowCommand">
<Columns>

<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton i="image" runat="server" ImageUrl='<%# Eval("equipment_image", "~/Images_Equipment/Small/{0}") %>' CommandName="imageClick" />
</ItemTemplate>
</asp:TemplateField>

<asp:BoundField DataField="category" HeaderText="Category" HtmlEncode="false">
<HeaderStyle HorizontalAlign="left"/>
<ItemStyle Wrap="true" HorizontalAlign="left" Width="50px" />
</asp:BoundField>
|
|
|
protected void equipmentGrid_RowCommand(object sender, GridViewCommandEventArgs e)
{


if (e.CommandSource=="image")
{
Response.Redirect("http://www.google.com");
}

}
I want to be able to handle the click of the imagebutton. I tried using onrowcommand but the application is not even accessign the method it just returns an in valid postback error.

I tried modifying the event validation to true but no success. the error does not pop up but the method is still not invoked.

Thanks a lot
Chris
AnswerRe: handle imagebutton click in gridview Pin
nateraaaa28-Aug-07 7:58
nateraaaa28-Aug-07 7:58 
QuestionHow to use LDAP Authentication. Pin
somagunasekaran28-Aug-07 4:13
somagunasekaran28-Aug-07 4:13 
AnswerRe: How to use LDAP Authentication. Pin
Michael Sync28-Aug-07 18:50
Michael Sync28-Aug-07 18:50 
Questioncomponent chart in asp net 1.0 Pin
raquidd2228-Aug-07 4:08
raquidd2228-Aug-07 4:08 
QuestionInsert ASP.NET script in HTML Pin
CodeItWell28-Aug-07 3:57
CodeItWell28-Aug-07 3:57 
AnswerRe: Insert ASP.NET script in HTML Pin
ChrisFarrugia28-Aug-07 5:32
ChrisFarrugia28-Aug-07 5:32 
QuestionDeploying an asp.net 2.0 running on IIS 6.0, on Windows vista?? Pin
Nada Adel28-Aug-07 3:27
Nada Adel28-Aug-07 3:27 
AnswerRe: Deploying an asp.net 2.0 running on IIS 6.0, on Windows vista?? Pin
DigiOz Multimedia28-Aug-07 8:12
DigiOz Multimedia28-Aug-07 8:12 
GeneralRe: Deploying an asp.net 2.0 running on IIS 6.0, on Windows vista?? Pin
Nada Adel28-Aug-07 8:32
Nada Adel28-Aug-07 8:32 
GeneralRe: Deploying an asp.net 2.0 running on IIS 6.0, on Windows vista?? Pin
DigiOz Multimedia28-Aug-07 8:38
DigiOz Multimedia28-Aug-07 8:38 
Questiondropdownbox contain all the values want to store..., Pin
Member 387988128-Aug-07 3:22
Member 387988128-Aug-07 3:22 
AnswerRe: dropdownbox contain all the values want to store..., Pin
nateraaaa28-Aug-07 7:06
nateraaaa28-Aug-07 7:06 
Questionretriving images Pin
diwa8528-Aug-07 3:15
diwa8528-Aug-07 3:15 
GeneralRe: retriving images Pin
Kunal P28-Aug-07 18:46
Kunal P28-Aug-07 18:46 
QuestionException Handling Pin
rockyl28-Aug-07 3:14
rockyl28-Aug-07 3:14 
AnswerRe: Exception Handling Pin
StylezHouse28-Aug-07 3:19
StylezHouse28-Aug-07 3:19 
GeneralRe: Exception Handling Pin
rockyl28-Aug-07 3:24
rockyl28-Aug-07 3:24 

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.