Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
Before Web Hosting
-----------------------------
We have developed 1 project Namely TNPDA.
In that We have gridview that grid has
Three buttons namely display/hide and cancel.
When I click display hide will show.sql table flag is update into d.
When I click hide means flag update into h then display will show snow.
When press cancel flag will update c.
In row command event

BLLSuggestion_Mast ObjApp = new BLLSuggestion_Mast();
            if (e.CommandName == "Display")
                ObjApp.UpdateTopic(Convert.ToInt16(e.CommandArgument), Session["FLG"].ToString());
            else if (e.CommandName == "Hide")
                ObjApp.UpdateTopic(Convert.ToInt16(e.CommandArgument), Session["FLG"].ToString());
            else if (e.CommandName == "Deny")
                ObjApp.UpdateTopic(Convert.ToInt16(e.CommandArgument), Session["FLG"].ToString());
            BindTopics();



In row data bound event
------------------------
if (e.Row.RowType == DataControlRowType.DataRow)
          {

              Button objDisplay = (Button)e.Row.FindControl("btnApprove");
              Button objHide = (Button)e.Row.FindControl("btnHide");
              Button objCancel = (Button)e.Row.FindControl("btnCancel");
              if (dgTopics.DataKeys[e.Row.RowIndex].Values[1].ToString() == "A")
              {
                  objDisplay.Visible = false;
                  objHide.Visible = true;
                  objCancel.Visible = true;
              }
              else if (dgTopics.DataKeys[e.Row.RowIndex].Values[1].ToString() == "H")
              {
                  objDisplay.Visible = true;
                  objHide.Visible = false;
                  objCancel.Visible = true;
              }
              else if (dgTopics.DataKeys[e.Row.RowIndex].Values[1].ToString() == "C")
              {
                  objDisplay.Visible = true;
                  objHide.Visible = false;
                  objCancel.Visible = false;
              }
          }
      }


After Web Hosting
-----------------------------
All the process done properly before web hosting but after web hosted there.
When I press display button in the grid flag also changed into D but not shows the hide button.
Can any one help me?

Thanks and regards
Prabu T


[Edited]Code is Wrapped in "pre" tags[/Edited]
Posted
Updated 10-Apr-11 19:38pm
v2
Comments
Ankur\m/ 11-Apr-11 2:29am    
Use 'Add Comment' below user's answer to discuss with him. If you add an answer he never gets notified and may never know that you asked him something.

1 solution

Please Check the Total Project in IIS Server then Hosting should be done
 
Share this answer
 
Comments
Ankur\m/ 11-Apr-11 2:28am    
[moved from answer]
OP wrote:
In my IIS It has 7 projects.may i know what is the problem for that?
anilkumar1986 11-Apr-11 6:59am    
In Iss u can have more than 7 projects But u should select which project u wanr to Debug.First Debug the Project in ISS LET SEE WHAT errors will come ok.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900