Click here to Skip to main content
15,916,432 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to update data grid control without full page refresh Pin
_AK_14-May-06 20:25
_AK_14-May-06 20:25 
GeneralRe: how to update data grid control without full page refresh Pin
Ashuu14-May-06 20:47
Ashuu14-May-06 20:47 
GeneralRe: how to update data grid control without full page refresh Pin
_AK_14-May-06 21:48
_AK_14-May-06 21:48 
GeneralRe: how to update data grid control without full page refresh Pin
Ashuu14-May-06 23:08
Ashuu14-May-06 23:08 
QuestionProblem with DataListItem Pin
kbalias14-May-06 19:25
kbalias14-May-06 19:25 
AnswerRe: Problem with DataListItem Pin
_AK_14-May-06 19:39
_AK_14-May-06 19:39 
GeneralRe: Problem with DataListItem Pin
kbalias14-May-06 23:23
kbalias14-May-06 23:23 
AnswerRe: Problem with DataListItem Pin
TheEagle14-May-06 20:09
TheEagle14-May-06 20:09 
In the HTML code of the page you can determine the index in the CommandArgument attribute:

<itemtemplate>
<asp:linkbutton commandname="select" commandargument="<%#Container.ItemIndex%>" text="<%# DataBinder.Eval(Container, "DataItem.CategoryName")%>" runat="server">



in the code-behind page:

private void DataList_Categories_ItemCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e)
{
if (e.CommandName == "select")
{ int index =Convert.ToInt32(e.CommandArgument);
}
}


Then you can send the index value to the other DataList(reload the same page or go to another page that contains the DataList) through a query string :
Response.Redirect("page.aspx?index="+selectedindex);

Then you can get the query string in the page that you were redirected to:

int categoryIndex=Convert.ToInt32(Request.QueryString["index"]);

But i think you should send a CategoryID field value instead of the index that points to the DataGrid item which could be changed.

I am too late but i will never give up
GeneralRe: Problem with DataListItem Pin
kbalias14-May-06 23:17
kbalias14-May-06 23:17 
AnswerRe: Problem with DataListItem Pin
TheEagle17-May-06 7:44
TheEagle17-May-06 7:44 
QuestionOnclick Dropped on Render Pin
wylbur14-May-06 19:00
wylbur14-May-06 19:00 
Questionfinding all checked checkboxes (that are in a repeater) and then submitting their respective DataBinder Properties back to the server Pin
eggie514-May-06 18:42
eggie514-May-06 18:42 
AnswerRe: finding all checked checkboxes (that are in a repeater) and then submitting their respective DataBinder Properties back to the server Pin
minhpc_bk14-May-06 19:58
minhpc_bk14-May-06 19:58 
GeneralRe: finding all checked checkboxes (that are in a repeater) and then submitting their respective DataBinder Properties back to the server Pin
eggie514-May-06 20:01
eggie514-May-06 20:01 
GeneralRe: finding all checked checkboxes (that are in a repeater) and then submitting their respective DataBinder Properties back to the server Pin
eggie514-May-06 20:07
eggie514-May-06 20:07 
GeneralRe: finding all checked checkboxes (that are in a repeater) and then submitting their respective DataBinder Properties back to the server Pin
minhpc_bk14-May-06 20:14
minhpc_bk14-May-06 20:14 
QuestionSaving files on client machine in ASP.NET with C# Pin
Suma B R14-May-06 17:45
Suma B R14-May-06 17:45 
AnswerRe: Saving files on client machine in ASP.NET with C# Pin
TheEagle14-May-06 20:52
TheEagle14-May-06 20:52 
GeneralRe: Saving files on client machine in ASP.NET with C# Pin
Suma B R15-May-06 17:19
Suma B R15-May-06 17:19 
GeneralRe: Saving files on client machine in ASP.NET with C# Pin
TheEagle17-May-06 7:58
TheEagle17-May-06 7:58 
QuestionInteraction between two webpages Pin
cheeken2u14-May-06 17:42
cheeken2u14-May-06 17:42 
Questionstrange c++ compiler error Pin
IlanTal14-May-06 0:31
IlanTal14-May-06 0:31 
AnswerRe: strange c++ compiler error Pin
IlanTal14-May-06 1:00
IlanTal14-May-06 1:00 
QuestionA Hot Problem Pin
WDI13-May-06 20:50
WDI13-May-06 20:50 
GeneralRe: A Hot Problem Pin
MoustafaS14-May-06 1:40
MoustafaS14-May-06 1:40 

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.