Click here to Skip to main content
15,917,062 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Having problem in my menu bar when using Lightbox jquery [modified] Pin
michaelschmitt18-May-10 0:25
michaelschmitt18-May-10 0:25 
QuestionWebservice with Data as parameter Pin
Priya Prk17-May-10 21:17
Priya Prk17-May-10 21:17 
AnswerRe: Webservice with Data as parameter [modified] Pin
Brij17-May-10 21:57
mentorBrij17-May-10 21:57 
QuestionException in C# Pin
rapsrik17-May-10 20:20
rapsrik17-May-10 20:20 
AnswerRe: Exception in C# Pin
Dinesh Mani17-May-10 20:24
Dinesh Mani17-May-10 20:24 
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 
i'l get u the code snippet..

public void SaveNewRecords()
        {
            try
            {
                if (!Page.IsValid)
                {
                    return;
                }
                dgTravelPlan.ShowFooter = false;
               
                DataTable ExistingAssociatetbl = new DataTable();
                if (Session[AdhocConstants.sessionRequestData] != null)
                {
                    ExistingAssociatetbl = (DataTable)Session[AdhocConstants.sessionRequestData];

                    ExistingAssociatetbl.Columns[0].AutoIncrement = true;
                    ExistingAssociatetbl.Columns[0].AutoIncrementSeed = 1;
                    int IdentityValue;
                    if (ExistingAssociatetbl.Rows.Count > 0)
                    {
                        IdentityValue = Convert.ToInt16(ExistingAssociatetbl.Rows[ExistingAssociatetbl.Rows.Count - 1][0].ToString());
                        IdentityValue += 1;
                    }
                    else
                        IdentityValue = 1;

                    AdhocUtility objutility = new AdhocUtility();

                    GetTravelPlanFooter();

                    DataRow tblExistingRow = objutility.CreateAssociateRow(ExistingAssociatetbl, FromCity, PickupLocationType, PickupLocation, DropLocationType, DropLocation, PickupDate, PickupTime, ReturnPickupTime, NOD, Disposal, PickupTypeValue, DropTypeValue, FromCityValue, DisposalID, DestinationCityValue, InterCity);
                    tblExistingRow["Sno"] = IdentityValue;
                    ExistingAssociatetbl.Rows.Add(tblExistingRow);


                    if ((CheckDuplicates(ExistingAssociatetbl) == false) & (CheckDateTime(ExistingAssociatetbl) == false))
                    {
                        if (IdentityValue == 1)
                            ExistingAssociatetbl.Rows.Find(Sno = 1).Delete();
                        ExistingAssociatetbl.AcceptChanges();
                        Session[AdhocConstants.sessionRequestData] = ExistingAssociatetbl;
                        dgTravelPlan.DataSource = Session[AdhocConstants.sessionRequestData];
                        dgTravelPlan.DataBind();
                        if (strStatus == AdhocConstants.TypeModify)
                            dgTravelPlan.Rows[0].Visible = true;
                        else
                            dgTravelPlan.Rows[0].Visible = false;

                        btnSubmit.Visible = true;
                        btnReset.Visible = true;
                    }
                    else
                    {
                        ExistingAssociatetbl.RejectChanges();
                        dgTravelPlan.ShowFooter = true;
                    }

                }


            }

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 
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 

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.