asp.net

How to get the page calling the usercontrol

I have a user control .Is there some way to get the page in which usercontrol is available ? ...

Add user control after page is loaded

I am trying to add dynamically a user control I created to an aspx page after it is loaded. I tried sending an ajax request to a handler that used RenderControl function and sent back the control's html. I appended it to the DOM using javascript. The problem is that some of the controls must go through their Page_Load function and that ...

How do delete a files that was just uploaded to server and is still locked by the server?

Hello all, My system Uploads files to an IIS server and then i manipualate them and after finished doing every thing, i need to delete the original file, the problem is that the IIS "grabs" the file and i can't delete it, when i close the procces i can delete it manualy from the server, but until i close the procces i can't even do that...

Send Mask Mail through api or webservice from .net

i have one application for sending more then 1 million mail from that application. so sending mail may be through third party api or else how to send bulk mail through c#.net with asp.net? ...

Strange ASP.net error

All forms work on my site except this one, when I submit this form I get the following error: Server Error in '/**' Application. Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate c...

Displaying the menus

Hi i just want my horizontal menus to be display in the every page of the website...how to do that? Thanks ...

adding series to chart control in runtime asp.net (because of postback problem)

after the postback the chart control's values is changing its design time values. even when i write page load actions in (!isPostBack) scope , the values resets. so i defined a "my series" static ArrayList and in runtime i added each series of chart to that ArrayList. And in the page load event i added each element of ArrayList to Chart ...

FindControl for nested controls in UserControl returns null

Hi everyone, I have a very weird issue. I have a UserControl that has some controls inside. I want to refer those controls after, in another postback. But when I try to get them the Controls property of my controls returns null. I'm working on vs2008. Here is the sample code: public partial class MyUserControl : System.Web.UI.UserCont...

Why would you use an HTTP Module over ASP.NET Health Monitoring or visa versa?

I have come across this question several times, you need to do some performance testing (request process times, load times, etc) or track unhanded exceptions. The answers usually come down to writing a HTTP Module, hook into specific events and log them somewhere, or use the built in health monitoring? Why would we use one over the othe...

What is the view: mean?

I've upgraded my MVC project and VS2008 to MVC2 and VS2010. When returning ActionResult for controller actions I notice the intellisense gives view: option. What is this about? ...

CustomValidator in DetailsView

Hello, Does anyone know how to make CustomValidator work with controls which are in DetailsView for example ahen updating item CustomValidator doesnt work on controls which are in detailsView after performin for example update on that detailsView. For example RequiredFiledValidator works with no problem while CustomValidator has proble...

Data-based authorization in ASP.NET

Summary: I need to authorize pages based upon the data present in the query string of a url, not just the page name. Background: Let's say I'm building a library inventory system. Users can be created and assigned to a single library in either an Admin or User role. There are hundreds of competing libraries in the same database, so i...

Should Application Developer learn SAP?

I am 3-4 years experienced Application developer in .NET. My friends are going to attend SAP classes and they are offering me to join them. Just was wondering if it is worth it putting it under my belt. They are attending FICO module. And I have taken 1-2 courses in Financial accounting during my school. What do you suggest? ...

How do I get the Compare Validator to work server side?

I have this compare validator: <asp:CompareValidator ID="cpvBirthDate" Type="Date" ControlToValidate="txtBirthDate" Operator="DataTypeCheck" runat="server" ErrorMessage="Please enter a valid date in this format mm-dd-yy"> <img src="Images/ExclamationMark.gif" alt="Please enter a valid date in this format mm-dd-yy" /> </asp:C...

Free Rich Text Editor using on ASP.NET.

I need Free Rich Text Editor to use on ASP.NET. Any suggestions? ...

select multiple gridview rows with Ctrl+Click?

Is it possible to select multiple gridview rows using Ctrl+Click and then delete all the selected rows with a button? ...

Bound Drop Down List changes to first item in list

I have two drop down list on a page. The first one list projects and the second list users. The userlist is populated with an object datasourse that pulls a list of users for the selected Project. Whenever the Project list selection changes the second ddl Userlist always reverts to the first person in the list instead the person tha...

Redirecting default.aspx to root virtual directory

Hi, I have a simple ASP.NET 3.5 application running under IIS7 under a virtual directory. So the URL of my app is like http://site.com/app. I want to 301-redirect the request to site.com/app/default.aspx to site.com/app for better SEO. I have to do this redirect through code only, not by any IIS settings. I am unable to do so via code m...

multi select problem with telerik radgrid

Hi All I Have radgrid with GridClientSelectColumn column , when the user select all records then unselect one record the select all records checkbox still selected. Is There any workaround. ...

Changing the Application Path in IIS Developer Express

Is it possible to run IIS Express (Beta from WebMatrix) with a path other than /? There's no documentation so I've copied the default "applicationHost.config" and made the following change to the application path and virtual directory: <site name="WebSite1" id="1" serverAutoStart="true"> <application path="/x"> <virtualDirectory ...