Click here to Skip to main content
15,897,273 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Exception in C# Pin
nagendrathecoder17-May-10 20:25
nagendrathecoder17-May-10 20:25 
GeneralRe: Exception in C# Pin
rapsrik17-May-10 20:46
rapsrik17-May-10 20:46 
GeneralRe: Exception in C# Pin
rapsrik17-May-10 20:50
rapsrik17-May-10 20:50 
AnswerRe: Exception in C# Pin
nagendrathecoder17-May-10 22:47
nagendrathecoder17-May-10 22:47 
GeneralRe: Exception in C# Pin
rapsrik17-May-10 22:53
rapsrik17-May-10 22:53 
GeneralRe: Exception in C# Pin
J a a n s18-May-10 0:35
professionalJ a a n s18-May-10 0:35 
AnswerRe: Exception in C# Pin
Arindam Tewary17-May-10 23:48
professionalArindam Tewary17-May-10 23:48 
GeneralRe: Exception in C# Pin
rapsrik18-May-10 0:24
rapsrik18-May-10 0:24 
Hey hi..

this block actually


if (ExistingAssociatetbl.Rows.Count > 0)
{
IdentityValue = Convert.ToInt16(ExistingAssociatetbl.Rows[ExistingAssociatetbl.Rows.Count - 1][0].ToString());
IdentityValue += 1;
}

and also.. the stack exception shows error in this method too..
and the line is marked with two **

private bool CheckDuplicates(System.Data.DataTable dtCheckDuplicates)
{
DataTable dtDuplicateRecords = dtCheckDuplicates.Clone();

bool blnCheckDuplicate;

for (int iRow = 0; iRow <= dtCheckDuplicates.Rows.Count - 1; iRow++)
{
blnCheckDuplicate = false;
** string strCheckRow = string.Empty;
object[] arr = dtCheckDuplicates.Rows[iRow].ItemArray;
for (int iColumn = 0; iColumn <= arr.Length - 1; iColumn++)
{
if (dtCheckDuplicates.Columns[iColumn].ColumnName.Trim().ToUpper() != "SNO")
{
if (iColumn != arr.Length - 1)
strCheckRow += dtCheckDuplicates.Columns[iColumn].ColumnName + " = '" + arr[iColumn].ToString() + "' and ";
else
strCheckRow += dtCheckDuplicates.Columns[iColumn].ColumnName + " = '" + arr[iColumn].ToString() + "'";
}
}

if (dtDuplicateRecords.Select(strCheckRow).Length > 0)
{
blnCheckDuplicate = true;

}

if (!blnCheckDuplicate)
{
DataRow[] drs = dtCheckDuplicates.Select(strCheckRow);
if (drs.Length > 1)
{
lblError.Text = "";
lblError.Text = AdhocConstants.DuplicateTravelPlan;
return true;
}
}
}
return false;
}

thnks for the help..
Questionabout site search Pin
jason_mf17-May-10 20:14
jason_mf17-May-10 20:14 
QuestionUrl Rewritting using .NET 3.5 Pin
www.Developerof.NET17-May-10 19:49
www.Developerof.NET17-May-10 19:49 
AnswerRe: Url Rewritting using .NET 3.5 Pin
Suresh Pirsquare18-May-10 2:13
Suresh Pirsquare18-May-10 2:13 
Questionproblem in executing javascript from an update panel. Pin
souravghosh1817-May-10 19:40
souravghosh1817-May-10 19:40 
AnswerRe: problem in executing javascript from an update panel. Pin
Venkatesh Mookkan17-May-10 19:51
Venkatesh Mookkan17-May-10 19:51 
AnswerRe: problem in executing javascript from an update panel. Pin
Pranay Rana17-May-10 19:52
professionalPranay Rana17-May-10 19:52 
AnswerRe: problem in executing javascript from an update panel. Pin
Brij17-May-10 19:53
mentorBrij17-May-10 19:53 
Questionhow to compare two word files Pin
koolprasad200317-May-10 19:07
professionalkoolprasad200317-May-10 19:07 
AnswerRe: how to compare two word files Pin
Sandeep Mewara17-May-10 19:28
mveSandeep Mewara17-May-10 19:28 
GeneralRe: how to compare two word files Pin
koolprasad200317-May-10 20:02
professionalkoolprasad200317-May-10 20:02 
GeneralRe: how to compare two word files Pin
Sandeep Mewara17-May-10 20:31
mveSandeep Mewara17-May-10 20:31 
QuestionDataList HeaderTemplate Problem Pin
jitendrafaye17-May-10 18:02
jitendrafaye17-May-10 18:02 
QuestionHttp Post Pin
Dot-Net-Dev17-May-10 17:51
Dot-Net-Dev17-May-10 17:51 
AnswerRe: Http Post Pin
Not Active17-May-10 18:06
mentorNot Active17-May-10 18:06 
Questionusercontrol event Pin
Dhyanga17-May-10 7:06
Dhyanga17-May-10 7:06 
AnswerRe: usercontrol event Pin
Not Active17-May-10 7:12
mentorNot Active17-May-10 7:12 
GeneralRe: usercontrol event Pin
Dhyanga17-May-10 7:16
Dhyanga17-May-10 7:16 

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.