Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:348462
More Search Options
RSS Available
Matching Posts
Binding data to form fields from an object - is FormView the way to go?
I've been developing in .NET for quite a while now, but the ASP.NET side of things is still quite new to me. I have a UserControl that exposes an object through a public property and I want to bind some of the fields in my control to properties of the object. For example, the object looks like this: public class MyData { public string Name { get ; set ; } public string Notes { get ; set ; } } I know I can bind the data to a TextBox in my UserControl like this: <asp:TextBox Text="<
Posted to
Data Presentation Controls
(Forum)
by
littlecharva
on 7/15/2008
Re: How to alert user that session is about to time out?
Try this: 1 < script type= "javascript" > 2 <!-- 3 window.onload = function() 4 { 5 var minutes = 10; 6 var timer = setTimeout(warnUser, 60000 * minutes); 7 } 8 function warnUser() 9 { 10 alert('Your session has expired'); 11 document.location = 'LoggedOut.aspx'; 12 } 13 //--> 14 </ script > 15 It should popup a requester after 10 minutes that will warn your user, and then redirect them to LoggedOut.aspx (remove line 11 if you don't want it to redirect). Littlecharva
Posted to
State Management
(Forum)
by
littlecharva
on 4/3/2007
Opening DB Connection in Application_Start()
Hi, I'm developing a web app that interfaces with a database using an assembly I've developed called DataAccess, which in turn uses another assembly I developed called Database to do the actual DB legwork. So for example in my code I can call objDataAccess.GetUserList(), which will provide the correct SQL string to my Database class to return a DataSet containing the UserList. At the moment I'm using code such as this on every page: using(DataAccess objDA = new DataAccess()) { objDA.DoStuff(); }
Posted to
State Management
(Forum)
by
littlecharva
on 4/3/2007
Re: Sharing data between controls?
Thanks pzolja2, I think we're using 2.0, but I find the interfaces option quite interesting as I've never really put them to use, and this seems like a good opportunity. Thanks again, Littlecharva
Posted to
Custom Server Controls
(Forum)
by
littlecharva
on 3/11/2007
Sharing data between controls?
Hi, I'm using the followin basic ASP.NET: <%@ Register TagPrefix="Test" Namespace="Test.Controls" Assembly="Test.Controls" %> <html> <body> <Test:ContentBox id="Content" runat=server/> </body> </html> The Custom Control simply opens an XML file loads some data and then renders itself depending upon the data. It works fine and I love it as it's nice and clean in the aspx file as you can see. I want to now add another control in that controls the title of the page
Posted to
Custom Server Controls
(Forum)
by
littlecharva
on 3/9/2007
Intellisense only working on some Classes and not others
Hi, I've done a good search on Google and on here and tried many of the solutions to fix a faulty Intellisense, but I get the feeling it's me that's doing something wrong rather than the Intellisense. I've just started using VS2005Pro as my IDE for editing my .cs Code Behind files after using TextPad before. I made the change as I want the benefit of Intellisense. I don't have my site set up as a project, I'm just editing each .cs file on it's own, as I don't want to hand anything else over to VS
Posted to
Visual Studio 2005
(Forum)
by
littlecharva
on 1/30/2007
I need to opposite of DataSet.GetXml()
Hi, I have an Xml document held in a string variable and need to populate a DataSet from it. There is no file to read from, and I don't fancy the idea of having to write the string to a temp file just to use DataSet.ReadXml() on it. Surely there's a simple way to read an Xml string into a DataSet? Littlecharva
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
littlecharva
on 1/26/2007
ASP.NET without using Visual Studio
Hi, I've been developing using classic ASP for about five years now, and have always used a relatively simple text editor to construct my code. I've been working with .NET for about two years, but only now do I feel comfortable to start using it in my day to day work. I've tried using VS.NET but I just don't like the way it works, so I'm continuing to use my text editor. The one thing I would like from VS.NET though is the Intellisense functionality. I'm assuming I'm not the only one who steers clear
Posted to
Getting Started
(Forum)
by
littlecharva
on 12/14/2005
Accessing the Attributes of a Control
Hi, I want to write a method that takes a Control object as its argument, so I can feed in a TextBox or a DropDownList for example. But within the method, I want to access the Control's Attributes: objControl.Attributes["readonly"] = "readonly"; But the Attributes property isn't available on an object of type Control, so I have to cast the object. So I could do: if(objControl.ToString() == "System.Web.UI.WebControls.TextBox") { ((TextBox)objControl).Attributes["readonly"] = "readonly"; } else if
Posted to
Web Forms
(Forum)
by
littlecharva
on 11/9/2005
Disabling Viewstate
Hi Guys, I'm creating a webform that will us AJAX to save its content back to the server, so I have no need at all for the Viewstate. I've disabled it by including EnableViewState="false" in my Page directive, but ASP.NET still puts a hidden __VIEWSTATE field in my form. Can I stop it from doing this? Little'un
Posted to
Web Forms
(Forum)
by
littlecharva
on 10/28/2005
Page 1 of 4 (31 items) 1
2
3
4
Next >
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Channel 9:
Channel 9 Live at PDC09: Doug McCuistion, NASA
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 3: Configuration
Channel 9:
Reading Debate with Bill Buxton
Channel 10:
Reading Debate with Bill Buxton
WindowsClient:
Build WPF Data Controls for Outlook Addins Easily with VS2010
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 2
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 1
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online