I have this simple Application_Error method in my global.asax, and it does not redirect in case an exception occurs under medium trust. Can someone tell me whats wrong here.
This code works fine under full trust
void Application_Error(object sender, EventArgs e)
{
Response.Redirect("~/error.aspx",false);
}
...
I have an SSRS report that is displayed to users in the ASP.NET ReportViewer control. The report has many parameters and we're using the parameter prompts that the ReportViewer control offers. Depending on a certain parameter of the report, we only need to have the user prompted for a subset of the rest of the report parameters.
We coul...
Hi
I have a page that must load several UCs dynamiclly, I do this on OnInit.
I first UC I list some recoreds and when User Choose one of the them , I will bind other UCs.
and by Next and Prev buttons user can navigate between UCs and edit content.
My problem is , when I use Next or prev button I have to refresh the page to view the new...
Been googling this but cannot find any good info.
What's the difference (aside from the obvious) in functionality between these two commands?
HttpContext.Current.Request.ServerVariables("REMOTE_USER")
HttpContext.Current.Request.ServerVariables("LOGON_USER")
I simply need to ensure that I get the name of the logon user for my asp.ne...
Hi,
I want to have an animated GIF image to appear or load whenever my .aspx page (for my appln) is loaded or postaback or some background process is going on::
<div id="WaitDialog" style="left: 480px; top: 255px; position: absolute">
<img src="http://developers.sun.com/docs/web-app-guidelines/uispec4_0/progress_graphics/asynch-1F.g...
Hi guys, I want to access the data associated with the RepeaterItem in which an ItemCommand fired up. The scenario is, I have multiple RepeaterItems which Button controls in which the Command is set declaratively like this:
<asp:Repeater ID="Repeater3" runat="server" DataSource='<%# ClientManager.GetClientEmployees(Eval("ClientID")) %>'...
Hello!
We are using a RegEx Validator to validate an input from a textbox.
The current RegEx expression checks if the current number is between the range of 1 - 999.
We just inherited this code and we need to change the range from 999 to just 365. In short, we need to write a regex to check if the input is between 1 - 365.
Of course,...
We currently have an ASP.NET Web Application running on a single server. That server is about to hit the danger zone regarding CPU usage, and we want to deploy a second server.
What would be the best way to handle Session State?
We currently run InProc. But that's not an option with 2+ servers, as we want to exclude a single server fro...
My Javascript function calling a sever side callback function.
This is working fine when I give alert(). If I comment alert() then the browser throw a warning ..
My function is
function callMe(){
var input = 'input parameter list';
var val= <%=gridCtrlUsers.ClientID%>.callbackControl.Callback(input);
// If I comment t...
hi evary one
I'm creating fileupload control on a linKbutton click evant.first time its creating the controls but if i press the link button second time..It's not creating.
what is the problem with that...?
following is code..
protected void LinkButton1_Click(object sender, EventArgs e)
{
newattach();
}
private void...
Is there a way to automatically stop the ASP.NET Development Server (Cassini) whenever I do a build/rebuild in VS2008 (and then obviously have it start again when required)? Maybe there's some hidden configuration setting somewhere? Or at least some way to do it as a post-build event maybe?
For some background, the issue is that I'm usi...
Hey
I got the requirement to output some reports as Excel 2002 spreadsheets.
Normally a job for reporting services - however - that's (edit) "not great IMO" and I hate it so for this project I used ExtJs - which doesn't do any excel output - not really - but does do the UI really, really well.
The reports will need to have outlining, ...
I've got a series of ModalPopupExtenders that I'm using to implement popup dialogs on an ASP.NET 2.0 page.
When they popup it's fairly easy to specify the location where they appear using the constructor using X and Y coordinates but I'm unsure how to deal with changes of window size which alters where they should be in cartesian space....
I've got two aspx pages which are very similar and have various identical functions in the code behind. I'd like to create a base class which both the code behind classes derive from. Is it possible for the base class to access the controls on the aspx page. For instance:
class base
inherits System.Web.UI.Page
Sub prepareScreen(...
Hi,
I'm trying to call a server side method from client side via jQuery, my code is as follows:
Server side:
using System.Web.Services;
[WebMethod()]
//[ScriptMethod()]
public static void SendMessage(string subject, string message, string messageId, string pupilId)
{
//send message
}
Client side:
$(...
Hi,
I need to access columns of infragistics ultragrid in same sequence in which they are being displayed in grid. If i can get the index of column in same sequence as they are visible on grid, i can fix my issues.
Thanks in advance.
Lalit
...
while encrypting and descripting the string with rsa provider I am getting this error.
RSA Data decryption error.The data to be decrypted exceeds the maximum for this modulus of 64 bytes.
Can any one have idea how to slove this error?
internal sealed class RSAProvider
{
#region key store class
[Serializable]
...
Hi every one
I am creating fileupload control at run time. When I click a link button a new fileupload control is generated.
Now suppose I have selected a file from a upload control and now I click the linkbutton...
The previous fileupload control loses it's path...however I'm maintaining the viewstate of each control that I create ...
I have a public method in my content page class, I want to call this method from master page class
Thanks
...
I have a VisualStudio solution created in Vs2005 which is making use of Microsoft Enterprise Data Library.Now I converted this to Visual studio 2008 .Now when i buid the project ,i am getting an error like the below
An error occurred creating the configuration section handler for dataConfiguration: Could not load file or assembly 'Mi...