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:661091
More Search Options
RSS Available
Matching Posts
Re: Showing Property Value on Page or User Control
Excellent, thank you for the insight and that makes perfect sense if you use the design view. I tend to always just live in the HTML so I like the method you posted (and then I just use the Property value which worked perfect). I like that I don't have to set the value in the code behind for a user set property. Again, thanks for you help and your insight, it's much appreciated! < hr style =" border-top-style : solid ; vertical-align : middle ; border-top-width : 1px ; border-color
Posted to
Web Forms
(Forum)
by
Jinx101
on 9/26/2009
Re: Showing Property Value on Page or User Control
Thanks for the response. It's much appreciated. Looking at the two options, why do you see the literal as a better option? I'm curious to learn. :)
Posted to
Web Forms
(Forum)
by
Jinx101
on 9/25/2009
Showing Property Value on Page or User Control
So, I have a User Control that I've created and added some properties onto. Currently, when the property is set I am changing the value of a literal that is on the page. I was wondering if there was a command like the DataBinder that would allow you to put these values on the page without the Literal's and/or if there was a preferred method for doing this? Private _fontSize As Integer = 12 ''' <summary> ''' The font size to use for the control. '''
Posted to
Web Forms
(Forum)
by
Jinx101
on 9/24/2009
Re: Inputbox displayed behind browser window
I don't think it stops execution on the server.. I think a local dialog is triggered before the browser officials posts back. I'd be surprised if it were VbScript because it also works in FireFox, can FireFox run VbScript (I assumed not)?... but it does popup a box behind the window there also.. try this for example.. put a literal and a button on the form and use this code: Dim buf As String = InputBox("Enter a string") Literal1.Text = buf When you click the button, It appears
Posted to
Web Forms
(Forum)
by
Jinx101
on 8/14/2009
UserControl Custom Property Question
I've created a custom data control that inherits from System.Web.UI.UserControl. Now, I've added a property, I'll include an example below (I saw something almost exactly like this with another variable on MSDN's site in a UserControl example). The property's value held by _executionTimePageLifeCycle is always the default value when it's referenced outside of the control.. I expect that the value goes away after the page life cycle is complete but I assumed it would keep it's
Posted to
Web Forms
(Forum)
by
Jinx101
on 8/14/2009
Re: UserControl Custom Property Question
Both of those responses help and it makes sense for properties I want to save across PostBacks, I now understand how shared works. :) Here's a follow up on this case... I don't necessarly need the value saved across page postbacks (in this instance).. but I do want it to be available at least for the life of the initial PostBack (which means it just lives and is accessible from when the page begins to when it ends on 1 postback).. is that possible?
Posted to
Web Forms
(Forum)
by
Jinx101
on 8/14/2009
Re: UserControl Custom Property Question
First, I want to thank everyone for their help. Everything posted helped me understand the issue and how this works. Basically, I screwed something up which is why I couldn't understand why the private variable didn't have a value for at least that PostBack. What I did misinterpret the controls life cycle. I had a StopWatch ending it's timing inside the unload event of the control as a test (it started in the page pre_load).. then I referenced that from the main page.. but at the time
Posted to
Web Forms
(Forum)
by
Jinx101
on 8/14/2009
Re: Inputbox displayed behind browser window
Actually, that's not true. He's referring to the InputBox function that is available when you use VB.Net as the the language for ASP.Net (there's also a MsgBox command)... these ARE available and he's not talking about a WinForms app. These do not prompt a box on the server (it's _not_ executing a client app on the server). They send the JavaScript to the browser to do this (for instance, the MsgBox sends something like the 'alert' command to the browser). The problem
Posted to
Web Forms
(Forum)
by
Jinx101
on 6/25/2009
Re: Good "business cases" to move from vb.net to C#
The whole argument you've used boils down to personal preference and could be turned around in the other direction. Coming from a shop that implements both Vb.Net and C# I haven't got a problem switching between the two and they're both on my resume. If you know the framework you can accomplish pretty much any application you need in either language. Granted, there are some things that each have that would be nice... for instance C# can run unsafe code which has huge plusses (image manipulation
Posted to
C#
(Forum)
by
Jinx101
on 11/27/2007
Re: Accessing Argument from __doPostBack
Whenever I would print the contents of the 'e as EventArgs' it would just say System.EventArgs... I couldn't find the appropriate class to cast it into when I investigated if that was the issue.
Posted to
Web Forms
(Forum)
by
Jinx101
on 1/9/2007
Page 1 of 2 (15 items) 1
2
Next >
Silverlight:
4 Calendars & Plans for 2010 / 5770
ASP.NET:
ASP.NET MVC 2 and Visual Studio 2010
ASP.NET:
Moving your ASP.NET Application to Windows Azure – Part II
Silverlight:
HVP – Core Scaffolding and Updated News
Channel 9:
TWC9: 2009 - The Year in Review
ASP.NET:
Tip#100: Did you know… How to view ASP.NET trace information?
ASP.NET:
Passing anonymous objects to MVC views and accessing them using dynamic
Channel 9:
Channel 9 Live at PDC09: Coding 4 Fun
Channel 9:
Channel 9 Live at PDC09: Stephen Toub
WindowsClient:
Mouse Gestures for Internet Explorer
Channel 9:
Controlling concurrency in Rx
Channel 9:
Dev Tools Ecosystem Summit Videos Available
WindowsClient:
Using Cerebrata's Cloud Storage Studio To Download IIS logs from Multiple Instances of Windows Azure
TechNet Edge:
TechNet Radio: Office 2007 Setup and Configuration (Part 1)
Channel 10:
How-To: Listen to Your Zune Pass Music on Your WinMo Phone
Channel 10:
Share Your Screen with SharedView
Channel 10:
Get Microsoft Tinker Game For Free
Channel 10:
LG eXpo WinMo 6.5 Unboxing Video
Channel 9:
ADFS 2.0 RC is Here!
Channel 10:
Bing Reference Updated with New Sidebar Features
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online