CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 11/3/2003 10:11:08 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 29 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
joelms2001
Asp.Net User
assembly, second try.11/3/2003 10:11:08 AM

0/0

Hi!

I'm trying a new approach for my previous post http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=381596


I would like to have a dll, which is registered in the aspx page, such as,


<%@ Register TagPrefix="xpto" Namespace="SomeNamespace" Assembly="somedllfile" %>


This dll accepts some properties that define which connection to use, which DB, table and fields to retrieve.
What I'm looking for is that this dll returns a datagrid.

So, where in the aspx I have

<xpto:DisplayProducts runat="server" />

I would like that a datagrid containing the products is displayed.


I have tried some different approaches, including "HtmlTextWriter output", "Page.Controls.Add" but obviously
without success.
Any suggestion?

Thank you for your time,
Joel
russnem
Asp.Net User
Re: assembly, second try.11/8/2003 6:53:59 PM

0/0

What does your method in the DLL return? A string?

Have you considered creating a web custom control and subclassing the DataGrid?
Kingherc
Asp.Net User
Re: assembly, second try.11/9/2003 10:19:00 AM

0/0

This is how I make my controls:

They inherit from the Control class. In the CreateChildControls(), i declare new asp.net objects, i modify them and the load them up. In this way, they load up in the page.
For example here's a simple control that loads up a datagrid:

------------------------------------------------------------------------
Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Collections.Specialized
Imports System.Text
Imports System.IO
Imports System.Data
Imports System.Data.Oledb
Imports System.Xml
Imports Microsoft.VisualBasic

Namespace TPControls


Public Class Displayor
Inherits Control
Implements INamingContainer

Protected Overrides Sub CreateChildControls()
Dim newDtGrid As System.Web.UI.WebControls.DataGrid = new System.Web.UI.WebControls.DataGrid()
'Here modify its properties, or add tables and rows u want, or call another sub that searches the database and add tables to it from a database.
newDtGrid.AllowPaging = True
'To Add the control to the page after you're done, use this line:
Me.Controls.Add(newDtGrid)
End Sub

End Class
russnem
Asp.Net User
Re: assembly, second try.11/9/2003 7:24:40 PM

0/0

What I'm suggesting is that instead of subclassing Control, subclass DataGrid. Have you tried something like that?
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Inter-Governmental Maritime Consultative Organization 1961 Assembly Resolutions and Other Decisions: (resolutions 021-043): Assembly: Second Session, 5- 14 April 1961 Authors: International Maritime Organization, Organización Marítima Internacional Asamblea, Pages: 21, Published: 1961
Resolutions and Other Decisions of the 22nd Assembly: Resolutions 902-935 : 19-30 November 2001. Authors: Assembly, International Maritime Organization, Pages: 0, Published: 2002

Web:
In Kuwait, Female Candidates Make a Second Try May 14, 2008 ... In Kuwait, Female Candidates Make a Second Try ... She wants to join the National Assembly because she feels women should be involved in the ...
Ian Lance Taylor - Re: Second Try: Assembly Programmer Contributions Re: Second Try: Assembly Programmer Contributions. From: Ian Lance Taylor ; To: Redefined Horizons UN General Assembly - Second Committee - Economic and Financial In accordance with the on-going process of revitalization of the General Assembly, the Second Committee is engaged in updating its working methods and ...
LIST OF MEMBERS OF MEGHALAYA LEGISLATIVE ASSEMBLY SECOND ASSEMBLY ... SECOND ASSEMBLY. (1978 – 1983). Serial. No. Name of Members. and. Party from which elected. Constituency by which. elected. 1. Shri Akrammozzaman (INC) ...
Amazon.com: Sixty-first General Assembly: Second Committee ... Amazon.com: Sixty-first General Assembly: Second Committee (economic and financial).(on economic situation of developing countries and on the environmental ...
Speeches November 2002 - 57th Session of the General Assembly ... It is a privilege for me to once again have this opportunity to address the General Assembly's Second Committee on behalf of the United Nations Environment ...
UNCTAD.ORG >> Lakshmi Puri, Acting Deputy Secretary-General >> UN ... UN General Assembly, Second Committee, 63rd Session New York ... engine powering trade, development and the second wave of globalization is on the horizon. ...
Sixty-first General Assembly: Second Committee | UN Chronicle ... Sixty-first General Assembly: Second Committee from UN Chronicle in News provided free by Find Articles.
Sixty-first General Assembly: Second Committee (01-MAR-07) UN ... The Second Committee continued to tackle the enormous dilemmas of economic inequality, poverty and environmental degradation.
Statements from the 63 General Assembly Second Committee PR#254, Statement by Ambassador T. Vance McMahan, U.S. Representative to the Economic and Social Council, in the Second Committee of the General Assembly in ...

Videos:
Second Try a Charm for Assemblymember Bill Monning (Sacramento) Nearly two decades after his first and only other - run for State Assembly, Assemblymember Bill Monning (D-Santa Cruz) was sworn in ...
Homecoming Assembly 2nd try homecoming assembly 2nd try
HoneyBee King 2 2nd try Hovering - Indoor This is my 2nd try at hovering with ny HoneyBee King2 equipped with a 3800kv Brushless Motor, 25A Brushless ESC, HH Gyro, 2200mah LiPo, and a ...
Demoscene: tAAt - Porrasturvat for Stairstation 360 Live ... tAAt 2005 - Porrasturvat for Stairstation 360 Live Revolution 2nd in Assembly'2005 Short Film competition. "tAAt Games: Challenge Nothing ...
What is a feed jam? - Improved Tokarev pistol DESCRIPTION: The TT33 (for those who are not familiar with it) is a simplified M 1911 design. So why is it a damn Tokarev in 9x19 and not our good ...
U.F.O ( Jinn ) during 9 - 11 accelerates to 2727mph in a ... THE HOLY QURAN Surah 72. Al - Jinn ( The Jinn, Sprites ) 1.Say: It has been revealed to me that a company of Jinns listened (to the Qur'an ...
India Night 2006 MCs - 06/11 - 24 Intermission Video This is the second of three "24" themed videos. In this video, the MCs try to find out who planted the chutney bomb. UIUC's India Night is one ...
SECOND REALITY SPOOF: 14ndreal.exe (90s DOS Graphics Demo) This is the second of many DOS demos from the 1990s demo scene that I'm going to share via YouTube. This one is called "14nd Reality," a spoof ...
The Men of the Great Assembly and The Zugoth A continuation of the "Oral Torah" series. Addresses the history of the Second Temple period, beginning with Nehemiah and Ezra, the expanded ...
CS Lewis Hated the Psalms CS Lewis said some Psalms are "diabolical", "petty", "vulgar", "terrible" and "contemptible". Lewis assumed that the imprecatory Psalms are ...




Search This Site:










using an expression validator in my custom control

accessing custom composite control layout properties

writing a client function shared by similar validators

modeless dialog in asp.net

rendering problem

include links to stylesheets in usercontrols ?

framewrok 2.0 hosting

calling javascript function oncollapse of treeview control

usercontrol problem

knowing if a component is at design time or run time

handling <% %> code blocks in customer server controls

can i get hosting suggestions for a new guy using sql express?

licensing question...most likely spla?

property lists

autoformat preview

going nuts

new server control - compiling question

persisting children

anyone written their own menu control in vb.net ?

strange viewstate problem

myproblem = loadcontrol + invokemember

usercontrol panel.visible= false doesn't work

building my own licensce key

custom web control wont drag and drop to the page!

simple property - total confusion

state management in collection property

waiting for all children events before firing event

custom control causing browser to try and save aspx file

naming container when working with viewstate?

xml inside the control tags

  Privacy | Contact Us
All Times Are GMT