asp.net

How to implement locking across a server farm?

Are there well-known best practices for synchronizing tasks across a server farm? For example if I have a forum based website running on a server farm, and there are two moderators trying to do some action which requires writing to multiple tables in the database, and the requests of those moderators are being handled by different server...

What is the best way to handle all SPItem's on SharePoint web Application level?

What is the best way to handle all the newly added documents and items to the SharePoint lists and Document Libraries on Share Point Web Application Level. My case is that I want to do some insertions to database when any new document or item added. note: 1- The Site Collections , Web or Sub Sites and Lists are not predefined. 2- I...

Retrieve Last Updated Record

Hi How can i retrieve last updated EmpID form sql database. ...

How and where are variables that are used throughout the ASP.net Project created/stored?

I want to be able to store variables that are accessible to all of the other files in my ASP.net project but can be modified programatically. What I am looking for is something akin to being able to pull information from the web.config file for say the database connection strings (ex System.Configuration.ConfigurationManager.ConnectionS...

How open byte[] into adobe format ?

I has image into byte[]. I need to open it into adobe file in asp.net. I using following code : byte[] bytes = contractimage.Value.Bytes; if (bytes == null) { Response.Write("Not found."); Response.End(); } else { ...

How do I update a shared file on IIS and ASP.NET?

We're replacing an "old" web application (the original CodeCentral was written over 10 years ago, now running at http://cc.embarcadero.com with over 12.7 million served) that uses a file based cache for serving downloads. The web application manages this file cache. The only complicated bit of using file-based downloads is updating a f...

ASP MVC Authorize all actions except a few

I have a controller and I would like to require Authorization for all actions by default except a couple. So in the example below all actions should require authentication except the Index. I don't want to decorate every action with the Authorize, I just want to override the default authorization in certain circumstances probably with a ...

Hosting a Silverlight compatible Web Service in a Windows Service

Is it possible to create a Windows Service (background apps accessible in services.msc) application and host an ASP.NET WebService or a Silverlight compatible WebService within it? I want to create a WebService that performs COM interop calls to something and decided that a Windows Service that interfaces with COM directly as well as ho...

Ajax and checking actions in Ispostback

Is there any relationship between Ajax and checking actions in Ispostback,,though both are doing server checking without loading page ...

opening pdf documents in asp.net

hi i need a free control for my asp.net pages which would display pdf documents,so that the client can view pdf files without the need of installing any pdf. i tried searching in google but all i get is for windows application. thanks in advance ...

How remove or disable hyperlink events from pdf file.

I has disaply a pdf file from byte[] in asp.net. Problem is that it contains hyperlink, i want to disable or remove these hyperlink events. ...

How to update page data after event handling?

On Page_Init I create a table of dynamically created controls based on a couple of database tables. One of the controls is an ImageButton for moving an list item up the list. What this event handler does is to update the SortOrder column in the database for the affected items. Now the problem is that since the controls are created in th...

Should the WebInfo file be excluded from SVN

I have recently had a few issues when checking out a colleagues ASP.NET project, that causes the Project to get into a conflicted state because of the WEBINFO file being checked into SVN. Does this file need to be in the repository or should we exclude it? ...

Adding GridDropdownColumn to Radgrid detail table

I am binding a detail table in DetailTableDataBind event of a Radgrid. The event handler contains code to bind it to a linqdatasource. This adds a bunch of GridBoundColumns to the detail table. However i want some of these to be GridDropdownColumns. How do i go about that ...

Multi language: asp:label aganist html:label with asp:Literal

I'm adding multi language support to a prototype web site. The site was developed using html lables which I could multilanguage using asp:literal or I could change them all to asp:labels as shown below. <asp:label ID="lblAddress1" runat="server" Text='<%$ Resources:lblAddress1 %>' /></br> <label><asp:Literal ID="Literal1" runat="serve...

ASP.NET Webpart Static Connections.

I have two webparts in two different webpart zones. They provide a Master/Details scenario using gridviews. They are defined using static connections. Initially this works great. As soon as I close one of the webparts I get the message "You are about to close the webpart. It is currently providing data to other webparts, and these conne...

ASP.NET TRANSACTIONS

I have some piece of code in my Website which adds the details into tables. Now I want that if some error occurs the previously entered data should be removed. How can I implement it with the help of transactions?? ...

ASP.Net Data Driven Website Efficiency

Hi, I'm creating an ASP.Net website that displays large amounts of data. The data is served to me through a data access layer. From the data I'm getting I'm building up large data tables and then displaying these using either gridview's or dynamically created web controls. The problem I'm finding is that the website is slow when a lot...

Silverlight master page

hello I am new to Silverlight and have decided to give it a go. I have no idea how to create a master page (page.xaml) using Silverlight... Any help will be appreciated, Thanks ...

ASP.NET: Getting all the page's control as IEnumerable

Hi, I'm trying to use the page control's collection with LINQ. Whereas this works: dim l = Me.Controls.OfType(Of TextBox).AsQueryable() the following return an ArgumentExceptionError: dim l = Me.Controls.AsQueryable() I need all the controls. Any help? Thanks ...