For a instance we have some IHttpHandler.
where we have two valiables:
XmlElement xmlResponse - contains a really big XML.
HttpContext context - current HttpContext.
The simple solution:
context.Response.Write(xmlResponse.OwnerDocument.OuterXml);
but when a XML is really big we can get OutOfMemoryException at that line.
A call stack ...
Ok I'm coming here as a last resort hoping that someone knows the answer to this, no answers in the newsgroups and I have done everything I know how to do, aside from a serious hack solution that I would love to avoid.
Here is the situation:
I have a .NET class library that is COM exposed. I wrap this into a CAB file and use the Object...
I'm using a pre-compiled ASP.NET 2.0 site (i.e., copied to the server using the "Build->Publish Web Site" feature in Visual Studio 2005). I catch and log all errors which are usually quite detailed, but lately I've been getting the following error with no other information:
Could not load the assembly
'App-Web-rp2eml-j'. Make sure ...
Where in the following C# codebehind is the potential for XSS?
// Get data based on key names
for (int i = 0; i < m_dataKeyNames.Length; i++)
{
data[i] = (string)DataBinder.Eval(container.DataItem, m_dataKeyNames[i]);
}
Can this be fixed? Thanks.
...
An extremely secure ASP.NET application is having to be written at my work and instead of trawling through the Internet looking for best practices I was wondering as to what considerations and generally what things should be done to ensure a public web application is safe.
Of course we've taken into consideration user/pass combinations ...
The Asp.net AJAX authentication service provides Login and Logout methods. I can configure a membership provider and a client side call to Login will call my server side ValidateUser defined in the membership provider. All good so far.
However, the Logout method issues a call to the built-in service's Logout method which basically set t...
Hi everybody,
My problem is that, i want to count the controls on a page and then get their types, if there are textboxes, checkboxes or comboboxes, then make them enable or disable? Is there any example on the net?
Thanks
...
I've looked around online for this problem and I get a lot of 'delete temporary files' and 'restart IIS' answers. The site works fine when I'm running it locally, but when I publish to a windows server hosted via Godaddy I get this error.
Is there any other way I could debug this?
At the bottom of the error page it says:
Version Info...
My ASP.NET website has a global error handler that sends an email to me (and another developer) when there is any kind of error in the web app. We recently received an error which contained a CC to an email address that we'd never heard of. The scary thing is that the list of developers that the error email is sent to is hard coded in ...
In PHP, if I need info on a function I can just type http://php.net/function-name. If the function doesn't exist it performs a search of all functions. The documentation for every function is usually 1 page long and contains all relevant info needed (params, return types, sample code, comments, special cases).
When I search for someth...
Why doesn't this display the date/time when rendered?
<asp:Label runat="server" ID="test" Text="<%= DateTime.Now.ToString() %>" ></asp:Label>
Is there anyway to make this work?
...
Build vs. Buy... We've all been down this road... It seems like content management solutions need to be a tool that you keep inside the toolbox for some quick wins and they are only getting better. I could certainly look at building one, but by the time you get all the bells and whistles in there, it would have been cheaper to get one...
I have an app that currently uses a bunch of include directives of aspx files, a lot like a classic ASP app might work. (I know, ugh.) I would really love to convert this to dynamic user controls since the URL/querystring will help determine what code should execute. I know that I'll need to dynamically load user controls before the P...
Is there any function to encode HTML strings in T-SQL? I have a legacy database which contains dodgey characters such as '<', '>' etc. I can write a function to replace the characters but is there a better way?
I have an ASP.Net application and when it returns a string it contains characters which cause an error. The ASP.Net application...
I want to write some stats to a text file every time a person loads a page. But every once in awhile I am getting at 'Could Not Open File, Already in use' type of error. I can not 100% replicate this error it is very erratic. My code is
Public Sub WriteStats(ByVal ad_id As Integer)
Dim ad_date As String = Now.Year & Now.Month
...
Hi there,
I'm trying to run some java script just before a page redirect but it fails to run.
When I comment out the Response.Redirect all works fine but this goes against the particular requirements. Any ideas on how to implement this functionality?
Dim strscript As String = "<script>alert('hello');</script>"
If Not Cl...
I'm facing a strange problem in my project. My actions are getting old param values instead of the actual values which are in Request.Params. I created a HomeController.Echo(string text) action to illustrate it (see screenshot). When I call the action for the first time like "Home/Echo?text=aaa" everythink works fine. When I call the sam...
Hello Friends,
I have a repeater, which is bound to a Business Object, containing a textbox (Name) and a DropDownList (Date of Birth). how can i edit the bound object with the selectedvalue from the dropdown?
For example
The first Object has these values (Name: Dave, DOB: 1982)
The second object has these values (Name: Tim, DOB: 1970...
I am working with a dataset, and will be returning both positive and negative currency figures. I already have a parenthesis around it. How do I get only the negative numbers in the gridview to show up in red? Can I do this on the HTML side?
...