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:652364
More Search Options
RSS Available
Matching Posts
Re: access methods/props of user control that was dynamically loaded ?
The 'MyControl' in my code would be the type of your user control. Whatever type you defined it as. Since the myctl in my example is declared as a MyControl type I can access any of the custom properties or methods I defined. So, for example, in my user control I would have my .ascx file with the markup and then (assuming seperate code and markup) my .asxc.cs file with my code. In my .ascx.cs file I might have: class MyControl : UserControl { // my customer properties and methods here. }
Posted to
Web Forms
(Forum)
by
bpag
on 10/6/2008
Re: access methods/props of user control that was dynamically loaded ?
You can do it this way: MyControl myctl = LoadControl("webusercontrol.ascx") as MyControl; myctl.myProp = "I am a custom property."; myPanel.Controls.Add(myctl);
Posted to
Web Forms
(Forum)
by
bpag
on 10/6/2008
Re: Inserting form data but where is the code-behind or button action? Is it a DLL?
Your best is to find the original source for the site. Presumably whoever created it in the first place kept it around somewhere. If that isn't possible you could use a tool like Lutz Roeder's reflector (go to http://www.lutzroeder.com/ and choose reflector) to pull the code-behind source code out of the DLL the page refers to and copy it into a new code behind.You would have to alter the .aspx page because the process of compiling the site down alters the mark up page somewhat (particularly
Posted to
Web Forms
(Forum)
by
bpag
on 10/3/2008
Re: Inserting form data but where is the code-behind or button action? Is it a DLL?
The answer to this is that this is not the source page. Whoever created this in the first place had a markup page and a code behind page and they then built the site in visual studio or with msbuild and the page you are looking at along with the dll are what resulted from the build. If you load a web site in studio and right click on the web and do "Publish Web Site" you will get a dialog. In there you give it the directory you want to publish to and select some options. If you select the
Posted to
Web Forms
(Forum)
by
bpag
on 10/2/2008
Re: IE Developer Toolbar & WebControl.Enabled
The behavior you're seeing is no different than if you had javascript in your page that would enable that textbox based on some user action on the page. For example, imagine that you have a page with 3 radio buttons on it and if one of the radio buttons is selected than you want the user to enter some text into a textbox. In this scenario the page may load with the textbox disabled because the radio button associated with it is not selected. But then if the user selects that radio button you
Posted to
Web Forms
(Forum)
by
bpag
on 9/30/2008
Re: How to split this string?
How about: string[] ips = textBox1.Text.Split(' '); Now ips[0] would be "111.111.111.111" and ips[1] would be "222.222.222.222"
Posted to
Web Forms
(Forum)
by
bpag
on 4/29/2008
Re: ASP.NET (C#) Click event handler problem
Dynamic controls have to be recreated each postback so with your first version of the code when the second button is clicked your page_load is running which is creating button1 (this is why button1 shows up again) but button1 was not clicked so button2 is never added again so even though button2 was clicked the event handler is never fired because you never add button2 back into the page. With the second version of the code you add button1 only on initial load so when you click it and post back you
Posted to
Web Forms
(Forum)
by
bpag
on 4/25/2008
Re: Unrecognized namespace error
Why don't you just make the tag <TESTTHIS></TESTTHIS> without the colon that way ASP.Net won't try to interpret it as a server control? It will still render as a tag on the page sent to the browser but browsers should just ignore it.
Posted to
Web Forms
(Forum)
by
bpag
on 4/21/2008
Re: getting client time zone
Yup, the javascript function returns the difference between the user's timezone and GMT so if you return that to the server as I mentioned than you have it and can use to adjust times or display the difference on the UI (like GMT + 5) if that is what you want to do.
Posted to
Web Forms
(Forum)
by
bpag
on 4/21/2008
Re: getting client time zone
This really depends on what you want. Do you want the name of the actual timezone or do you just want to be able to adjust times in your UI so they show in the user's time? For showing times in the user's time you can use javascript to get the difference between the user's time and UTC and then on the server-side use that to adjust any time you want to display. For example, this is what I did: In my login page (if you don't have one you could do this in any or all pages but I did
Posted to
Web Forms
(Forum)
by
bpag
on 4/17/2008
Page 1 of 54 (533 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online