My Code is as follows:
function SetToEnd(txtMessage)
{
if (txtMessage.createTextRange)
{
var fieldRange = txtMessage.createTextRange();
fieldRange.moveStart('character', txtMessage.value.length);
fieldRange.collapse();
fi...
Trying to unit test a web application using mstest I have that problem with resources included in App_GlobalResources folder in the web applications.
Those resources are built at runtime and because of that they are not found when running the unit tests.
How are you solving this problem?
...
Im trying to send a custom HTML object from my ASP 2.0 website to my webservice through jQuery ajax. But I cant get it to work.
Everything is parsed correct in my webservice when I drop the ObjectHTML part. But I get an error when I add the ObjectHTML part.
Is it possible to send custom javascript objects?
function SavePage() {
v...
In IIS7 using UrlRewrite module I want to do something likes this. I tried everywhere, possibly this is wellknown problem, but couldn't find any usefull solution.
Url "http://tom.mydomain.com" should be read internally as "http://mydomain.com/dashboard?g=tom"
I am using ASP.NET MVC, just in case info is required.
...
I want to retrieve private (implementation and other) methods of a class which implements an interface and also is derived from (inherits) a base class.
How can I achieve this using reflection?
Is there anyother way to achieve this?
This is wat m tryin to do. I need to view these private methods and their contents, I don't want to in...
We are currently developing an ASP.NET MVC application which will be deployed on a corporate intranet, with a slightly-modified customer facing version available on the public internet.
We're making use of a number of external javascript libraries (e.g. jQuery) and a discussion has come up regarding referencing the libraries - should we...
Hi, I m trying to use jquery
validation plugin but my form is in
update panel> So even after applying
the validation on submit the form it
validates n shows the required message
for hardly 2 seconds and then submits
the form. What is the workaround of
this. Please help me if you can.
Everywhere on site different w...
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache );
Response.Cache.SetAllowResponseInBrowserHistory(false);
}
This code i have used to authenticate the website,its working but only when the user copies the url and paste it ...
I've written a custom membership provider for asp.net that has been working really well, but I just added the password recovery control to my site and found that when the username entered doesn't exist the UserLookupError doesn't fire and I can't seem to figure out what causees this event to fire using the normal aspnetmembership provide...
Hi,
I've read the questions/answers explaining that there is no multiple inheritance in C#, that we don't even need it, and that it causes too much problems.
Now, I'm working on a project where I don't really understand how can I do things without multiple inheritance, without duplicating code.
Here's the situation. There is a website...
I have an API DLL which is a COM object. I’ve used this DLL in a Winforms application successfully. When I use it in ASP.NET application I get the E_OUTOFMEMORY error: “Creating an instance of the COM component with CLSID {} from the IClassFactory failed due to the following error: 8007000e” when I create an instance of the COM object.
...
Hi
We are looking for an approach for developing a web based application which should have facility to upload large files (size upto 10 GB) with resume facility.
We want to develop this application using python/django or C#/asp.net.
Any suggestion would be appreciated.
...
I have a forgot password page in which i need to ask from the user his user id to provide him his password from the database and it is working but what to do if anyone enters any wrong user id.
...
Hi,
I am writing a fairly large webapp in asp.net / c# with mssql 2008 r2 serving the database. The program needs to convert date/time strings (in ISO date format) to DateTime where they are used and later stored as smalldatetime in sql.
When the strings are converted to datetimes, an hour is mysteriously added to the result. I underst...
Hi there. I have a database which stores .png images as the sql "image" type. I have some code which retrieves these images as a byte[], and sends them to the page via the FileContentResult object in .Net. Performance is key in this application, and the images have to be retrieved and displayed as quickly as possible. My question is, can...
I'm trying to make my masterpage work with my content page, allowing the content page to access the master page controls. I get the error:
Parser Error Message: The 'mastertype'
directive must have exactly one
attribute: TypeName or VirtualPath
This is on the lines:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="vi...
Hello,
I write an application in asp.net and I have something like state machine which can be modified by user (nodes, paths and directions of paths).
Is there any nice controll I can use to display this data ?
Just display, there is no need to do anything with it
Thanks for help
...
I would like to call a popup of the popupcontrolextender programmatically. Is this possible?
...
I want to protect my website from site copiers. I have looked at Ajax Toolkit NoBot, but unfortunately it is not meeting my requirements.
Below are my requirements.
only 0.5% pages will have post-backs, rest of pages looks like static pages. so detection should happen at initial request, not at post-back.
same time i want allow search...
Using http://www.urlrewriting.net/
I want /File1.aspx to be /File1
Ive been trying like this:
<add name="Rule1"
virtualUrl="~/File1"
desinationUrl="~/File1.aspx"
rewriteUrlParameter="ExcludeFromClientQueryString"
ignoreCase="true"
/>
How do i do it?
...