randomguy Posted September 9, 2013 Report Posted September 9, 2013 rolelabel not visible in one of the pages of application even though visible property is set true label basically is from master page. every other page show label from master page except one page
prayaanam Posted September 9, 2013 Report Posted September 9, 2013 [background=transparent](([/background][color=#2B91AF][background=transparent]Label[/background][/color][background=transparent])[/background][color=#2B91AF][background=transparent]Master[/background][/color][background=transparent].[/background][color=#2B91AF][background=transparent]FindControl[/background][/color][background=transparent]([/background][color=#800000][background=transparent]"mylbl"[/background][/color][background=transparent])).[/background][color=#2B91AF][background=transparent]Visible[/background][/color][background=transparent] [/background][background=transparent]=[/background][background=transparent] [/background][color=#00008B][background=transparent]true[/background][/color][background=transparent];[/background] [background=transparent]Try this in the content page and see...[/background]
cherlapalli_jailer Posted September 9, 2013 Report Posted September 9, 2013 should be trivial these kind issues r little bit tough to get help unless one has access to the code... pl create a dummy file and see if that page has the label or not ... then obviously some thing wrong with the page u r not getting which can be debugged by u only 1
prayaanam Posted September 9, 2013 Report Posted September 9, 2013 [quote name='cherlapalli_jailer' timestamp='1378739991' post='1304224909'] should be trivial these kind issues r little bit tough to get help unless one has access to the code... pl create a dummy file and see if that page has the label or not ... then obviously some thing wrong with the page u r not getting which can be debugged by u only [/quote] Agreed
simba123 Posted September 9, 2013 Report Posted September 9, 2013 Make sure in the whole page that you are not making visible=false.
randomguy Posted September 9, 2013 Author Report Posted September 9, 2013 [quote name='prayaanam' timestamp='1378739901' post='1304224899'] [background=transparent](([/background][color=#2b91af][background=transparent]Label[/background][/color][background=transparent])[/background][color=#2b91af][background=transparent]Master[/background][/color][background=transparent].[/background][color=#2b91af][background=transparent]FindControl[/background][/color][background=transparent]([/background][color=#800000][background=transparent]"mylbl"[/background][/color][background=transparent])).[/background][color=#2b91af][background=transparent]Visible[/background][/color][background=transparent] [/background][background=transparent]=[/background][background=transparent] [/background][color=#00008b][background=transparent]true[/background][/color][background=transparent];[/background] [background=transparent]Try this in the content page and see...[/background] [/quote] Exactly ee line of code content page lo ekkada pettali bhayya..?
prayaanam Posted September 9, 2013 Report Posted September 9, 2013 [quote name='ShockWave' timestamp='1378740996' post='1304224988'] Exactly ee line of code content page lo ekkada pettali bhayya..? [/quote] page load lo pettu... if its not MVC...
ILAQAT_MUFLIYA Posted September 9, 2013 Report Posted September 9, 2013 aa label style visible false undi emoo mayya ... if master styles are overwriting ur present styles.. prayaanam mayya cheppindi chudu ..
randomguy Posted September 9, 2013 Author Report Posted September 9, 2013 [quote name='prayaanam' timestamp='1378741112' post='1304225000'] page load lo pettu... if its not MVC... [/quote] page load lo pedithe exception vasthundi bhayya... Object reference not set to an instance of an object
littlemoon Posted September 9, 2013 Report Posted September 9, 2013 check if contentplaceholder is set an ID .. label emaina content tag lo unte work cheyadu try to move it out of the tag..
prayaanam Posted September 9, 2013 Report Posted September 9, 2013 [quote name='ShockWave' timestamp='1378741532' post='1304225030'] page load lo pedithe exception vasthundi bhayya... Object reference not set to an instance of an object [/quote] It seems It is not finding the control Did you replace the lable name instead"lbl" ? If not, do it... If yes, try this syntax as well... [b][color=#0000cd][font=Consolas, Menlo, Monaco,]label lbl = [/font][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]Master.Page.FindControl("lblName");[/background][/font][/color][/b] [b][color=#0000cd][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]lbl.visible = true;[/background][/font][/color][/b] [background=rgb(238, 238, 238)] [/background] [color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]Its been a while for me. I am working on Telerik reporting for an year now. [/background][/font][/color]
randomguy Posted September 9, 2013 Author Report Posted September 9, 2013 [quote name='littlemoon' timestamp='1378741552' post='1304225033'] check if contentplaceholder is set an ID .. label emaina content tag lo unte work cheyadu try to move it out of the tag.. [/quote] Content tag lo ledu..
Recommended Posts