how to access div tags of user control in master page
Can we access div tags of user control in Master page? I am trying to change the background color for each one of the div tags on some event. ...
Can we access div tags of user control in Master page? I am trying to change the background color for each one of the div tags on some event. ...
Do the same best practis rules regarding subscribing/unsubscribing to events apply in asp.net? I know it might seem like a silly question, but when I think about it, I have never really seen any code where people first subscribe to an event on a page and then unsubscribe later on in the web request. Example 1: On a page, in the Page_Lo...
Applications I am using: Visual Studio 2008 (C#/ASP.NET) Visual Source Safe 8.0 IIS 5.1 I have two Web Apps both named the same but one is used for major releases and the other is for minor (trunk and branch). I am wondering if there is an option in Visual Studio that prevents it from creating an ASP.NET app in IIS using the web app's p...
i redirect the user to the login page when user click log out however i don't think it clear any application or session because all the data persisted when the user log back in. currently the login page have a login control and the code behind on the page only wired up the login Authenticate. Can someone direct me to a good tutorial or...
What is the simplest way to count # of visits by a user in an ASP.NET web app? Our app services anonymous users, registered users and an intermediate user, called a "prospect". Prospects are users that request information but do not create an account. We leave an ID cookie for every type of user, and that's the key into our database f...
When I'm writing spaghetti code in my MVC views, R# keeps automatically dropping my braces to the next line and indenting and such. Is there a way I can turn this off for just my view pages? ...
I followed this article: How to: Implement Two-Way Communication Between DHTML Code and Client Application Code Based on this example, I can establish the communication between DHTML and Client code. Now if I introduce a master page, none of the communications work. Are there different rules when Master Pages are used? I also looked at...
This one has us all baffled at work. We have two services running on .net 3.5 SP1 that hits up sharepoint, and return Lists of model objects that are pretty similar. One of them works fine, the other throws an EngineExecutionException on the return. I know that is sort of vague, but everything executes fine right up until that point. Wh...
Let's say that I'm considering designing a WCF service whose primary purpose is to provide broad services that can be used by three disparate applications: a public-facing Web site, an internal Windows Forms application, and a wireless mobile device. The purpose of the service is twofold: (1) to consolidate code related to business proce...
Hi Folks, Strangest thing happened today with my ASP.NET MVC project. I built the installer project this afternoon, and all of a sudden, there were all these new dependencies! Yuck. Microsoft.SqlServer.BatchParser.dll Microsoft.SqlServer.ConnectionInfo.dll Microsoft.SqlServer.Dmf.dll Microsoft.SqlServer.Management.Sdk.Sfc.dll Microsof...
When starting a new project that required the use of membership providers I found that I could not connect to a remote database that contained the membership database. I ran aspnet_regsql and was able to create the membership database on the remote server but when I go to ASPNET Configuration (cassini development server) it will not con...
I'm programming a file transfer handler with speed limit feature, the rate based on user level. How do I control/calculate transfer rate in HttpHandler?. Some asp.net resource tell me that use Thread.Sleep will block asp.net thread pool. ...
I'm adding a record like this: Dim pathString As String = HttpContext.Current.Request.MapPath("Banking.mdb") Dim odbconBanking As New OleDbConnection _ ("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" + pathString) Dim sql As String sql = "INSERT INTO tblUsers ( FirstName, LastName, Addre...
Is it possible to use jQuery to connect to a .NET webservice? Maybe something I can pass a wsdl url too. ...
Hi.. I want to open a file dialog box in user control. i used "using System.Windows.Forms;" but still i can't access SaveFileDialog class. Can anybody tell me how to do this? Thanx. ...
I have this code: Dim pathString As String = HttpContext.Current.Request.MapPath("Banking.mdb") Dim odbconBanking As New OleDbConnection _ ("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" + pathString) Dim sql As String sql = "UPDATE tblAccounts balance = " & CDbl(balance + value) & " WHE...
Hi all I've just started a new project using Visual Web Developer 2008 Express and all my code behinds are not in any namespace. How can I set the default namespace for the project? In VisualStudioPro it used to be in project properties, the website properties in Visual Web Developer 2008 Express seem very ... express. Thanks, David....
Hi In my database, I have a composite unique key constraint (CustomerId, Name) on a entity. I want to test if the unique constraint is upheld before submitting changes to the database. The user can customize the Name attribute on the entity, so I would like to make a custom validator that validates the name property, but while doing it,...
I'm using the urlrewriter.net as recommended in several questions in here. I'm having difficulties with displaying images and with the stylesheet. I read ScottGu's Blog (again as recommended in here) and in the end he does reffer to this problem and states to use ~/ for server controls etc. ("Handling CSS and Image Reference Correctly" ...
I know there has to be an obvious solution to this problem and I am missing it, so I would much appreciate someone enlightening me so I don't spin my wheels... I am writing an ASP.Net application that will interact with a service API (Evernote specifically). Evernote requires OAuth for security and before I can actually interact with t...