Session in asp.net
Please I need a clear example about session in asp.net using c# for example(using session in log in operation) and thank you very much...... ...
Please I need a clear example about session in asp.net using c# for example(using session in log in operation) and thank you very much...... ...
I am just getting into more client-side stuff in ASP.NET using Javascript, and there's something that's bothering me that hopefully somebody can explain. Why is it that intellisense doesn't show the all of the attributes/properties of a .NET control? For example, a ListItem in a RadioButtonListControl: <asp:ListItem Value="1" Text="Ye...
In my website which is hosted by GoDaddy, I'm seeing slightly different behavior in how my URLs are being generated. In my development environment, the page loads just fine, but on the GoDaddy servers, a page cannot be found message is appearing. Rather than http://www.rsolberg.com/PhotoAlbums/ I am getting http://www.rsolberg.com/rsol...
When I load data in my code-behind, I find that often I want to run several javascript functions based on my data. It it more efficient to use a StringBuilder to compile all of my function calls and issue RegisterStartupScript one time, or is performance the same if I issue RegisterStartupScript everytime I need it? ...
Hi all, I'm rebuilding a site for a client at the moment. The current site is in classic asp, the rebuild is in asp.net 3.5. However, the client is insisting that all the page names remain exactly the same as he is afraid of losing his google ranking (which is currently pretty good). So, I'm trying to get ASP.Net to allow me to use ....
Hi, I've been trying to learn asp.net mvc using the videos posted on the asp.net website and I'm running into a problem doing unit testing. I have a very simple controller that uses Linq to SQL to get an array of objects: public ActionResult Index() { ViewData["Message"] = "Welcome to ASP.NET MVC!"; using (Tra...
I'm trying to load an assembly and instantiate a type contained on it using reflection. The assembly is included in the references and is copied to the Bin folder after publishing, but when debugging, the assembly is not found. I noticed that each assembly is deployed to a different temp folder for debug, something like: C:\Users\Raf...
Is it possible in anyway to bundle an ASP.Net as an installable application which users can download and install on their desktops without getting into the modalities of downloading IIS, etc & installing all that stuff. I do understand that IIS is compulsory for asp.net so how can i bundle it as part of the setup to save the business use...
I'm deploying a web site and I need to run large TSQL scripts contained in a single file in a production server where I don't have full access to SQL Server console and I can't connect remotely. The scripts is a mixed of table, stored procedures and views creations. All I can do is to run 1 group of TSQL sentences, like the ones for a st...
In the bug fixing of a small ASP.NET/C# web app I have made, I have encountered an OutOfMemoryException. There is no tips as to where to look as this is a compile time error. How can I diagnose this exception? I am assuming this is exactly where memory profiling comes into play? Any tips? Thanks ...
Summary I am after some advice on the easiest way to analyze simple data using SQL server and .net Details Really simple data - just need really simple way to analyze (with my simple brain) I have a SQL Server table: PKID (Int) ApplicationName (VarChar) MethodName (VarChar) TimeInMs (Integer) AdditionalInfo (VarChar) DateTime (Da...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> But I am getting this error... tried making them match and everything, what is it suppose to be? Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to ser...
Is there a way to check if the user of an application has added a profile box for that application? This is possible because I have seen it on iLike where a window is shown on the main page to ask the user if he/she wants to add a profile box if the user hasn't done so already. Any help would be appreciated. If this is not possible wi...
hi everyone i am using asp.net and xml to create a page but it gives me an error System.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'para'. **AdminWelcomeMsg.aspx** <%@ Page Language="C#" MasterPageFile="ContentMasterPage.master" Debug="true"%> <%@ Import Namespace="System.Xml"%>...
I don't understand how extending EventArgs is useful. public class ClickedEventArgs : EventArgs { int x; int y; public ClickedEventArgs (int x, int y) { this.x = x; this.y = y; } public int X { get { return x; } } public int Y { get { return y; } } } Code is above. How can i use this inheritance?Also; i want to...
How can i use any dataset form SQL in GoogleChart? i really like googleChart. But i want to use Gchart with dataset from Sql' query result in C#? ...
I created a web control, and it needs some data from its parent page. How can it access that data? Update: Thank you for the quick solutions, however they don't work for me. Visual Studio doesn't recognize the name of the page as a class. I took the name from where the class is defind: public partial class Apps_Site_Templates_CollegesM...
hi, maybe i am understanding it all wrong but as i understood the best way to protect your connection string is through encrypting it, now i got these questions. Question 1: will encryption work in shared hosting environment ? Question 2: if i have an FTP service can any user upload an ASPX file and retrieve the connection string th...
This is my Repeater <asp:Repeater ID="blogRepeater" runat="server"> <ItemTemplate> <br /> <asp:Image ID="Image1" runat="server" Height="56px" ImageUrl='<%= string.Format( My_Variable) %>' Width="64px" /> <asp:HyperLink ID="HyperLink2" runat=server NavigateUr...
I have Javascript code that does this: var oObjchbox = document.getElementById("CheckBox_" + countyId); The countyId comes from an image map that is pre-made. The checkboxes on the other hand are created by ASP.NET. My first try was to use an asp.repeater with asp:checkBox, but that did not do the trick since ASP.NET insists on crea...