I have a database table TravelRequest that contains, amongst other things, the fields SignOffName and SignOffDate. I have a table adapter TravelRequestTable based on this table. I have a DetailsView control which uses this via an ObjectDataSource. Should be all fairly standard stuff.
What I want to do is add a property called SignOffNam...
I need a way to tell ASP.NET "Kill the current session and start over with a brand new one" before/after a redirect to a page.
Here's what I'm trying to do:
1) Detect when a session is expired in the master page (or Global.asax) of an ASP.NET application.
2) If the session is expired, redirect the user to a page telling them that thei...
I have the pattern User/{domain}/{username} set up via Routing. Everything works except for one thing. I can't figure out how to get the domain and username variables passed to my redirected page. Below is my GetHttpHandler method from my IRouteHandler implementation.
public IHttpHandler GetHttpHandler(RequestContext requestContext)...
I've been learning some new features of ASP.NET beyond my current level of comfort, and I'm trying to figure out exactly how custom events can fit in, from a design standpoint. I know how they work, and the observer/subscriber pattern, but it seems that custom events aren't talked about much. It seems like an entire app could be built fr...
I have a page that sites in a first level folder from my root called default.aspx.
I'm redirected to that page like as so:
I have an initial root Default.aspx that holds a login button
User clicks the login button and it redirects to Facebook Login
After logging in, Facebook redirects back to my first level Default.aspx (sits inside r...
Okay so, I have a form that is posting using ajax...
<% using(Ajax.BeginForm(new AjaxOptions() { OnBegin="onBegin", OnSuccess = "onSuccess", OnFailure="onFailure" })) { %>
On the server side I am passing back from the controller a Json object. Now, when the OnSuccess event fires I can get to the Json object by using "result.get_respo...
meaning is there a difference between
<WebService(Namespace:="http://theurl.com/")>
and
<WebService(Namespace:="http://www.theurl.com/")>
?
...
Hello,
I am trying to implement a master details solution using the jQuery Tabs. Two tabs, first tab contains Northwind Customers, selecting customer command should display tab2 with the orders for the customer.
So far, I have come to the conclusion that it cannot be done without using some sort of Ajax. Am I correct?
I got some point...
I'm trying to test this out on my site but it doesn't quite work because I have to be logged in to go to this page.
Is there a configuration setting that I haven't set or set incorrectly?
EDIT: rm's answer led me to this link from Microsoft.
...
Hi
I have an IScriptControl that needs to persist data from the user across postbacks. Currently I'm writing the data to a hidden field, but I'd like to switch to ControlState.
So my question is: Is it possible to update ControlState data from client script?
Thanks,
Aleko
...
I usually only work on system admin projects and software packaging and have little knowledge of web technologies, but I've been given the task of building a simple website that searches an SQL 2005 database from the users input and lists the results. That's it.
Can anybody help me out with some sample code or some such? Since we're a p...
Suppose I define a configuration section in an ASP.NET web.config like:
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web">
<section name="MySettings" type="MyCompany.MyProject.Configuration.MySettings" allowLocation="true" allowDefinition="Everywhere" restartOnExternalChanges="false" />
...
I have an ASP.NET page A that uses a data layer assembly DAL. I reference the DAL assembly with a
<%@ Assembly Name="NGC.DAL" %> tag since there is no project to add the reference to. The assembly itself I copied to the pages' bin folder.
The assembly DAL is a project that references System and System.Data.
Now when A calls a method in...
I was refactoring some code, and part of it included moving it from VB.Net to C#.
The old code declared a member like this:
Protected viewMode As New WebControl
The new code, I eventually got working, like this:
protected WebControl _viewMode = new WebControl(HtmlTextWriterTag.Span);
I can presume that the "New" keyword mean...
Our ASP.NET/C# lets users edit and manage Word (OpenXML) documents that are hosted on a server. I am using client-side VBScript functions to handle some of the editing functions including saving the document to a folder on the server. For the save functionality, I am using the following function call :
Document.SaveAs "http://server/sav...
"apparently it works"
Can you name reasons beyond good practices not to give these two:
connectionStringName and Membership Provider name the same string value?
could this be an issue?
as in:
<membership defaultProvider="MySqlConnection" userIsOnlineTimeWindow="45">
<providers>
<clear />
<add name...
I want to use javascript to detect the mouse position once the mousedown event has fired. It appears I am not getting an onmousemove event when the left button is held down. The cursor is changing to some circle with a cross through it.
My whole goal is to detect the start position of the cursor on mousedown and change the top left st...
I have a .NET web service which is publically accessible since it needs to be accessible via Flex. It currently only has read operations.
http://www.example.com/webservices/weather.asmx?wsdl
I want to add some admin only web methods to the same webservice such as UpdateWeather and StartRainstorm. Obviously I don't want my end user ...
What is the fastest way to execute a method on an ASP.NET website?
The scenario is pretty simple: I have a method which should be executed when a web page is hit. Nothing else is happening on the page, the only rendered output is a "done" message. I want the processing to be as fast as possible.
Every single hit is unique, so caching i...
Will using MVC enabled Telerik controls with
ASP.NET MVC violate the MVC model?
And if not, what kind of performance
hit (versus features and development speed) will there be with using
Telerik controls over manually
coding the HTML?
...