Click here to Skip to main content
16,009,057 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionsave aspx file into sub domain ? Pin
winseelan28-Apr-08 4:39
winseelan28-Apr-08 4:39 
GeneralImage control not showing image at runtime Pin
bld28-Apr-08 4:07
bld28-Apr-08 4:07 
GeneralRe: Image control not showing image at runtime Pin
Ashish Sehajpal28-Apr-08 9:06
Ashish Sehajpal28-Apr-08 9:06 
GeneralRe: Image control not showing image at runtime Pin
bld28-Apr-08 9:20
bld28-Apr-08 9:20 
GeneralRe: Image control not showing image at runtime Pin
Ashish Sehajpal28-Apr-08 9:25
Ashish Sehajpal28-Apr-08 9:25 
GeneralRe: Image control not showing image at runtime Pin
bld28-Apr-08 9:30
bld28-Apr-08 9:30 
GeneralThe underlying connection was closed: Could not establish trust relationship with remote server. Pin
A Wong28-Apr-08 3:42
A Wong28-Apr-08 3:42 
GeneralRe: The underlying connection was closed: Could not establish trust relationship with remote server. Pin
A Wong28-Apr-08 3:45
A Wong28-Apr-08 3:45 
GeneralRe: The underlying connection was closed: Could not establish trust relationship with remote server. Pin
A Wong29-Apr-08 7:21
A Wong29-Apr-08 7:21 
GeneralIIS 6.0 3rd party app question Pin
SomeGuyThatIsMe28-Apr-08 3:01
SomeGuyThatIsMe28-Apr-08 3:01 
GeneralRe: IIS 6.0 3rd party app question Pin
Mark J. Miller28-Apr-08 4:23
Mark J. Miller28-Apr-08 4:23 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe28-Apr-08 4:31
SomeGuyThatIsMe28-Apr-08 4:31 
GeneralRe: IIS 6.0 3rd party app question Pin
Mark J. Miller28-Apr-08 4:47
Mark J. Miller28-Apr-08 4:47 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe28-Apr-08 5:40
SomeGuyThatIsMe28-Apr-08 5:40 
GeneralRe: IIS 6.0 3rd party app question Pin
Mark J. Miller28-Apr-08 6:01
Mark J. Miller28-Apr-08 6:01 
GeneralRe: IIS 6.0 3rd party app question Pin
Mark J. Miller28-Apr-08 6:06
Mark J. Miller28-Apr-08 6:06 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe28-Apr-08 7:19
SomeGuyThatIsMe28-Apr-08 7:19 
GeneralRe: IIS 6.0 3rd party app question Pin
Mark J. Miller28-Apr-08 7:29
Mark J. Miller28-Apr-08 7:29 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe28-Apr-08 7:46
SomeGuyThatIsMe28-Apr-08 7:46 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe29-Apr-08 3:45
SomeGuyThatIsMe29-Apr-08 3:45 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe29-Apr-08 6:32
SomeGuyThatIsMe29-Apr-08 6:32 
Generaladd linkbutton oncommand and comandargument from codebehing Pin
justintimberlake28-Apr-08 2:47
justintimberlake28-Apr-08 2:47 
I have a gridview inside which I have added a linkbutton the gridview will be binded from codebehind from two different tables(one at a time i.e if search parameter is category it will be binded from categorytable and if search parametre is item it will be binded from item table). Now what I want to do is to add OnCommand="mycommand" from codebeinh and CommandArgument from codebehind to the event oncommand. How can I do this. Please help me.Any help will be highly appreciated


<table>
<tr>
<td>
<asp:GridView ID="gridviewsearchresult" runat="server" OnRowDataBound="gridviewsearchresult_RowDataBound">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="linbutton" runat="server" ></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton></td>
</tr>
</table>

Codebehind:
protected void gridviewsearchresult_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//Am I correct cant work here
LinkButton lnk1 = (LinkButton)e.Row.FindControl("linbutton");
lnk1.Click +=new System.Web.UI.WebControls.CommandEventHandler(OnLinkClick);


}
}
GeneralRe: add linkbutton oncommand and comandargument from codebehing Pin
Ashish Sehajpal28-Apr-08 6:30
Ashish Sehajpal28-Apr-08 6:30 
GeneralRe: add linkbutton oncommand and comandargument from codebehing Pin
justintimberlake28-Apr-08 15:51
justintimberlake28-Apr-08 15:51 
GeneralRe: add linkbutton oncommand and comandargument from codebehing Pin
justintimberlake28-Apr-08 16:09
justintimberlake28-Apr-08 16:09 

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.