asp.net

How can I use a page_load local variable in event handler of a button

Hi, Im making a site in Visual Studio using vb and I have a variable in page_load but need its value in the event handler of a button for passing on session. Any suggestions on how I can do this? Any help is appreciated ...

Communication between user controls on the page - C#/ASP.NET

If there are 2 user controls on a page and both of them have checbox controls. Checking/Unchecking a checkbox in one user control should check/uncheck the one in the other user control. I see there is a need for user control communication. Any way I can do this on the client side? (I don't want to use server side code) Thanks ...

Accessing Visual SVN from ASP.Net using sharpsvn API

has any one tried to access VisualSVN repositories through ASP.Net using SharpSVN API ? if yes, what were the challenges ? ...

Ajax.BeginForm does not work in firefox

When I use Ajax.BeginForm with updateTargetId, it works fine in IE - replacing the html inside updateTargetId's tag. The same thing redirects the page to form's action. Does Ajax.BeginForm work in firefox? ...

How to create ASP.NET user/server control that uses a list of asp:ListItem as child controls?

I am looking to create a user/server control that will be created with something like the following: <my:MyListControl runat="server"> <asp:ListItem Text="Test1" Value="Test1" /> <asp:ListItem Text="Test2" Value="Test2" /> </my:MyListControl> I am just looking for a start here: Articles or code samples. What base class should I...

Why is the User information stored in two different tables in ASP.NET's default Membership Provider?

There are two tables: aspnet_users and aspnet_membership. Can anyone elaborate on the reasons why they don't use a single table for this? ...

CSS div problems with position

I have a css based asp.net masterpage. I am using a browse div located directly above a navigation div. The browse div is flowing down behind the navigation div. I did some playing around with the position and found that if i change the navigation position it fixes it, but everything in that div moves half way down the page. I have d...

What's the point of ASP.net AJAX in ASP.net MVC?

So ASP.net MVC by default ships with both JQuery and ASP.net Ajax. While the use cases of JQuery are obvious and plenty, I just wonder what the point of ASP.net Ajax is? If I just have my Controller Actions return JSON, I don't need it? Also, any "old" ASP.net controls only work if you use the Webforms view Engine (I think I want to use ...

Should I send e-mails in the service layer or in the controller layer?

I am using the MVC pattern in ASP.NET using service (BLL) and repository layers for data managment. In some cases, I want to send out an automatic e-mail when a new request is sent through our website. In what layer of the architecture should this e-mail be sent? In the controller layer or the service layer? I was thinking the service ...

PropertyAnimation

Does anyone know of any detailed documentation for MS Ajax animations? Specifically,I'm looking for help with the PropertyAnimation, but I can't find anything except the "reference" which doesn't give me enough to go on. ...

Double Byte numbers in asp.net

We are developing a site that has a Japanese localization. In that site, we display several dynamic fields using asp:label and such controls. Recently, we were required to display numbers using "double-byte characters". While it first I thought that was a confusion from the client, he sent me this in an email: 1234567890 1234567890 ...

Generate HTML Table Client Side

(ASP.NET Web Application) I'd like to create a page which allows the user to build an HTML table. The user will be provided with the following controls: a textbox used to define the amount of rows in the table, a textbox used to define the amount of columns in the table, and a bulleted list of shapes (ex. Square, Octagon, etc) which wil...

Image upload via gridview question...

Hello, I have a gridview that displays data from a database. The datbase stores the image filename (string) among other things for an item. I have the fileupload control showing in the EDIT view, and that uploads the file just fine. The problem is, I want to update the image filename in the database and I am not sure how to get the da...

How to get raw markup of child controls at runtime

I am trying to create an ASP.net server control for displaying formatted code, using this library: http://www.manoli.net/csharpformat/ Here's the trick: I want be able to express code blocks like this... <custom:CodeFormatter runat="server"> <asp:Label runat="server" ID="something" Text="my text" /> <asp:Image runat="server" ID="some...

IIS: Anonymous and WIndows Authentication

Scenario For a multiple file uploader I am implementing, I need to have a handler within a windows authenticated site that uses anonymous access. As detailed here, this is because Flash cannot use windows authentication. The aforementioned post states that the only way to accomplish this is to create a completely separate site. Howev...

Why is Stylesheet loaded when Contional Comment states it should be ignored?

I thought conditional comments would instruct the browser to ignore the content if the condition is not met?! For example I want to only include a stylesheet if IE6 is the browser. The following in located in the <HEAD> element of the page. <!--[if IE 6]> <link id="IE6StyleSheet" rel="Stylesheet" type="text/css" href="~/css/IE6.css"...

Bypass ASP.NET validation for onClick event of input.

I have a <input> with an onclick event which checks for the Enter key. The called function may do a window.location redirect. However, when I press the Enter key, it apparently fires off the page validation. So I see the validation messages for a split second. How can I tell the page not to fire any of the validation events when the ...

ASP.NET MVC on Cassini: How can I force the "content" directory to return 304s instead of 200s?

Scenario: I have an ASP.NET MVC application developed in Visual Studio 2008. There is a root folder named "Content" that stores images and stylesheets. When I run locally (using Cassini) and browse my application, every resource from the "Content" directory is always downloaded. Using Firebug, I can verify that the web server returns an ...

IIS Metabase Path for Source Input option - I don't understand its purpose

Hello, When we install Web Deployment Projects ( WDP ), we also have an option to use it inside VS 2008. By selecting Property Pages we are presented with several options for configuring compilation options. The Use IIS Metabase Path for Source Input option on the Compilation tab of the Property Pages dialog box is important ...

How do you debug ASP.NET applications under IIS7 on Vista?

There is a post on IIS.net titled "Using Visual Studio 2008 with IIS 7.0", but I don't quite believe that's what people do. (Among other gems, it suggests publishing your web app after every change.) If you debug your ASP.NET applications in IIS7 instead of Cassini, I would love to hear your methods, tips, and tricks. Edit: I'm referr...