CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 1/3/2005 3:06:31 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Sundance Kid
Asp.Net User
Location of web control(s) in Whidbey1/3/2005 3:06:31 PM

0/0

Hi all.

I installed VS 2005. I can determine the controls on the web page but I would like the POSITION of the control. Top & Left etc.

Everything works, but I can't find position / location etc.

IContainer r;
System.Web.UI.WebControls.TextBox txt;
System.Web.UI.Control rx;

r = iiSite.Component.Site.Container;
System.Collections.IEnumerator myEnumerator = r.Components.GetEnumerator();
while (myEnumerator.MoveNext())
{
MessageBox.Show(myEnumerator.Current.ToString());
if (myEnumerator.Current.ToString() == "System.Web.UI.WebControls.TextBox")
{
txt = (System.Web.UI.WebControls.TextBox)myEnumerator.Current;
MessageBox.Show(
}
}

Thanks!


Fredrik N
Asp.Net User
Re: Location of web control(s) in Whidbey1/3/2005 4:18:44 PM

0/0

To get the position of the control, you have to use client-side script. The server-side code has not idea of the position. If you have set the position of the control with the Style attribute (Controls that inherits the WebControl class has the Style property), you can get the properties of the Style attribute from the Style property.

The MessageBox will oinly wotk for Win Forms and not for WebForms. If you want to use a MessageBox, you have to use client-side script.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
Sundance Kid
Asp.Net User
Re: Location of web control(s) in Whidbey1/4/2005 7:37:37 AM

0/0

Thanks!
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft .NET: Kick Start Authors: Hitesh Seth, Pages: 484, Published: 2004
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
A First Look at ASP.NET V. 2.0 Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 498, Published: 2004
ASP. NET V. 2. 0-the Beta Version: The Beta Version Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 620, Published: 2004
Visual Studio Hacks: Tips & Tools for Turbocharging the IDE Authors: James Avery, Pages: 478, Published: 2005

Web:
INETA's Topic Choice: Data Source Controls in Whidbey Dec 17, 2008 ... INETA's Topic Choice: Data Source Controls in Whidbey. Part 1: Using SqlDataSource to quickly build data-centric Web sites. By: Paul Ballard ...
CoDe Magazine - Article: Exploring New WinForm Controls in VS .NET ... Whidbey includes several new controls that provide advanced layout services. ... If True, the WebBrowser control can successfully navigate to a previous location . ... code contained within a Web page loaded in the WebBrowser control. ...
Microsoft SharePoint Designer Team Blog : Best Practice to create ... SharePoint Designer leverages Whidbey ControlDesigner framework to let WSS .... The Panel Web control, for example, has the HTML and Web controls that ...
Whidbey ASP.NET V2.0 New Features - ExtremeExperts On the target page, you will be able to access all of the controls, viewstate, etc. of the page that caused the web form post. Whidbey passes a page object ...
NEEDSCRIPTS :: Using the Security Controls in ASP.NET Whidbey ... NET Whidbey is released and discusses about the different types of web controls that are provided by Whidbey. The author clearly explains about utilizing ...
Steven Smith : Whidbey Controls in App_Code Folder Apr 20, 2005 ... ... ... ... re: Whidbey Controls in App_Code Folder ...
Exploring New WinForm Controls in VS .NET Whidbey NET and really follows through with the new controls that appear in the Toolbox of the alpha build of Whidbey. The new controls include everything from ...
Master and Content Pages in Whidbey | O'Reilly Media NET 2.0 is the reduction of the amount of coding needed to write your web application. We will look at some new data controls in Whidbey in the next article ...
CodeProject: Article 2 - Display data using DataSet and DataGrid ... May 9, 2004 ... Web.UI.WebControls namespace is used for including this object into your application. The assembly name used for creating the DataGrid ... NET Whidbey. Add the DataGrid control to your form. .... Location: United States ...
ASP.NET Whidbey Blog Controls at PDC - ScottGu's Blog Nikhil and Andrew Lin have been working on some cool new Blogging controls for Whidbey in preparation for Nikhil's Building ASP.NET Server Controls talks at ...




Search This Site:










static methods, performance issue?

how to downlaod modules

how to use my own menu control in portal app

problems copiying the web to my personal p.c.

binding data from a dataset with multiple tables

web farm / iis 6 remote storage

adding custom fields to createuserwisard in membership

vs 2005 not showing asp controls

web templates in photoshop!

using webmatrix is caching the code

vb.net convert to csharp

site search

getting started building a basic shopping cart site in commerce server

saving css in database

sitemap control with subdomain

edit module which replicate by using copytab with contents

help: problem viewing asp pages in design view for web projects created w/ 3rd party tools

could not access 'cdo.message' object

difficult question for a novice...

static html export

error pages & google web bot

form post bug in release candidate

accessing original querystring on url used to enter the portal

redirect a form

variable date

requiredfieldvaliator is not working

new to programing..?

httpcompress question

session variable/environment problem. any input appreciate.

re:bulkemail sender

 
All Times Are GMT