protected void UpdateSolution()
    {
        int Solutionid = Convert.ToInt16(Request.QueryString[0]);

        ObjSolution            = ObjSolution.Get_By_id(Solutionid);
        ObjSolutionKeyword     = ObjSolutionKeyword.Get_By_id(Solutionid);
        txtTitle.Text          = ObjSolution.Title.ToString();
        Editor.Text            = ObjSolution.Content.ToString();
        drpTopic.SelectedValue = ObjSolution.Topicid.ToString();
        ObjSolutionKeyword     = ObjSolutionKeyword.Get_By_id(Solutionid);
        txtKeywords.Text       = ObjSolutionKeyword.Keywords.ToString();
    }
Exemple #2
0
    protected void updateWorkaround()
    {
        int problemid = Convert.ToInt32(Request.QueryString[1]);
        int flag      = Convert.ToInt32(Request.QueryString[0]);

        colproblems = ObjproblemToSolution.Get_All_Problemid(problemid);
        foreach (ProblemToSolution obj in colproblems)
        {
            if (obj.Solutiontype == "WorkAround")
            {
                ObjSolution = ObjSolution.Get_By_id(obj.Solutionid);
                if (ObjSolution.Solution == "WorkAround")
                {
                    ObjSolutionKeyword     = ObjSolutionKeyword.Get_By_id(obj.Solutionid);
                    txtTitle.Text          = ObjSolution.Title.ToString();
                    txtKeywords.Text       = ObjSolutionKeyword.Keywords.ToString();
                    drpTopic.SelectedValue = Convert.ToString(ObjSolution.Topicid);
                    Editor.Text            = ObjSolution.Content.ToString();
                }
            }
        }
    }
 protected void UpdateSolution()
 {
     int Solutionid = Convert.ToInt16(Request.QueryString[0]);
     ObjSolution = ObjSolution.Get_By_id(Solutionid);
     ObjSolutionKeyword = ObjSolutionKeyword.Get_By_id(Solutionid);
     txtTitle.Text = ObjSolution.Title.ToString();
     Editor.Text=ObjSolution.Content.ToString();
     drpTopic.SelectedValue = ObjSolution.Topicid.ToString();
     ObjSolutionKeyword = ObjSolutionKeyword.Get_By_id(Solutionid);
     txtKeywords.Text = ObjSolutionKeyword.Keywords.ToString();
 }