asp.net

can i Run KiGG on XP Pro?

I have XP pro edition with .Net 3.5 installed and IIS 5.0 and MVC RC 2 Can i run KiGG on this machine? Also i have on my hosting server IIS 6 and .Net 3.5 , can it run there or no also? If no, there is no work around to make it work? Thanks, ...

Writing Custom Roles Provider For Master Pages/No Machine.Config

I'd like to write a custom role provider for my application, which has existing users and roles tables. I'm looking for a reference on that, which: doesn't require machine.config changes (I see this a lot in custom role architectures), supports master pages that may be applied to child pages that require different rights. ...

SQL scripts act on master database instead of practice database

I wrote some sql scripts to create a database and store data. I just noticed that the new tables and data are going to the master database. I found that I can address the correct database if I scope out the database as so: CREATE TABLE Practice1.dbo.Experiments ( ID int IDENTITY (100,1) PRIMARY KEY, CompanyName nvarchar ...

Files in website deployment

Which files do I have to deliver when I do an ASP.NET (MVC or not) deploy? I want to know only the absolutely neccesary files. Also, how can I obfuscate some of them to prevent decompiling? I don't want to use the publishing wizard since it requires having FrontPage extensions installed on the server. ...

Setup IIS in localhost as web development server

How can I setup IIS 5.1 in Visual Studio 2008 as my web development server? I'm using Win XP, and I was using Cassini, but I want to give a tray to IIS instead of. ...

Asp.Net c# -> Javascript Ajax

First of all, I'm new to Ajax and I don't quite understand everything about how it's work in Asp.Net. I'm using Asp.Net 3.5 and I have a c# server code that run and when it's have finish it work, it's call a subscribed event that will write the result in a txtbox control. c# code : public partial class TestDBLoader : System.Web.UI.Pag...

Block cross domain calls to asp.net .asmx web service

Hi I've built an application that uses jQuery and JSON to consume an ASP.NET .asmx web service to perform crud operations. The application and .asmx are on the same domain. I dont mind people consuming the read operations of the .asmx remotely but dont want people randomly deleting stuff!!! I can split the methods i'd like to be publi...

ASP.NET AJAX without update panel

Hello, What is the best practice to support data for asp.net 2.0-3.5 ajax web application? I don't want to use update panels, just plain text data (JSON). Should I use web services? Or is there another way. ...

Download and upload images with ASP.net

Hello everyone. In my web application, I need to be able to allow users to upload and download their images. How can this be don in ASP.net? I want to user to be able to sign in (I already have that done) and be able to upload images to their account. Later on, I want them to be able to download them. Thanks ...

Javascript function doesn't get called - ASP.NET and UpdatePanel

I have the following structure on a usercontrol that is loaded by a page (Parent UC): <UpdatePanel> <UpdatePanel> .. In the codebehind, it loads a Child user control at runtime </UpdatePanel> </UpdatePanel> The UC has OnPageLoad registers a script. ScriptManager.RegisterStartupScript(this, typeof(Page), "Load_" + this.Client...

GridView ASP.NET Sorting

I have an ASP.NET GridView that just won't sort! I'm sure that I am missing something pretty obvious. Page.aspx <asp:GridView ID="TimeAwayGridView" runat="server" AutoGenerateSelectButton="False" AutoGenerateEditButton="False" AutoGenerateDeleteButton="False" AllowPaging="False" AllowSorting="True" CssClass="gridview" OnSortin...

Remove security question from Forms Based Authentication

I'm building a small website which will have FBA enabled (SqlMembershipProvider) and I want signup to be as simple as possible, just a prompt for username (email address) and password. How do I remove the security question from the create user control? ...

Calling a method in parent page from user control

Hi, I've a user control registered in an aspx page On click event of a button in the user control, how do i call a method which is there in the parent page's codebehind? Thanks. ...

Linkbutton not rendering correctly inside a custom web control

I have the following set up Custom Control 1 - MyListControl - Nested Collection of - MyListItemControl MyListItemControl inherits from a Panel so I can write this: <cc1:MyListControl ID="MyListControl1" runat="server"> <ListItems> <cc1:MyListItemControl ID="MyListItemControl1" runat="server" CustomProperty="1"> <a...

Implementing indexing "operator" in on a class in C#

How would one go about implementing the indexing "operator" on a class in C# ? class Foo { } Foo f = new Foo(); f["key"] = "some val"; f["other key"] = "some other val"; in C# ? Searched MSDN but came up empty. ...

What are some sites with good free video tutorials on ASP.NET (C#)?

Besides www.asp.net/learn/, what other sites have good free video tutorials for ASP.net(c#) and everything related to asp.net and the Visual Studio IDE. ...

DotNetOpenID Programmatic Login

Hi, I am using Dotnetopenid for my openid solution, everything is fine when using the built-in user control, but when I want to implement it programmaticaly, like the below code, openid.Response.GetExtension<DotNetOpenId.Extensions.SimpleRegistration.ClaimsResponse>(); is always null. any idea? OpenIdRelyingParty openid = creat...

Can you share the session variables between two .net 2.0+ applications?

I was told this works, but... I guess I'm just not getting this, it seems there's a hidden step I may be missing, can anyone correct this or point out my mistake? Thanks. I have a blank solution: - inside is two .net 2.0 web applications 1) webapp1 2) webapp2 I want them to share the same session data. My page setups: Application 1:...

Dynamically created DropDownList loses ListItems on Postback

I have a page that contains some dynamically created controls (TextBox and DropDownList). When a postback occurs, the TextBoxes keep their values, but the DropDownLists lose their ListItems. This is quite confusing, since the page level DropDownList also keeps its ListItems. Can anyone see what's wrong with the code below? Any help in ...

Session Problem IN ASP.NET

As example, I login in to the system ad... But how can i use the session function to recall the current applicationid? Which I need to store in form and to the other table of database.. Behind code.. vb not c# Thanks a lot. Your guide is appreciate . Example.. 1. Login with the session fix (userid) in virtual studio.. 2. I wanna reca...