Configuration :: CustomError Needs Additional Information

Sep 14, 2010

Using VB.Net 3.5 framework, i have a site that is using a custom login form and custom error with custom error page in global.asax and web.config is set up for both the login form and custom error. All works fine: my users login and when they get an error, they get the custom error page. The pages also use querystrings when moving about the site in order to retrieve data from a data base using a customer name (this is not the login name) and order number. When an error occurs anywhere in the site, I'd like to pass the page name and its querystring parameters

(ex: page1.aspx?a=1&b=2) to the custom error as well as the user information so that all the user sees is the custom error page telling them the error and all details were sent to the admin. Currently, the custom error page has an email link so the user can send a message that includes the details which results in 2 emails being generated for an error: one from global.asax with the error info/stack trace and the one the user sends with the details.

In my mind, a graceful failure does not require input from the user, just an apology and assurance the problem has been fully reported and will be taken care of. So, can someone assist in getting the current user and page/querystring into the custom error code in global.asax?

View 3 Replies


Similar Messages:

ADO.NET :: How To Obtain Additional Information

Oct 16, 2010

[Code]....

This works, but I would like to obtain further information Year. Currently only displays a number. How to include the year in txtStevilka.Text?

View 2 Replies

How To View Additional Information In .Net

Jun 14, 2010

I am attempting to implement a custom locale service in an MVC 2 webpage. I have an interface IResourceDictionary that provides a couple of methods for accessing resources by culture. This is because I want to avoid the static classes of .Net resources.The problem is accessing the chosen IResourceDictionary from the views. I have contemplated using the ViewDataDictionary given, creating a base controller from which all my controllers inherits that adds my IResourceDictionary to the ViewData before each action executes.

(ViewData["Resources"] as IResourceDictionary).GetEntry(params);

View 1 Replies

Web Forms :: How To Add Additional Information To Email Message

Sep 13, 2010

I have a contact form that has the standard email fields such as name, email, street address, city, state, and body. This is being done with System.Net.Mail. I understand how to use the body, to/from address, and subject. I don't understand how to include the street address, city, and state with the email though.

I want this additional information to be sent with the email some how so the recipient can have access to it. I assume this should be included with the body when the email is sent. I don't understand the best way to so this though.

I thought about appending the values of these fields to the body of the email. I don't know how to format this so it looks good though. The formatting I want to do is very basic. I would like each of these values to be on a separate line before or after the body of the email. I'm not interested in colors or anything too fancy. I prefer to send a plain text email, if possible, if these values can be included on their own line.

Can anyone provide an example or a link to an article on this? Do I have to use an html formatted email and create new lines with in the body for these fields?

View 6 Replies

.NET Membership - A Design For Tracking Additional Information?

Aug 13, 2010

I'm working on an ASP.NET4.0/C# application for a public site that needs to authenticate only the employees that work at the associated business. The idea is for the site to have a CMS such that employees can go in and make changes to certain content without having to work with any html.My question relates to the design and use of a ASP.NET membership provider. I'm not trying to make the site work with an existing database, so there's no need to create my own MembershipProvider for that purpose.

View 3 Replies

Security :: Additional Information With User Control?

Mar 28, 2011

I want to use the Control of ASP.NET (User wizard Control) to create user, but it only provide its default field like: -username, password, securityQuestion.All I want is the addtional information like Address, Company Name, Telephone number. And I know a solution by building it in 2 step, first the default username, passworld and the next step is the additional information. BUT i don't want to do like that.

View 7 Replies

Security :: Using Membership And Adding Additional Information - Creating BO?

May 18, 2010

I would like to know simple thing, If i'm adding additional information to UserProfile such as: Country, PhoneNumber etc'.. So, I added a Table In my DB (which also Got all Membership Provider tables...)

UserProfile, and added Stored Procedures for it for Insert / Update... I would like to know, If I need to create in Business Object a Class for Profile Only? (Cause the User is managed Already by the Membership Provider) And Create for it Also in Business Logic -> ProfileManager with Methods that will use the Stored Procedures to Update and Insert Details? Do I need to do it like this? Or there is another way? What's the right way doing it?

View 3 Replies

AJAX :: How To Send Additional Information To A Websevice With The Autocomplete Extender

Apr 9, 2010

I'm using the ajax auto complete extender and everything works fine. What I need now is a solution how to send additional information (variable) into the method of the autocomplete extender in the webservice. I need this variable to specify the WHERE-clause of my Access-String.

My Asp-Code:[Code]....

WebService- Code:

[Code]....

View 2 Replies

Raising A Modal Popup And Retrieving Additional Information From Database

Jun 23, 2010

I have a list of events that have been retrieved from a database a bit like this: Easter St Patrick's Day Christmas Independence Day ... I would like to make them links and when you click on the link it raises a modal popup and displays a bit more information from the database about the event. So far, I've set up the ModalPopupExtender like this on my page:

[Code]....

I thought the links might look something like this:

<asp:LinkButton ID="btnShowPopup" runat="server" OnCommand="ShowDetails" CommandArgument="Test">Event 1</asp:LinkButton></p>
[Code]....

I'm not quite sure how well this will repeat though. It looks like I'll have to have a ModalPopupExtender for every single link which doesn't sound very efficient. Am I doing this right?

View 1 Replies

C# - Forms Authentication Adding Additional Information Alongwith ReturnUrl?

Oct 12, 2010

With Forms Authentication when the app needs to redirect to sign-in page is there an event or any extensibility point that will let me do additional work to the request before it redirects to the sign-in page?

I would like to send additional information in the query string that could vary such that it wouldn't work to just statically embed that in the link in the loginUrl node in the web.config.

Edit: For clarification, I want to intercept the request prior to being redirected TO the login page.

Example:

<authentication mode="Forms">
<forms loginUrl="http://the/interwebs/login.aspx" timeout="2880"
enableCrossAppRedirects="true" />
</authentication>

And prior the user being redirected to http://the/interwebs/login.aspx I would like to be able to pack in query values so the url could end up something like http://the/interwebs/login.aspx?Action=Refresh

View 3 Replies

AJAX :: DropDownExtender,Additional Information:The Controls Collection Cannot Be Modified?

Nov 8, 2010

i always get this error when ever i use DropdownExtender,Additional information:The Controls collection cannot be modified because the control contains code blocks
i.e. <% ... %>).this is my ASPX Code

[Code]...

View 5 Replies

Forms Data Controls :: Dropdownlist - Obtain Additional Information In Label

Oct 1, 2010

[Code]....

How to obtain additional information in label1? Data ID and last name, it works. How to obtain additional information ID2 in DropDownList?

View 2 Replies

Secure Login With Additional Context Information Passed Through (which Also Needs To Be Secure)

Jul 13, 2010

My web application will be launched through existing thick client applications. When launched, an HTTP POST request will be generated including information like the userID and additional context information (basically stuff like the target user's name, birthday, etc.).

My plan for authentication is for there to be a look-up table in the database. If the username is already there, automatically login the user, but if there is no entry in the database, redirect the user to an initial login page which will be used to create that database entry.

My question is how to secure this against MITM and other security holes. How can the request generated through the thick client be on an SSL connection? Doesn't an SSL connection have to be authenticated with the username (and password) first? And if so, will the additional context information be publicly exposed until the user is logged in?

View 1 Replies

CustomError Not Working Properly

Apr 20, 2010

I am using following setting for customError.

< customErrors mode="On" defaultRedirect="GenericErrorPage.aspx" >
< error statusCode="403" redirect="NoAccess.aspx" />
< error statusCode="404" redirect="FileNotFound.aspx" />
< /customErrors>

I have a folder "Admin" having access to administrators role. When someone other than administrators tries to access the pages inside admin folder, it is redirected to login page. My expectation is to display "NoAccess.aspx". Whats wrong with this code? Or is there other meaning to statusCode=403.

View 1 Replies

CustomError Handling In MasterPage Error Page

Dec 22, 2010

I redirect Errors to Error.aspx

<system.web>
<customErrors defaultRedirect="error.aspx" mode="On">
error redirect="error.aspx" statusCode="500" />
</system.web>

and the problem is that there is also second error in ErrorMasterPage of Error.aspx

<script Language="C#" MasterPageFile="~/ErrorMaster.Master" runat="Server">

and CustomError can not handle the second error while its like a loop ( it will redirect to error.aspx and Masterpage of Error.aspx has Error.

Example:

Login.aspx(has Error) -> Error.aspx -> ErrorMasterPage.Master (has Error) -> Show Yellow Page

View 1 Replies

Security :: CustomError Mod Logs Redirects To Logout?

Sep 7, 2010

I have a bug in which, whenever an error occurs the user seems to get logged out. After much research I find that the situation is not so simple:

(note I have dumbed these down a bit to make it easier to follow)

Web.config - I turn on Custom Error Mode

View 1 Replies

Configuration :: HttpBrowserCapabilities Returning Wrong Information?

Nov 30, 2010

I have been struggling with this for days now. Most of my clients run IE 8, but I got issues with two of them. In my app I use the Majorversion to enable some controls on the webfrom. However, at these two clients the majorversion returned is 7 instead of 8.

I have disabled the compatibility mode of IE 8 so it runs in IE 8 mode. Furthermore, I addes an app_browser folder to my application and putted in a ie.browser file with the correct information. This doesn't solve the problem however. It still returns IE 7 as browser instead of IE 8.

The UA-string however is correct. when I visit a testsite with this same browser on the same workstation, I get the correct browser values. So it is a local thing. I still don't understand why the file in the app_browser folder is not working.

I just created this folder on the already existing application folder and putted the browser file in it. That should be enough. Isn't it? My application is a compile webapplication.

View 2 Replies

Impersonation + Error Reading Configuration Information From The Registry?

Jul 6, 2010

have registered keys in the registry for impersonation for my application (asp.net 2.0 running in IIS 7.0)

<identity impersonate="true" userName="registry:HKLMSOFTWAREMY_SECURE_APPAPPNAMEASPNET_SETREG,userName" password="registry:HKLMSOFTWAREMY_SECURE_APPAPPNAMEASPNET_SETREG,password" />

View 8 Replies

Configuration :: Show Web Applications Build Version Information?

Jan 20, 2010

I would like to make the build information for the running web application but I dont know where I set or configure this nor do I know how to retrieve this information.

In a project you may set the build information in the file AssemblyInfo.cs under the projects Properties folder. Here is a snippet of the AssemblyInfo.cs file:

[Code]....

But there is no such file for an web application project, so I have to get this information from one of the compiled DLLs that is in the same assembly as my web application then? Or how is this done?

The reason I want this information is because my customer would like to have a webpage within the web application where he could see the current version. This is also nice to have when testing and debugging etc.

View 5 Replies

Configuration :: Using Class To Pull Active Directory Information For Forms

Aug 17, 2010

[Code]....

Using class to pull Active Directory Information for forms

View 2 Replies

Configuration - Multiple SMTP Servers Or Update The SMTP Object Server Information At Runtime?

Nov 5, 2010

The question: Is it possible to configure multiple SMTP servers or update the SMTP object server information at runtime?

Description of problem: The site I'm working on has a few pages which send emails. Our site is using Gmail so even though it's a custom domain our email is sent out though Gmail SMTP servers.

Some emails come from the system and some emails come from users in certain groups. I have an SMTP server configured with the admin email for the system e.g. admin@mysite.com This works fine and when I get the email it shows from admin@mysite.comOne of our user groups let's call it "groupA" has an email configured on our domain i.e. groupA@mysite.com When I send the email and specify a from address for the MailMessage object as groupA@mysite.com it still shows up in my outlook as coming from admin@mysite.com I did a little further testing and if I specify both the from address and the ReplyTo as groupA@mysite.com it will show as From=admin@mysite.com but when I choose reply in outlook it shows groupA@mysite.com My best guess is that Gmail is overwriting the From address with the SMTP user to prevent email spoofing.

I found this: http://www.systemnetmail.com/faq/4.1.aspx but it won't work for me since group A, B, and C all need to send emails from the same page.

View 1 Replies

ADO.NET :: Automatically Loading Information From A MS SQL DB When Information Is Entered

Jan 19, 2011

I am making an online form (literal form) that needs to have a certain function: when the user enters a 5-digit number, the form should automatically query the MS SQL DB and retrieve information associated to that number and populate other form elements (text boxes, etc.) accordingly.

So say the # was 12345 and in the DB, the record matching 12345 has name=Fred. So, when I enter 12345 into the form textbox, the name text box should be automatically populated with Fred in it.

If this is not easily achievable, I guess a submit button beside the 5-digit number text box can do.

I am still learning my way around ASP.NET and Visual Studio 2005, however I have ample experience with HTML, CSS, JavaScript, C/C++. The ASP.NET app is to be written in C#.

View 1 Replies

How To Add Additional String

Jul 11, 2010

How to add additional string

[Code]....

View 7 Replies

C# - Add An Additional Route?

Mar 31, 2010

Here is my default route.

context.MapRoute(
"CreditReview",
"Site/{sitecode}/CreditReview/{controller}/{action}/{id}",
new { action = "Index", id = "" }
);

I'm looking to add 'status'. This is what I currently have and it isn't working. I haven't worked with routes.

context.MapRoute(
"CC",
"Site/{sitecode}/CreditReview/{controller}/{status}/{action}/{id}",
new { action = "Index", id = "" });

View 2 Replies

Way To Use Hyperlinks That Can Pass Additional Values

Jun 17, 2010

I guarantee the title of my thread does not explain what I am looking for, but I just can't think of a better way to word it. What I have right now is an application that the user can add, search, and update various orders in the System. I've been working on the front end page, and wanted to display a summary of all orders performed this month. Right now the Orders are represented as labels (based on data pulled from the database). What i'd like to do is replace these labels with hyperlinks. I was hoping that by doing that I could somehow write some code so that when an order is clicked that the user is taken directly to the search page and that order is displayed.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved