My ASP.NET 2.0 web app includes a web service, which throws various exceptions along with custom error messages (e.g. "You do not have access to this item" etc.). These are shown on screen, in a ASP.NET AJAX callback handler.
The rest of the app is covered by some custom error pages, specified in the usual way in web.config.
<customErr...
This is just for a better understanding of the ASP.NET framework. When you use a control in a declarative way (that would be web form markup), you assign event handlers by their method name using an attribute that starts with On:
<asp:Button runat="server" OnClick="..."/>
But when you look at the System.Web.UI.WebControls.Button class...
I have an custom IHttpModule that handels all available events and logs the HttpContext.Current.Response.StatusCode to a file.
My web.config does not contain any other module in <httpModules> so all errors are promoted to the browser.
Although the Browsers shows a 404, the log file is full of 200 (Ok) entries and not a single 404.
Wh...
hi i have added the drop down list to the ultra web grid column and saved the value selected in the drop down to the database
and when i try to retrieve the data and display the data its showing the value of the dropdown not the text e.g. 4001 - sales it is showing 4001 not sales i want to show the sales text in the drop down
how to ac...
Hi,
I'm not a programmer but do have some knowledge of OOP through using AS3. I'm looking for a book which will teach me asp.net without baffling me with programmer terms. Can anyone recommend a good book for me?
many thanks
...
I am using Silverlight.CreateObject function to create a object tag with a xap which is dynamic i.e. it does it on a click on something. And when u click that back again it gets disappeared. When u click it again, it should show the XAP again without loading it again(as it has been downloaded once).
All works fine in IE. But in Firefox w...
How to remove a textbox and put the dropdown box in asp.net
And the value that is used before in textbox, now it should take from dropdown box
...
I need that some html in the area in the asp.net page that i am coding, is changed according to a string variable.
I was thinking about creating a label, and then change the text on it.
But the string variable contains something like:
<h2><p>Notify:</p> alert</h2>
So, I don't feel that give this to a label text is a good idea
How i ...
I am downloading a Pdf file created by crystal report and I download as
ReportDocument repDoc = ( ReportDocument ) System.Web.HttpContext.Current.Session["StudyReportCrystalDocument"];
// Stop buffering the response
Response.Buffer = false;
// Clear the response content and headers
Response.ClearContent(...
problem i have is that, the validation summary message(alert) is displayed twice. I cannot figure out the reason.
Please help.
Here is the code
function validate() //javascript function
{
if (typeof(Page_ClientValidate) == 'function')
{
var isPageValid = Page_ClientValidate();
if(isPageValid)
{
...
I use Silverlight Business Application (Application with RIA Services). Create new project. All setting by default.Compile and run it. In application I create new user. It's all right.
Then I add a chackbox to LoginWindow.xaml:
<CheckBox x:Name="isPersistent" Content="Remember me"/>
and modify LoginButton_Click method.
private v...
I am using Thread.sleep(5000) and then using Page.ClientScript.RegisterClientScriptBlock(type, key, script) function to open a new window.
I am getting 5 new windows but not in each 5 sec, they all appear together, after 25 sec. Here is my sample code:
for(int i=0;i<5;i++)
{
System.Threading.Thread.Sleep(5000);
string openPage =...
I'm have a web page where I have a div within which there is a somewhat complex DOM tree. It displays fine across most browsers(IE 6-8, FF 2.x-3.5.x, Chrome, Safari) but when I try to print the page I'm having some cross-browser problems, some work half some of the time and others don't work at all.
I had the idea that if I could send o...
Hi,
I have a wizard style interface where I need to collect data from users. I've been asked by my managers that the information is to be collected in a step by step type process.
I've decided to have a page.aspx with each step of the process as a separate user control. step1.ascx step2.ascx etc...
The way it works now, is that when t...
I have developed a server control inherited from WebControl that wraps any number of child controls and changes their output. The control class is very simple and only contains the RenderContents method.
Here is an example of how it has been placed on the page. (Not included: registration of control namespaces.) The intention here is th...
I've recently had an upswing in the number of people looking for web applications that look good too. I'm not much of a design guy though.
I need a tool that isn't as complex as Photoshop or Stylevision but will still help me to create a nice clean web UI (like stackoverflow for example) that can be then be integrated into a ASP.NET ma...
I have a web application with login in system, and basically keeps you logged in if a session is still set.
Basically the problem is after the user logs out(session is terminated and user redirected to the login page), you could still technically access the last page accessed if you retype the url but if you click on anything you are ...
Considering this example as a base example. I created the application but when I execute this application getting the following error.
The ProxyFactoryFactory was not configured.
Initialize 'proxyfactory.factory_class' property of the session-factory configuration section with one of the available NHibernate.ByteCode providers.
Ex...
Are there any best practices pertaining to the number of tables used in a dataset? In a relational database, all tables eventually relate, so how specific or broad should I be when creating my datasets?
Ex: If I have a dataset for product orders, should I also include the products tables, as well as the customers tables that the orders ...
Does anyone know how to find out (programatically) how much bytes are currently used by HttpRuntime.Cache?
...