Click here to Skip to main content
15,886,873 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to get System Language? Pin
whatUrunning.com28-Sep-08 21:42
whatUrunning.com28-Sep-08 21:42 
Questionmail attachment repeating Pin
kvsreedhar28-Sep-08 21:23
kvsreedhar28-Sep-08 21:23 
AnswerRe: mail attachment repeating Pin
whatUrunning.com28-Sep-08 21:34
whatUrunning.com28-Sep-08 21:34 
GeneralRe: mail attachment repeating Pin
kvsreedhar28-Sep-08 21:39
kvsreedhar28-Sep-08 21:39 
GeneralRe: mail attachment repeating Pin
whatUrunning.com28-Sep-08 21:46
whatUrunning.com28-Sep-08 21:46 
GeneralRe: mail attachment repeating Pin
kvsreedhar28-Sep-08 21:58
kvsreedhar28-Sep-08 21:58 
GeneralRe: mail attachment repeating Pin
whatUrunning.com28-Sep-08 22:01
whatUrunning.com28-Sep-08 22:01 
QuestionFailed to compare two elements in the array Pin
soonarai28-Sep-08 21:14
soonarai28-Sep-08 21:14 
Hi,

when i click the sortoption button in my module

This error will shown : "Failed to compare two elements in the array."

This is my codeFrown | :( ascx.cs)
protected void Previous_Routine(object sender, CommandEventArgs e)
{
EgtFlashController objEgtFlashs = new EgtFlashController();
List<egtflashinfo> lstItems = objEgtFlashs.GetEgtFlashs(this.ModuleId);
lstItems.Sort();
int Sorter = 0;
foreach (EgtFlashInfo obj in lstItems)
{
obj.SortId = Sorter;
objEgtFlashs.UpdateEgtFlash(obj);
Sorter++;
}

for (int i = 0; i < lstItems.Count; i++)
{
EgtFlashInfo obj = (EgtFlashInfo)lstItems[i];
if (obj.ItemId == Convert.ToInt32(e.CommandArgument.ToString()))
{
if (i == 0)
{
break;
}
obj.SortId--;
objEgtFlashs.UpdateEgtFlash(obj);

obj = (EgtFlashInfo)lstItems[i - 1];
obj.SortId++;
objEgtFlashs.UpdateEgtFlash(obj);
}
}

//refresh cache
SynchronizeModule();

ExportXml(false);

Response.Redirect(Request.Url.AbsoluteUri, true);
}

This is for design page(.ascx)
<asp:imagebutton imageurl="~/Images/up_arrow.gif" id="BtnPrevious" xmlns:asp="#unknown">
OnCommand="Previous_Routine" CommandName="Previous"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ItemId") %>' runat="server"/>

Please tell where i made mistake in my code.

Regards
soona
Questionhow to attach a word document to asp.net web application using a checkbox control condition wise Pin
sumanth Reddy28-Sep-08 20:19
sumanth Reddy28-Sep-08 20:19 
QuestionHow to create a column contatining textbox control and make it editable in a gridview Pin
sumanth Reddy28-Sep-08 20:04
sumanth Reddy28-Sep-08 20:04 
AnswerRe: How to create a column contatining textbox control and make it editable in a gridview Pin
HemJoshi28-Sep-08 20:46
HemJoshi28-Sep-08 20:46 
QuestionGridview Add to List Field. Pin
Crazy Genius28-Sep-08 19:02
Crazy Genius28-Sep-08 19:02 
QuestionProbleam VB exe run on IIS Pin
Rinki Mukheraji28-Sep-08 18:37
Rinki Mukheraji28-Sep-08 18:37 
AnswerRe: Probleam VB exe run on IIS Pin
HemJoshi28-Sep-08 20:51
HemJoshi28-Sep-08 20:51 
GeneralRe: Probleam VB exe run on IIS Pin
Rinki Mukheraji29-Sep-08 1:46
Rinki Mukheraji29-Sep-08 1:46 
GeneralRe: Probleam VB exe run on IIS Pin
HemJoshi29-Sep-08 2:13
HemJoshi29-Sep-08 2:13 
GeneralRe: Probleam VB exe run on IIS Pin
Rinki Mukheraji29-Sep-08 2:55
Rinki Mukheraji29-Sep-08 2:55 
QuestionGridview problem Pin
kishorg128-Sep-08 18:34
kishorg128-Sep-08 18:34 
AnswerRe: Gridview problem Pin
Steve Echols28-Sep-08 19:32
Steve Echols28-Sep-08 19:32 
GeneralRe: Gridview problem Pin
kishorg128-Sep-08 19:50
kishorg128-Sep-08 19:50 
QuestionHow to print without user interaction Pin
J Liang28-Sep-08 16:30
J Liang28-Sep-08 16:30 
AnswerRe: How to print without user interaction Pin
N a v a n e e t h28-Sep-08 17:27
N a v a n e e t h28-Sep-08 17:27 
GeneralRe: How to print without user interaction Pin
J Liang28-Sep-08 17:50
J Liang28-Sep-08 17:50 
Questionset as homepage Pin
Tarun.Suneja28-Sep-08 9:55
Tarun.Suneja28-Sep-08 9:55 
AnswerRe: set as homepage Pin
John Ad28-Sep-08 20:20
John Ad28-Sep-08 20:20 

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.