View Complete Post
I have a web site that is highly dependant on a SQL Server 2008 database. I am using linq to sql to connect to the database and require the website to reflect database changes immediately. Currently the changes are only reflected once a postback occurs and the database is requeried.
Is there a way to get the asp.net page(s) to be alerted of an database change and then to reflect it immediately, or within seconds, on the display? I am aware that one can use the SQLDependency class and ADO.NET to do this, but am not aware of any linq to sql possibilities.
Any help will be greatly appreciated.
My web application has user control which uses third party controls called Devexpress controls. The user control is a menu and is part of the Master page. It is placed there because this needs to be available in all the pages. My user controls raises a even on item clicked. Now, My question is that Is there any way to know that the event has occurred in page_load of the current page in which I am in?
I've got a single user who's not able to manage his links in MOSS 2007. The links I speak of are gotting to via
users have no issue.
I read somewhere that this might be caused by the user in question having added an improperly formated link. My issue is how can I check for that condition and correct it? Any thoughst
would be much appreciated.
I have a listview.When I click a "Print" button It should be print only listview items (current page & all pages).
how to do this pls tell me?
many thanks in advance.
I have a custom list and this list support attchements. I need to display the list of attachment for a items in the allitems.aspx page. Currently it display an icon (clip icon) when the items have attchements associated with it. but i need to display the links to the attchements so that users can directly click and go to the attchement with out going to the dispForm.aspx. can any one help me on this? i have searched for this but i could not find any solution.
i have a page with datalist and more label
and i have an input text and a html button in my page.
I am writing a class (outside of the deafult page webform) and it needs access to a mschart. The chart is called "Chart1".
I discovered on other forums that in order for a class to access the webform control, you do the following:
System.Web.UI.Page page = (System.Web.UI.Page)System.Web.HttpContext.Current.Handler;
Chart Chart1 = (Chart)page.FindControl("Chart1");
But can someone tell me what does the first line do and why does it work? What is it trying to do? Why is it setting the context.current.handler to page? and why does it need to be cast to a page?
Secondly, why can't I create the page object by referencing the page class name, which is _Default in this case? (public partial class _Default : System.Web.UI.Page)
I have this issue that CQWP is rendring items that it should not render. I test this with a read-only user, that should NOT see draft pages or pages with different permissions. But the read-only user do see the items, but when I click on the link I get access
denied. This access denied is correct, but why does the page items appear in the CQWP at all?
1) I use OOTB CQWP (inherits from ContentByQueryWebPart in my .webpart file) : "<type name="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart ....." and I have my custom xsl to get the look and feel I need
2) The issue with page items showing when status = drafts only appear when using the PublishingExpirationDate field. When I try creating new pages and give them status draft by using "check in to share draft" (logged on as an contributer/approver
user), this item wil NOT appear in the CQWP for the read-only user. When I change a pages' status from approved to draft, this item will still be shown in the CQWP, but this will point correctly to the published version. But after the pages'
expired date (PublishingExpirationDate) is expired, the page gets status "draft" (handeled by a timer job I guess), and this page item will still be rendered in the CQWP, but sending the read-only user to an access-
I am building in error-logging into my site, and want to be able to get hold of the current page name that the error occurred in, as well as the specific subroutine or function, to then pass to a VB.NET function. Is there anyway to get hold of this information without hard-coding the names manually?
Dim strCurrentPageName = ???
Dim strCurrentRoutine = ???