Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:762146
More Search Options
RSS Available
Matching Posts
Re: Page not cached in certain circumstances
Hi, To answer your questions : 1) Yes, GetVaryByCustom is always called. 2) Yes, in both of the cases the key is always the same for each call (they are different from one other) 3) In one case, I get a cached version if it exists and in the other I get a fresh version everytime. Thanks,
Posted to
Web Forms
(Forum)
by
phfle1
on 7/24/2009
Re: Page not cached in certain circumstances
Sorry, here is the code : <Microsoft.SharePoint.Security.SharePointPermission(System.Security.Permissions.SecurityAction.LinkDemand, ObjectModel:=True)> _ Public Overloads Function GetVaryByCustomString(ByVal app As HttpApplication, ByVal context As HttpContext, ByVal custom As String) As String Implements IVaryByCustomHandler.GetVaryByCustomString Dim cacheKey As New StringBuilder ' Group If custom.Contains(GROUP_CODE) AndAlso _ Not String.IsNullOrEmpty(ServiceContexteSharepoint.Groupe
Posted to
Web Forms
(Forum)
by
phfle1
on 7/23/2009
Page not cached in certain circumstances
Hi, I have an asp.net application running with SharePoint 2007. My cache is working fine but I need to add another copy of each page; I'll call them CopyA and CopyB. I added code in the GetVaryByCustom to have a different key in my new case, but it doesn't work. The caching of CopyA works just fine. The caching of Copy B doesn't work. I always get a "fresh" page. Here is my function with the added code in bold. Public Overloads Function GetVaryByCustomString(ByVal app As HttpApplication
Posted to
Web Forms
(Forum)
by
phfle1
on 7/22/2009
Filed under: cachee getvarybycustom sharepoint
Re: Finding out if a url exists on the web (i.e. not a 404)
Here is how I did it. May not be perfect but seems to work fine. Dim pageExiste As Boolean = True Dim requete As WebRequest = HttpWebRequest.Create(vUrl) requete.Method = "HEAD" Dim reponse As WebResponse = Nothing Try reponse = requete.GetResponse Catch ex As System.Exception If String.Compare(ex.Message, MESSAGE_ERREUR_404) = 0 Then pageExiste = False End If End Try Return pageExiste Bye,
Posted to
Getting Started
(Forum)
by
phfle1
on 6/29/2009
Filed under: 404 page not found check
Composite control links do not postback
Hi, I am creating a simple control that inherits from compositeControl. The control is a list of linkbuttons. Usually, when the linkbutton render, it includes something like javascript:_doPostBack(...) which tells the client to postback and not to follow the link directly. My problem is that it is not my case. Here is part of my overrided render method (mListeLiens is a list of linkbuttons) vWriter.RenderBeginTag(HtmlTextWriterTag.Li) mListeLiens(index).RenderControl(vWriter) vWriter.RenderEndTag
Posted to
Custom Server Controls
(Forum)
by
phfle1
on 6/29/2009
Filed under: posbacktback form linkbutton
Re: Composite control links do not postback
Hi, No there isn't but it seems there is no property named click on the linkbutton. linkbutton.click does not existe, I only have onClientClick Any other idea? Thanks
Posted to
Custom Server Controls
(Forum)
by
phfle1
on 6/29/2009
Re: Composite control links do not postback
Sorry, my fault. That was the answer. Thanks, Phil
Posted to
Custom Server Controls
(Forum)
by
phfle1
on 6/29/2009
Re: Finding out if a url exists on the web (i.e. not a 404)
Thanks!
Posted to
Getting Started
(Forum)
by
phfle1
on 5/21/2009
Finding out if a url exists on the web (i.e. not a 404)
Hi, I'm looking for a way to determine without having to download the whole page that a page existe or doesn't. Something like dim code as string = Ping(Url).code if code = 200 'the page exists elseif code = 404 ' the page doesn't exist endif Anyone has done something like that before? Thanks
Posted to
Getting Started
(Forum)
by
phfle1
on 5/21/2009
Re: window.print = browser closes
Can we generate an anchor tag in asp? Furthermore, I can't reproduce the problem either. But I added "return false;" to the javascript. I'll check with the users if the bug is still there after that.
Posted to
Client Side Web Development
(Forum)
by
phfle1
on 11/17/2008
Page 1 of 8 (78 items) 1
2
3
4
5
Next >
...
Last ยป
TechNet Edge:
Visio: Drawing on Experience with Saveen Reddy
TechNet Edge:
Visio: Drawing on Experience with Saveen Reddy
TechNet Edge:
Forefront Secure Endpoint Demo and Interview
ASP.NET:
Resizing images from the server using WPF/WIC instead of GDI+
Silverlight:
Deploying your Silverlight and WCF RIA Services application
Channel 9:
Juan Chen and Nikhil Swamy: FINE, a Compiler for End-to-End Security Verification
Channel 10:
Get the Outlook Hotmail Connector Beta
Channel 10:
MSN to Launch New Lifestyle Site from Wonderwall Creator
Channel 10:
Behind the Windows 7 Startup Animation
Channel 9:
Reactive Extensions API in depth: CombineLatest
Channel 9:
C9 Lectures: Dr. Graham Hutton - Functional Programming Fundamentals Chapter 11 of 13
WindowsClient:
New WPF Showcase: Scrum Sprint Monitor
WindowsClient:
WPF/XAML helping VS2010 Extensibility
WindowsClient:
HTTP 403.9 with ADO.NET Data Services
WindowsClient:
xml syntax highlighting in Silverlight
Channel 9:
Channel 9 Emerges in China
WindowsClient:
Overlaying Icons on the Windows 7 Taskbar with WPF 4
Channel 9:
The Outlook calendar starts in 1601 - But Why?
ASP.NET:
Bytes by MSDN: Brad Abrams Interview with Billy Hollis: Silverlight 4, RIA Services and VS2010
Mix Online:
Pictures or it Didn't Happen
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online