asp.net

ASP usercontrol allignement

Hi, I have a ASP UserControl that looks like this: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="WebApplication2.WebUserControl1" %> <table> <tr> <td> <asp:Image ID="Image1" runat="server" Width="100" Height="100" ImageUrl="~/Logo.png" /> ...

Significance of bool isreusable in http handler interface

When writing a http handler/module, there is an interface member to implement called - bool Reusable. What is the significance of this member? If I set it to false (or true), what does this mean for the rest of the web app? Thanks ...

ASP.Net Web Forms Entity Level Access Control

I have an ASP.Net Web Forms application in which I'm using forms-based authentication with Membership and Role providers, which is fine for authenticating and controlling access to directories and/or files. Now I find myself needing to control read, write and delete access on individual entity instances, for example being able to update ...

UpdateProgress with UpdatePanel not showing up in User control when page is loading

Is this typical behavior of the UpdateProgress for an ASP.Net UpdatePanel? I have an update panel with the UpdateProgress control inside of a user control window on a page. If I then make the page in the background do some loading and click a button in the user control update panel the UpdateProgress does not show up at all. It's li...

Check if thread is still running

In an ASP.NET MVC application during application_start a new thread gets startet. The thread loads data into the Cache and takes 5 minutes. The application needs to be aware that the loading is in process. Thats why I want to set a flag in an application variable. I set Application["LoadingCacheActive"] to true when I start the thre...

Tags in ASP.NET

What's the difference between <%= Something %> and <%# Something %>? Are there any other modifiers of this kind? Duplicate http://stackoverflow.com/questions/100853/what-is-the-difference-between-the-and-opening-tags ...

.NET StreamReader Won't Close

I'm using a RTF file as a template for an ASP.NET web application. My VB.NET code reads the file using a StreamReader, replaces some strings, and creates a new Word document with data from the database. My code closes and disposes of the StreamReader. However, when I attempt to upload a revised RTF file to the web server I get an error, ...

How to use HTTPS in ASP.Net appllication

Hi all My Asp.Net web application has so many web pages. But i want to use HTTPS for only Login.aspx page. How can i do??? Pleaes Help me..... thanks ...

URLs for e-mailing in ASP.NET MVC

How would I generate a proper URL for an MVC application to be included in an e-mail? This is for my registration system which is separate from my controller/action. Basically, I want to send an email verification to fire an Action on a Controller. I don't want to hardcode the URL in, I would want something like the Url property on the...

Best authentication mechanism for Flex, ASP.NET and SOAP or REST web services?

I am building a web based application written in ASP.NET and Flex. One of my biggest challenges is implementing security for the application in a flexible and maintainable way. This challenge is compounded when different technologies are involved. I'll try to describe what I have below. The website is laid out as follows: /mydomain....

ASP.NET File uploading-dynamic file names

I have a web page where i have an ASP.NET file upload control to upload files from client machine to Server.Now i want to do the uploading n number of times.Ex : I want to upload 100 files from my local pc to server.The 100 file names i can read from an excel file in my program.But is there any way to assign this file to the file upload...

Best DotNetNuke url rewriting approach?

I would like to implement a URL rewrriter for DotNetNuke. Have questions as to whether this is a good or possible approach and any suggestions other developers may have. Can I add a dynamic or static route for URL rewriter from the 'Pages'-> 'Add Page' section? Let's say I'm creating a page called 'Events' underneath the 'Activities' m...

invoking web service using httprequest

i have a web service which contains a method like the following [WebMethod] public string UploadFile(byte[] bytes, string file_name) { } i want to invoke this web service method using HttpWebRequest so that i can stream the file without buffering in memory. How can do it... i tried to invoke it as follows HttpWebRequest hw = ...

Control scope within Repeater, with and without UpdatePanel

Why does the following give me a compilation error for line B (Label2, outside UpdatePanel) but not for line A (Label1, inside UpdatePanel)? I would have expected both lines to give an error since both controls are within the same Repeater and should therefore not be directly accessible outside the repeater, since there is no one unique ...

How to make request from Class files(serverside) to .aspx file(clientside)?

Hi friends, This is different problem for me. I used ASP.NET2.0 with AJAX,C#. Regularly client make request from HTML (client side) to any class(.cs) file(server side). And then make updation on that class files through Object or in database. But I want to make request from Class file (server side) to HTML file (client side) based on ...

How to write UTF8 text to MySQL from ASP.NET via ODBC?

I'm using MySQL 5 on shared hosting, connecting from ASP.NET 3.5 using the MySQL 5.1 ODBC driver. I'd like to store UTF8 strings. My tables used to be all in "latin1_swedish_ci", but I converted the the database, table, and column to UTF8 using: ALTER DATABASE `my_db` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; ALTER TABLE `my_...

HttpModule URL rewriting using IIS6 with no extensionless URLs

We are using the Intelligencia URLRewriting module for asp.net with version 2.0 of the framework and IIS6. Our URLs typically have no extension. I understand that IIS6 cannot really deal with this situation without a blanket wildcard (which causes other problems). However, it works! Sometimes. At other times (e.g. on one dev's mac...

Accessing Calendar control through Javascript

I have a asp.net calendar control, say Calendar1, in invisible state (visible = false ). How can I set visible to true using javascript when i press a client side button so that there is no postback done ? ...

Problems with ASP.Net State Service

We have an ASP.Net 2.0 web application running in a web farm which is using the ASP.Net State service to store sessions. We have been having problmes with the service intermittently and have changed a few things such as the machineKey in the machine.config. My actual question is around the monitoring of the state service service. We ha...

Asp.net MVC Routing Type

i have 2 views in my App 1:Views->Season->ViewSeason 2:Views->Admin->Season->ViewSeason How i write Controller for this? pls help me..... ...