how to get url of the current page in c#
Hello , Can anyone help out me in getting the URL of the current working page of asp .net C#,... thank you ...
Hello , Can anyone help out me in getting the URL of the current working page of asp .net C#,... thank you ...
I have created a server control out of the HtmlButton with validation disabled. <button runat="server" causesvalidation="false" /> NOT the input button!!! <input type="button" runat="server /> I have a bunch of validators on my form and when i click the HtmlButton they still run the validators. If I use the input button there is no...
I've written an application that handles most exceptions gracefully, with the page's design intact and a pretty error message. My application catches them all in the Page_Error event and there adds the exception to HttpContext.Curent.Context.Items and then does a Server.Transfer to an Error.aspx page. I find this to be the only viable so...
hi i want to insert a new row to grid view while i click new button with out using the sqldatasource. and also how to edit, update, and delete rows from grid view. pls help me [visual studio 2008 asp.net with c#] thanks thiru ...
This question is kind of related to Handle URI hacking gracefully in ASP.NET in that it's too about how to best handle exceptions that occur during an ASP.NET request lifecycle. I've found a way to handle most exceptions gracefully, but then I've found that some exceptions occur so late in the request that there's no way to do stuff like...
Can anyone help me how to create a hierarchical Ultrawebgrid in ASP.net using C#... I'm very new to this... So i need some basics and sample codes .. Can u help me ? ...
Trying to find some examples on the intertubes. I am thinking of state or strategy pattern but if anyone has any war stories, examples or resources that they could point me to it would be appreciated. I don't/can't use windows workflow. My example is that i have a complex wizard that changes the state of the process based on what user ...
friens, I Have a grid of 100 or more text boxes (HTML OR ASP.NET) each will be containing a text value of fixed length, need ALL of these passed back to the back end form for mass updating of the database.. i can do this by simple going through each of the controls .text property in code behind however that makes the code to big and u...
I'm interested in wed development and web 2.0 but I'm a real beginner, so I'm reading a lot about the technologies involved. I'm beginning to move towards ASP.NET because of the great free resources for learning. However, as I begin to work in "Visual Web Developer Express" I notice that I need to understand ASP and C# or VB. Two techno...
I'm searching for a good ASP.NET Unit Testing tool. Googling gives me some tools, but I would like to get started with a good tool. Any experience with these tools? Is there a way to do ASP.NET Unit Tests with the build-in Unit Testing in Visual Studio 2008? ...
I have a problem with my ASP.NET application. It has been developed for about a year or so without disabling Debug mode. I wanted to test if it works without debug and it isn't but, when I set debug="true", it works fine. When I try to open application for the first time it gives me "Server not available" error. In the events log I have...
Which one would you choose for a small ASP.NET 2.0 web site with little traffic? I have no experience with either of them, but my provider wants me to choose one. In fact, I have no experience in ASP.NET too, I am just starting to learn, using VS2008 Professional. Thank you, Petr ...
I am trying to deploy a web application to a remote server over which i have no control. If I use FTP deployment from visual studio, I manage to get the files onto the server, but when I point my browser to the server, it gives me the standand error page: Server Error in '/' Application. Runtime Error Description: An application...
How can we refresh a web user control automatically without a page postback in asp.net 2.0? i have tried meta tags in controls head tag but it also refreshes the whole page. ...
I have installed Visual Web Developer 2008, the .net framework 3.5 but when i try to include System.Web.Routing intellisense can't find it and if i type it by hand it says it does not exist.. any suggestions? ...
I have been doing some reading on this subject, but I'm curious to see what the best ways are to optimize your use of the ASP.NET cache and what some of the tips are in regards to how to determine what should and should not go in the cache. Also, are there any rules of thumb for determining how long something should say in the cache? ...
I really like the way ASP.NET MVC works. I'd love to implement it on all new web projects moving forward, but I hit a snag in a prototype the other day that I really haven't found a good solution for, so I ask you, how would you design an MVC app that doesn't fit the typical REST pattern? As an example, the prototype I was designing woul...
When I write a code like below, I take this error message: "The query operator 'ElementAtOrDefault' is not supported." How can I fix it? Dim tmpQuestion As New UIData Dim strViews = From t In tmpQuestion.LU_QUESTIONs _ Where t.ID_QUESTION = Request.QueryString("IdQuestion") _ Select t ...
I am using the Membership features in ASP .NET 2.0. I was wondering how I would implement a Forgot your password page when my application is configured to allow only authenticated users. Right now the only page that can be accessed is the login page. I want un-athenticated users to be also allowed to access the forgot your password pa...
I have created my own Role Provider because I found the one that ASP.Net provides to be way too bulky in terms of tables in the database. I found implementing a custom RoleProvider to be quite easy. My only problem is that right now I cannot have multiple roles for a page. I saw somewhere that at the top of your class you need to "anota...