From my last question, I have been found that Asp.net Routing can't route with existing url for more info read this.
How to redirect existing url to another url by using Asp.net Routing?
Hint!
I think, this behevior like access denied behevior that always redirect to default login page.
Thanks,
...
The project I am currently working on has, in the checkout, an option to attach an embedded YouTube video to an advert.
This is causing a headache:
My original plan was to take the embed html that the user provides from YouTube and split out the videoID, and store only that, rejecting anything that does not fit a certain pattern, to en...
I have a DetailsView and few buttons on my page.
So I want to hide them if DetailsView displays not a data but just a value if EmptyDataText property.
How can I do that?
I found only one way - view.Rows[0].Cells.Count == 1 because if the data is displayed, more then one columns presents. But I don't like such method.
...
What is the default session timeout value in ASP.NET?
...
I'm using standard ASP.NET and a Web.sitemap file which describes the navigation structure of the site.
Now, I want to use my resourceKey attribute as a page identifier in my code, so I can perform eg. authorization checks and similar.
Problem is it's always null, for example when retrieving SiteMap.CurrentNode.ResourceKey
I have tried...
Hi,
What's the recommended way of updating an entity? So far, I figured out two ways:
Just create a new entity with the existing Id and updated property values, and use session.SaveOrUpdate()
Use a DTO, retrieve the existing entity using session.Load(dto.Id), assign new vaues from the dto, then save.
No1 requires much less effort, b...
First off, I realize most of this can also be done using ItemTemplates. If what I'm trying to do simply isn't possible, I will consider using them instead.
Here are the basics of my dilemma:
I have a GridView in the ASPX page that is loaded in the CodeBehind. Each row contains a couple of buttons that trigger the OnRowCommand event. Wh...
We need to choose the reporting engine for our ASP.NET application. The main functional requirement is an ability for end users (not programmers, just normal users) to create custom reports. We will be using SQL Server as a database so I am aware of some options: SQL Server Reporting services, Crystal Reports, Active Reports, even Windwa...
I have an ASP.NET MVC app which is completely behind Forms Authentication. However there is one set of routes (/report/%) I need to force integrated windows authentication on, as those pages need to impersonate the current user (for security reasons).
If I set the whole site to integrated windows authentication this all works, except t...
A user will be able to upload an image. If the image is greater than a set size I want to downsize it to that size. Obviously it doesn't have to match exactly due to ratios, the width would be the key size so the height would be variable.
If the image is smaller than the set size I would like to create a new image to the set size with ...
I have dropdown on my page, I am changing selected value of dropdown from popup window using javascript. I have some logic in dropdown SelectedIndexChanged event, so I need to fire the SelectedIndexChanged event when dropdown selection changed from javascript.
...
This is the first time I have been faced with someone trying to penetrate a website I have created. What can I do to put a stop to the attempts?
As a side note, their sql injection stands no chance of ever working and there isn't any data that we have that isn't already available by anyone using this site normally.
Appended:
I think...
I get this error repeatedly when developing ASP.Net applications:
Cannot create/shadow copy 'XXXXX' when that file already exists
Where XXXXX is a random DLL. Typically the DLL is one of the DLLs from Microsoft's Enterprise Library, but it varies.
It's really random, and it's very frustrating. I will go hours without getting the e...
I have a controller action that aggregates data from multiple sources: web service, database, file lookups, etc... and passes results to the view. So in order to render the page all tasks must have completed. Currently they are performed sequentially but as they are independent I am thinking of running them in parallel as this could impr...
I deployed my ASP.NET application under an existing virtual directory. The new deployment will have some features using JavaScript. The new features are not working.
If I deploy this build under a new virtual directory, the features using JavaScript are working.
I restarted the IIS Admin service. The problem continues.
What could be ...
I have SSL installed at the root of a server. I have a page whose code behind code is supposed to redirect after certain validation to a secure page. Here's the redirect code:
switch (PageBase2.GetParameterValue("Environment")) //Retrieves App Setting named Environment from web.config
{
case "Server":
...
Hi, I'm having a Repeater used as a sort of Paging TagCloud. To do so, I've added simple properties to the Page's ViewState such as a Page, RowCount, etc...
I feel like it doesn't belong there but I had bad experiences with server controls, debugging, dll and deployment.
Could I just inherit the Repeater class, add a few ControlState/V...
Is it possible to display the mask for a MaskedEditExtender in a TextBox as (without the underlines)
( ) -
instead of
( )___-____
...
I want to deploy my ASP.NET application. Its not a "web site" it's a web application.
I'm looking
1) The quickest possible thing to do so I can start of testing
2) A more automated approach.
Any ideas?
...
From my initial readings on unit testing (I'm a beginner) it is wise to put all of your setups and tests in a separate project from the code being tested. This seems ideal to me, as well. However, I've recently begun reading The Art of Unit Testing, trying to discover how to break dependencies on things such as database calls. The met...