Hi,
In my project I have configured .NET's sessions to go into database.
I also have a global.asax which implements Session_Start().
In Session_Start() I write three things to the session:
The time the session started.
The user's host address.
A serializable device object wrapping the user's agent.
The problem is now that users whic...
Here's an interesting problem. I have an ETL script written in c# that I have been running manually on a somewhat regular basis. It is used to update my web app's database.
I want to automate the ETL process AND create an interface for the web app admins to manually start the ETL process.
I could have sql server kick off the ETL proce...
Here's my full markup:
<%@page Title="" Language="VB" MasterPageFile="~/Master Pages/MasterPage.master" AutoEventWireup="false" CodeFile="Statistics.aspx.vb" Inherits="Statistics" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisua...
I would like to know if it's a good idea to store a delegate of a method sitting in a aspx page into the session
the project that I work on does it and I have a bad feeling about it
...
<asp:DataList ID="ItemsList" RepeatDirection="Vertical" runat="server">
<ItemTemplate>
<asp:LinkButton
ID="SecondLevelItem" runat="server" CommandName="second"
OnCommand="SecondLevelItem_Onclick" CommandArgument="<%# Container.DataItem %>"
Text="<%# Container...
Is there a way to return to the previous view without having to record all the parameters that were used to get to the view in question. Consider this situation. You have a search screen with input parameters, you press search and get results displayed on the page. You click on one item to get a detailed look which redirects you to a new...
I have a TemplateField in a GridView in an UpdatePanel with a button called btnDelete. Rather than the standard OnClientClick="return confirm('Are you sure?')" I'd like to use jQuery Dialog.
So far, I'm able to set the jQuery using btnDelete.Attributes["onclick"] and setting the jQuery Dialog code in the code-behind. However, it posts b...
I want to use System.Management.ManagementScope to query the list of currently logged in users.
This will be part of a larger application that we will deploy to our customers, so it needs to be easy to setup and highly reliable.
Is ManagementScope/WMI a good fit? Should it always be available to query on most OSes? Are there any secur...
What ASP.NET page lifecycle event can I write code in to determine the size of the viewstate that being sent out? Also, is it possible to determine the size without parsing through the rendered HTML (like a property on the page object) or is parsing the only way?
What I'd like to do is log the sizes, specifically if they cross a certai...
I have a ScriptControl which does a Callback to my page. Success and error responses from the server work fine and go to my client handler functions. However, if I stop the web server, then the request can't go through (should time out), but no client functions are ever called.
I'm defining my handler functions through Page.ClientScri...
I have a Single Sign-on solution which is working great in our test environment. It uses Cross-Sub-Domain cookies to share the authentication ticket between 2 web applications. Sign-on is done only on one of the applications and on the second site the user is authenticated by the cookie created by the first site.
The problem is that wh...
Here is the scenario. I connect to my server from a random computer to do a couple of updates through FTP in Visual Studio 2010. I open up the page I wanted to edit which has links to several very large files. It seems the intellisense goes out to look for these files. Visual Studio will then be stuck trying to find these very large ...
HI,
I have a table with 3 columns Itemid(int),Itemname(string),ItemDesc(string).. Im trying to use a radpanelbar to display this information, where the bar initially shows the item name and on clik/expansion it will show the item description.. I tried looking at the examples on telerik site but didnt understand the point of datafieldid ...
While writing an asp.net project i may have this url for testing/debugging
http://localhost:1234/
I have code that takes in account of subdomains. Can i make visual studios call the same code with
http://anysub.localhost:1234/
...
From Scottgu's post i got the code to Serialize a collection to JSON object.(i)How to convert the JSON object back to List? (ii) I did not find JavaScriptserializer in System.Runtime.Serialization will the only code work for VS 2010?
ScottGu's snippet
namespace ScottGuHelper.JSON
{
public static class JSONHelper
{
public sta...
A lot of time can pass between the moment a stack trace is generated and the moment the stack trace is thoroughly investigated. During that time, a lot can happen to the file in question, sometimes obscuring the original error. The error might have been fixed in the meantime (overlapping bugs).
Is it possible to get Stacktraces that sho...
Can you recommend any tools? Should we build our own? Should we create the sitemap manually?
...
Hi All,
I am trying to pass a SqlParameter to a SqlDataSource.
The SqlDataSource has a condition ...Where A.PERS_LNAME = @PERS_LNAME
Now coming to configuring SqlDataSource, I click on 'Configure Data Source' and reach till the 'Define Parameters' step.
I selected 'Parameter Source' = Control, but I don't see the <asp:Table>'s ID's ...
I have a webpage that needs to selectively show or hide a substantial number of controls. Each control's visibility is determined based on which of 3 conditions are true.
So, for example, given the conditions A, B, and C;
Control1 needs to be visible only when A and B are true and C is false.
Control2 needs to be visible only when B a...
Hi,
So I have an asp.net 2.0 web application and I created a web service to post some data from a web form to a database. I now want to use jQuery/AJAX to post the data to the server but since the application is 2.0 and not 3.5+ I don't have the System.Web.Script.Services.ScriptService namespace which seems to be needed (I am posting JS...