How to use the tab controls
-
1. Click any tab, for eg. Click general information tab. 2. Click edit button. 3. General information edit page is opened. 4. click any other tab(for eg. Official tab). 5. Again click general information tab, it displayed general information edit page. It should display the view page of the general information. 6. Once clicked the any other tab, current page should go to view status. how to change edit mode to view mode while tab change event. Please tell me the answer
-
1. Click any tab, for eg. Click general information tab. 2. Click edit button. 3. General information edit page is opened. 4. click any other tab(for eg. Official tab). 5. Again click general information tab, it displayed general information edit page. It should display the view page of the general information. 6. Once clicked the any other tab, current page should go to view status. how to change edit mode to view mode while tab change event. Please tell me the answer
I'm at a loss here. You're talking about your specific site ? Sounds like you need to close your edit mode when the tab is changed ?
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
1. Click any tab, for eg. Click general information tab. 2. Click edit button. 3. General information edit page is opened. 4. click any other tab(for eg. Official tab). 5. Again click general information tab, it displayed general information edit page. It should display the view page of the general information. 6. Once clicked the any other tab, current page should go to view status. how to change edit mode to view mode while tab change event. Please tell me the answer
-
1. Click any tab, for eg. Click general information tab. 2. Click edit button. 3. General information edit page is opened. 4. click any other tab(for eg. Official tab). 5. Again click general information tab, it displayed general information edit page. It should display the view page of the general information. 6. Once clicked the any other tab, current page should go to view status. how to change edit mode to view mode while tab change event. Please tell me the answer
cspriya wrote:
1. Click any tab, for eg. Click general information tab. 2. Click edit button. 3. General information edit page is opened. 4. click any other tab(for eg. Official tab). 5. Again click general information tab, it displayed general information edit page. It should display the view page of the general information. 6. Once clicked the any other tab, current page should go to view status.
Looks like
Test Case
;Pcheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
-
1. Click any tab, for eg. Click general information tab. 2. Click edit button. 3. General information edit page is opened. 4. click any other tab(for eg. Official tab). 5. Again click general information tab, it displayed general information edit page. It should display the view page of the general information. 6. Once clicked the any other tab, current page should go to view status. how to change edit mode to view mode while tab change event. Please tell me the answer
Set a property or View State, public string Mode { get { object o = ViewState["Mode"]; if (o == null) return String.Empty; else return (string)o; } set { ViewState["Mode"] = value; } } when clicking the Edit tab give the Mode as Mode = "E" when clicking the View tab give the Mode as Mode = "V" Now write the code based on the mode like, if(Mode == "E") { //Your code goes here.... } if(Mode == "V") { //Your code goes here.... }