You need to Register for free and Login to post a message in the forum.

Forum

Subject: how to move Viewstation code down of sourc code
Prev Next
You are not authorized to post a reply.

Author Messages
morad
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:6

19 Dec 2009 6:26 AM  
hi lee,Joseph just I wondering about how we can move the viewstation code down of source code I see some of dnn web sites do that for seo Search engine optimization I try to figure out but I didn’t find any usefully article so please help us to know how we can change it to appear the down of source code ?as well how we can compressed to be small size in the source code I will appreciate that’s so much ?
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5317


19 Dec 2009 9:45 PM  
Take a look at Pure CSS SEO Layouts for DotNetNuke skins.

For more information regarding DotNetNuke and SEO, check out seablick.com.

Joe Craig
DNN Creative Support
Subscribe to the website
Lee Sykes
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5282


20 Dec 2009 2:07 AM  
Hello,

The pure CSS SEO layout will help for SEO but not for viewstate.

To move the viewstate use Snapsis PageBlaster - this will also provde other performance benefits.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5317


20 Dec 2009 9:47 AM  
I did some Googling about this topic ...

You will find some interesting discussions involving folks like Joe Brinkman and Mitchel Sellers on this topic.

I'm also reminded that there is a new "relocation widget" in DotNetNuke 5.  It will let you move items around in the page.  You can read Will Strohl's take about it here.

Joe Craig
DNN Creative Support
Subscribe to the website
ashishshukla
Nuke Newbie
Nuke Newbie
Posts:2

17 Feb 2010 11:49 PM  
Please ignore this.
ashishshukla
Nuke Newbie
Nuke Newbie
Posts:2

17 Feb 2010 11:55 PM  
Hello Sir,

We have a DNN website with community version. We are getting a very big View State in DNN page.

So to remove viewstate at the bottom of page we override render method in Default.aspx.vb in my DNN website as following :

Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Dim stringWriter As New System.IO.StringWriter()
Dim htmlWriter As New HtmlTextWriter(stringWriter)
MyBase.Render(htmlWriter)
Dim html As String = stringWriter.ToString()
Dim StartPoint As Integer = html.IndexOf(" If StartPoint >= 0 Then
Dim EndPoint As Integer = html.IndexOf("/>", StartPoint) + 2
Dim viewstateInput As String = html.Substring(StartPoint, EndPoint - StartPoint)
html = html.Remove(StartPoint, EndPoint - StartPoint)
Dim FormEndStart As Integer = html.IndexOf("</form>") - 1
If FormEndStart >= 0 Then
html = html.Insert(FormEndStart, viewstateInput)
End If
End If
writer.Write(html)
''MyBase.Render(writer)
End Sub

With this change I am getting the view state at the bottom of the page. Because of this change in Admin/host mode "Control Panel" of DNN is not working.

And I are not able to perform Control Panel options like add page, remove page, add module to a page, etc..

Can you please suggest something on this?

Thanks in Advance.
Ashish Shukla
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > how to move Viewstation code down of sourc code



ActiveForums 3.7

Latest Forum Posts

RE: PowerDNN Review by Declic Video FX
Hello, +1, I am also very happy !! I *was* hosted with WebHost4Life since many years with MS V...
RE: WebHost4Life by Declic Video FX
Same for me Richard.... I am (was?) hosted with WebHost4Life since many years with MS VPS account...
RE: Home Page Login Question by BCRose
Thanks for the quick reply. Sorry for being a dummy but where do I edit a skin at? Or the style sh...
RE: Home Page Login Question by jncraig
The LOGIN and REGISTER links are Skin Objects that are included in your skin file. The easiest way ...
Home Page Login Question by BCRose
I would like to remove the 'LOGIN' text from the top right of my pages.   How can I do this?   I tri...
RE: Strange behaviour when pressing login by jncraig
Yes, that is the one.
RE: Strange behaviour when pressing login by pontus66
Thanks for the tip. I will let my programmer check it out. This is the module you're referring t...
RE: extending user accounts for membership by jncraig
Try these:User Accounts new features User Accounts and User Settings Enforcing Terms and Conditions ...
RE: DataSprings Dynamic Forms Demo #20 Question by jncraig
There are some nice examples on the Data Springs site.  The more complicated demos do require some s...
RE: Dynamic Forms Email From User/Pass by jncraig
If the SMTP server is configured so that it will not send email from arbitrary email addresses, I wo...
RE: Strange behaviour when pressing login by jncraig
Glad that you got it solved.There is a free module available from Iowa Computer Gurus that automates...
extending user accounts for membership by cbwardsr
could someone pt me in the direction of some literature regarding adding fields to user accounts. ...
RE: Strange behaviour when pressing login by pontus66
Problem solved!Though I am not sure how. I haven't talked to my programmer yet, but he sent a mail a...
Dynamic Forms Email From User/Pass by Trusted
Hello everyone, We have a client with restrictive mail policies so a username and password is requi...
Using Default Template for Pages by toddre
I have a default template that I would like all Admins to use when creating new pages. I would also ...
RE: DataSprings Dynamic Forms Demo #20 Question by aggiedan97
Thanks for the feedback. I will let you know what I find and I have posted on the DS forum. So far ...
RE: ITextSharp by leesykes
Glad you got it sorted, what was the solution for anyone else searching for this problem?
RE: DataSprings Dynamic Forms Demo #20 Question by leesykes
Hello,This is not something I have explored yet, but as it happens I am going to be building a form ...
DataSprings Dynamic Forms Demo #20 Question by aggiedan97
I am attempting to build an order form that subtotals a section that is based on the 'TotalByQuan&nb...
RE: Shared Same content in Sub portals/ Childportals by leesykes
Hello,Your other option is to use RSS feeds for sharing content. Setup a module on your main site su...
DotNetNuke Modules
RSS Feeds