asp.net

ActiveDirectoryMembershipProvider - "Unable to establish secure connection"

I am trying to configure an ActiveDirectoryMembershipProvider but I keep getting the message "Unable to establish secure connection with the server". I have seen online at the MSDN website that I should configure the trust level to unrestricted on my site and I still get that. Here is my example: <connectionStrings> <add name="...

SmarterMail from DNP

Hello All, Is there an example or documentation on how to acess the SmarterMail from DNP with Visual Studio - Asp.Net? Regards Fenie ...

Alternative to google analytics that runs on ASP.NET and doesn't use IIS logs?

I need a hit counter for my various pages, but I can't use google analytics (my client isn't ready for cloud computing) and I can't use anything that requires access to the IIS logs (the server administrator owns them and doesn't want to give them up) What resources are there for user usage tracking for what is essentially a hosted ASP....

How do I add ROW_NUMBER to a LINQ query or Entity?

I'm stumped by this easy data problem. I'm using the Entity framework and have a database of products. My results page returns a paginated list of these products. Right now my results are ordered by the number of sales of each product, so my code looks like this: return Products.OrderByDescending(u => u.Sales.Count()); This returns...

Elmah filtering based on APPL_MD_PATH Options

I posted this to the ELMAH newsgroup, but haven't received a reply in 5 days, so I figured I'd try here. Here are 2 test statements that I think do the same thing, but neither seem to work: <test> <equal binding="Context.Request.ServerVariables ['APPL_MD_PATH']" value="/LM/W3SVC/1/Root/Ameren/CCI" type="String"/> ...

ASP.Net DynamicData pages scaffolded from DB tables: is there a simple way to change their names?

ASP.net scaffolding creates administrative page names by adding a 'S' to the name of the table. Thus the editing page for User table is named Users, and so on. Is there a simple way of changing that name without creating custom pages? For instance for the table "Business" I'd like ASP.net DynamicData to create an administrative link ...

Change the Access Modifiers of ASP.NET controls

If I put a control in a .aspx file like this; <asp:TextBox ID="protectedTextBox" runat="server">Some info</asp:TextBox> I get a declared control in the page's .aspx.designer.cs file; protected global::System.Web.UI.WebControls.TextBox protectedTextBox; But I'd like to change the access modifier of the control to public. Is there an...

Problem with WCF Service - The protocol 'http' is not supported. How to resolve?

I'm after setting up a WCF service on my dev box but I'm getting an error when accessing it. I've set the service up as per this guide. It's is written in VS2008 / C# / .NET 3.5 and my dev box is Vista SP2 with IIS 7. At the moment the service is nothing more than the default structure since I am literally after testing a connection to i...

What to name the Page OnLoadComplete event so it is auto wired?

Hi, I am trying to get the Page OnLoadComplete event auto wired up, but so far have been unsuccessful. The name of it is "LoadComplete", so is it simply LoadComplete? Or does it follow the page_load syntax? Nothing I have tried has worked so far. (I have a breakpoint in this event and it is never fired). I have tried variations of ...

Getting the values in a dropdownbox from javascript

Does anyone know how to get the values from an asp dropdownbox (not just the selected one) using javascript? ...

error login page in asp.net oledb

i been having problem in compiling a simple login page in asp default.aspx.vb Imports System.data Imports System.Data.OleDb Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim cn As New OleDbConnection("Provider=Microso...

SQL Filter Query

I have a table with a number of fields in it. I am trying to create search filter in asp.net so the user can search by one or a combination of fields. So basically I want to create a single stored procedure that takes in 4 params and it will append the param to the WHERE clause if its not null... TableExample has 4 columns, Col1 Col2 Co...

.NET Page Method vs UpdatePanel, Which is Better for Updating and Refreshing

I haven't started writing any code for this program, but here's what I need to do in C#/ASP.NET, both of which I'm just starting to learn. I have a DIV on a page that I want to update with information from an MS SQL Server every five seconds. Would it be better to create my countdown timer on the JavaScript or C# side? Would UpdatePan...

Change a website's directory names per installation

Is there a way that I can have different directory names per installation of a website? As in I would need to rename the directories at build time or some similar solution. I am currently using MSBuild with CruiseControl.NET. An example would be I have a module in my website called Bug Tracking which is then in http://mysite.com/BugTrac...

SQL Server Collation, Management Studio Results differ from asp.net Results

i am usering an Table with a user name column and collation SQL_Latin1_General_CP1_CI_AS now the query: select 1 where exists(select 1 FROM USER_TABLE WITH(NOLOCK) WHERE user_name='sueßemaus') in asp.net results: 1 in SQL Management Studio results: [nothing] there is a record with name "süßemaus" compared to collation the correct Res...

Need help in radiobutton within gridview

Hi all, Thru radio button i am selecting the data from gridview. Here all radio buttons are selectable at a time. Actually it should not happen at a time user can select only one button which i could not do. My second problem is when i am selecting particular radiobutton that details should be displayed in text box. I have Itemid, ItemNa...

.NET/IIS - Can I run a virtual directory using .NET 3.5 while the Website runs in 2.0?

I have a website running on .NET 2.0 right now. I have a reporting tool which needs to run on the same webserver as well, but it was written in 3.5. Can I create a Virtual Directory under websites, called "Reports" and have that run against 3.5? So the user can go to http://domain/Reports ? Let me know if this makes no sense. ...

Limiting Required Field Validator to One Set of Controls (ASP.NET)

I have a Required field validator attached to a fileupload control. When the user hits the insert button to insert the image into an html editor next to the control the validator fires off if nothing was in the fileupload text box. That works fine; however, when the save button at the bottom of the page is clicked it fires off the requir...

Unable to attach to webdev.webserver.exe (ASP.NET Development Server)

As part of my local testing process, I manually run the webdev.webserver.exe executable from a batch file. However, sometimes I would like to debug the app that runs in the ASP.NET Development Server process from within Visual Studio 2008, but I get an error whenever I try to attach to the executable: "Unable to attach to process". Doe...

Checkbox user selection validation question

Hi, I have a checkbox, the business rule is it has to be selected by user manually (so that he is aware what he is doing, not check automatically by the program). If the user didn't check it, we need to show an error msg. How should apply the validation by ASP.NET? RequiredFieldValidator or something? Thanks, ...