Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Urgent Help for release...
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guest, post: 479033"] Thanks for the Tips Carl... What I don't get is why some users can access the page while others can't??? Everything returns ok when I run it on the development lan... ???? Wierd It's not the Request.ServerVariables("HTTP_REFERER") , QueryString is provided... I can see it in the url! There is a column called 'content' Any other ideas??? Do you think it is an IIS 6 problem??? Strange... More Code... -------------- 'Get Text for Editor If Not Page.IsPostBack Then rowID = CType(Request.QueryString("ID"), Integer) FreeTextBox1.Text = GetDocument() End If 'Loads user controls Dim c1 As Control = LoadControl("../userControls/footer.ascx") phFooter.Controls.Add(c1) Dim c2 As Control = LoadControl("../userControls/headerMenu.ascx") phHeaderMenu.Controls.Add(c2) Dim c3 As Control = LoadControl("../userControls/Header.ascx") phHeader.Controls.Add(c3) Dim c4 As Control = LoadControl("../userControls/QuickLinks.ascx") phQuickLinks.Controls.Add(c4) End Sub 'Page_Load Public Sub Button_Click(ByVal sender As Object, ByVal e As System.EventArgs) rowID = CType(Request.QueryString("ID"), Integer) UpdateDocument(FreeTextBox1.Text) End Sub 'Button_Click 'Why not just pass a variable to the page, in the Querystring to 'differentiate the page you came from? Instead of using Cache or Boolean Private Function GetDocument() As String Dim ds As DataSet If Request.ServerVariables("HTTP_REFERER") = "[URL]http://10.160.224.12/cms/viewpage.aspx[/URL]" Then ds = GetDataSet(("SELECT content FROM tblPageContent WHERE pageID=" + rowID.ToString())) Cache("iNews") = "False" ElseIf Request.ServerVariables("HTTP_REFERER") = "[URL]http://10.160.224.12/cms/news/pgeEditor.aspx[/URL]" Then ds = GetDataSet(("SELECT content FROM tblNewsArchive WHERE newsID=" + rowID.ToString())) Cache.Remove("iNews") End If Dim table As DataTable = ds.Tables(0) Dim row As DataRow = table.Rows(0) Dim doc As String = row("content").ToString() ds.Dispose() Return doc End Function 'GetDocument [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Urgent Help for release...
Top