Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

viewsource not showing html sometimes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rodchar - 30 Nov 2007 21:19 GMT
hey all,

i have a user control on my web page. the user control dynamically builds
some controls.

when i browse to this page and right-click and do a view source, the html
for the controls don't always show up and i can see the controls on the page
all the time.
can someone please this inconsistency?

any ideas?
thanks,
rodchar
Peter Bromberg [C# MVP] - 30 Nov 2007 22:46 GMT
If the controls have been rendered onto the page, then the markup has to be
there. No markup, no control.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

> hey all,
>
[quoted text clipped - 9 lines]
> thanks,
> rodchar
Scott Roberts - 30 Nov 2007 23:16 GMT
Unless, of course, the controls are rendered via javascript (e.g. using
Ajax). In that case, many (most?) browsers won't show the "correct" HTML.

> If the controls have been rendered onto the page, then the markup has to
> be
[quoted text clipped - 20 lines]
>> thanks,
>> rodchar
Trevor Benedict - 30 Nov 2007 23:37 GMT
and also check if you have SmartNavigation turned on

Regards,

Trevor Benedict
MCSD

> hey all,
>
[quoted text clipped - 9 lines]
> thanks,
> rodchar
Lloyd Sheen - 01 Dec 2007 17:26 GMT
> hey all,
>
[quoted text clipped - 10 lines]
> thanks,
> rodchar

If you are looking at IE I would suggest getting the IE Developer Toolbar.
It is great for viewing / locating controls.

You can also change attributes of the source and see immediately the result
of the change.

LS
rodchar - 04 Dec 2007 14:10 GMT
thanks everyone for the feedback.
rod.

> hey all,
>
[quoted text clipped - 9 lines]
> thanks,
> rodchar
Trevor Benedict - 05 Dec 2007 20:47 GMT
Were you able to figure it out? What was the problem.

Regards,

Trevor Benedict
MCSD

> thanks everyone for the feedback.
> rod.
[quoted text clipped - 13 lines]
>> thanks,
>> rodchar

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.