asp.net

TreeView Control in ASP .NET

I am using a asp .net tree view control whose "ShowCheckBoxes" property has been set to "All". Now if the user checks the root node, i want all nodes under it to be "checked". I have looked at the event model, but i cannot find a event or a property that tells me if the checked node is a root or a child node. How do i find if the sele...

Getting value of Radio buttons with Master Pages

I have an aspx page that uses a master page. On this page I have a group of radio buttons. I need to get at the checked property for each of the elements in the radio button group in javascript. Before the page was converted to use a master page, the following javascript code worked just fine: if((!f.rblRegUseVehicles[0].checked) && ...

INSERT from ASP .NET to MS Access

We are trying to build a Help Desk ticketing system just for intranet. Deciding upon the ASP .NET (C#) with Visual Studio 2008 Express (think we have a full version floating around if we need it). Nothing fancy, couple of pages grabbing NTLM information, system information and storing it along with their problem in a database. Goal is to...

asp.net custom datapager

in all the datapager examples i've seen (using a LinqDataSource tied to a ListView) the queries to the database return the full recordset. how can i get JUST the page of rows that i want to display? for example, if i have a table with 1million rows and i want to see the 10 results on page 5, i would be getting rows 51 to 60. i'm sure i...

How do I deploy a pre-compiled ASP.NET web application?

I have a web service implemented in ASP.NET 2.0 and have pre-compiled it using the aspnet_compiler. I have no clue now how to deploy it to IIS, can someone point me in the right direction? I am using IIS 6.0 on a Windows Server 2003 machine. I have placed the pre-compiled files into a virtual directory, when I access the service throug...

How to share a key between Global.asax and a Page in Asp.Net

hello all, I'm working with linq to sql, and therefore need to store my DataContext for future use for each thread (I've read this article: http://www.west-wind.com/weblog/posts/246222.aspx regarding ways to implement a shared context). What I want to know though, is how do I create a single key that both the global.asax file will know...

redirecting w., ww., wwww. to -> www.

I'm trying to redirect site.com w.site.com ww.site.com and wwww.site.com to www.site.com. My boss wants to ensure typos make it to the site as well. They redirect fine. I'm using ASP.Net and throw a 301 redirect back using a regular expression, however, tools such as http://www.seoconsultants.com/tools/headers.asp don't seem to show a...

Associating multiple e-mail addresses with ASP.NET MembershipProvider accounts

For a project I am currently working on, I am interested in allowing users to provide multiple e-mail addresses, both for contact purposes as well as providing address book-based social matching. I plan to write a custom membership provider (aspnet_Membership table is too heavy for my liking), but the MembershipProvider system only allow...

Elegant way to combine ASP.NET validation with JQuery

How can I best combine JQuery with ASP.NET client side validation model? I've generally avoided implementing ASP.NET validation model because it always seems overkill for what I was doing. For the site I'm working on now I'm just collecting non critical user data and only need somewhat basic validation. I dont want messages appearing in...

ASP.NET Membership provider with SQL schema's

I would like to use the ASP.NET Membership Provider security framework but would like it to use SQL Server schema's. So instead of having tables such as aspnet_Membership I would prefer it to be something like sec.Membership. Has anyone tried this and got it to work? ...

AuthSub/OAuth, ASP.NET and Google API

I have an Idea for a simple webApp that would cross-link information from Evernote to Google Calendar. I was able to find a good Evernote Quickstart project but I am now searching for something to start with to begins accessing Calendar. Please advise if you know any good resources with code samples that would show me how to do the dirty...

Custom C# data transfer objects from javascript PageMethods.

I've created a custom object that I'd like to return in JSON to a javascript method. This object was created as a class in C#. What's the best way to return this object from a PageMethod ([WebMethod] if you like) to a javascript onPageMethodCallback() function? I need to be able to access the properties of this object via javascript...

HttpHandler 101 FAIL

When I add an HTTP handler: <add verb="*" path="*test.aspx" type="Handler"/> With the class: using System; using System.Web; public class Handler : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Write("Hello World"); } public ...

Hardware requirements for .net Application in Production server

I have developed my ASP.net application with SQL Server 2005 which as installed version of .net Framework 2.0. Please some one suggest what are the hardware requirements (windows server) to host in Production server and its configuration to host the application. The total number of users around 10,000 per second around 10,000 requests...

How to set the Theme for an ASP.NET site in a 'gateway' page?

I want to be able to set an ASP.NET Theme in a gateway page, which will determine the theme based upon a partner id or something like that. I figure I'd just stick the theme name in session and get it from there if I need it. I'm having trouble finding the right place to put this code in a single place. I cannot seem to see a global p...

How can I add wpf browser application in asp.net page

I write a WPF application. but i want to add aspx page like java applet but I don't find any idea. Can you help me? Please look at: http://img132.imageshack.us/my.php?image=wpfinaspuc2.jpg ...

ASP.NET WebForms or MVC

Duplicate: Should I pursue ASP.NET WebForms or ASP.NET MVC? We are developing an enterprise application which uses client-server architecture. It is based on .NET Framework 3.5, the client is a rich WinFom application and the entire system is in Beta testing stage. We need to exposed some of this system's functionality through web....

How to pass Page as ref parameter to a function

I would like to know how Can I paas Page as Ref Parameter to a function This is what I want to do public partial class HomePage : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if(!SetupUserPermission.isSessionExpired()) { string UserId = Session["UserId"].ToString()...

Converting an ASP.NET site into a SharePoint site using ODBC connection and not SQL

Hi I followed this article http://www.codeproject.com/KB/sharepoint/ASPNET_to_Sharepoint.aspx and it worked converting my ASP.net Site into SharePoint with a SQL Datasoure. Does anyone know what i must do in the Web.config of my SharePoint site in order to make my ODBC connection SAVE? My ODBC connection = SafeControl Assembly="Samras...

How can I save a Word document back to the main server from an ASP.NET intranet ?

I have a ASP.NET intranet application that has a document library section. The user can click on a link to a MS-Word document that resides on the server and can then edit the document if required within the browser (IE). The problem is that when they come to save their changes it needs to write it back to the server but instead wants to...