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: 2/22/2005 3:37:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 64 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
vishal_7
Asp.Net User
ItemTemplate in my derived datagrid2/22/2005 3:37:28 PM

0/0

Hello,

I have derived the a web server control from the datagrid control. Now I am adding an ItemTemplate to that grid dynamically via the LoadTemplate method. It looks like this:

Dim objtc As New TemplateColumn
objtc.ItemTemplate = Page.LoadTemplate("~/templates/expandcollapse.ascx")
Columns.Add(objtc)

The ascx page looks like this:

<asp:ImageButton id="btnExpand" runat="server" ImageUrl="~/Images/Plus.gif"></asp:ImageButton>

Now in my webform, where I use this control, I have a ItemCommand method, which should exexute, when somebody presses the button. Unfortunaly the method is never executed. When I press the button, then it postsback, and the screen doesnt show the grid anymore.

Anybody can help me out?
Thanks
toninhoruas
Asp.Net User
Re: ItemTemplate in my derived datagrid3/1/2005 9:24:56 PM

0/0

OK, but the button is inside your ascx file? So Is better for you to create a Event in you ascx file, who calls the clicked Method of button and calls this method in your form, because you are calling the Method of ascx file.

Toninho.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
ItemTemplate help - .NET ASP ItemTemplate. Below is[color=blue] >my custom item template derived from ITemplate and[/color] further down is my code[color=blue] >to populate the datagrid ...
Using GridView and DataGrid in custom skinnedcommmunitycontrol ... Using GridView and DataGrid in custom skinnedcommmunitycontrol derived controls. .. Last post 08-27-2006 3:17 PM by jodywbcb. 7 replies. ...
ASP.NET.4GuysFromRolla.com: Understanding the Differences Among ... The ItemTemplate specifies the template used for each record in the DataSource . ... The Repeater control, unlike the DataGrid and DataList, is not derived ...
DataGrid Enhancements - Building a Full-Featured Custom DataGrid ... It seems to say that derived coumns (from say itemtemplate) that are added at .... Again, I have no problems binding to my itemtemplate column using other ...
Girish Gangadharan » 2005 » July ItemTemplate * SeparatorTemplate. An important thing to remember about the Repeater is that, it is not derived from the WebControl class, like the DataGrid ...
Using GridView and DataGrid in custom skinnedcommmunitycontrol ... Putting it in the ItemTemplate of a Repeater that I bind on PreRender. .... The problem existed also with the Datagrid as well..... Thats my status . ...
How set value in ASP.NET DataGrid template column? - .NET C# In my ASP.NET DataGrid, I would like to set the "Selected" value of a .... you need to derived from WebControl or implement the ...
CodeProject: ASP.NET Expand/Contract DataGrid. Free source code ... This is directly derived from DataGrid and has all functionality of a regular datagrid. ..... I customized and added this expand datagrid to my website. ...
.NET Force :: Displaying Data In Custom Format ... Class types support inheritance, a mechanism whereby a derived class can extend and ...
difference between datagrid and datarepeter The Repeater control, unlike the DataGrid and DataList, is not derived from the WebControl class, and therefore does not have the stylistic ...




Search This Site:










viewstate persistence problem

sql server 2000 - 2005

handling emails to domain

how to fire events from items class

customer datagrid user control

opinion on web1host?

beta 2/rc incompatibility? (method not found: 'system.string system.web.ui.icallbackeventhandler.raisecallbackevent(system.string)')

looking for asp.net 2.0 hosting someone can help me?

date validation control

really need help solving long standing issue with designing controls that share base classes

retrieving auto-generated dhtml client id server side?

ok you uber-gurus... onbubbleevent (il needed)

adding to an html page header

per-user odbc?

checking when add control to web form ???

building datagrid...

treeview expanding

remoting configration for user control

cs hosting question

question on hosting with full trust

designer verbs for properties

requiredfieldvalidator in composite custom control

extending datagrid -> gridlayout no longer working

validators within composite control

godaddy hosting and asp.net 2.0 + atlas

please advice me on hosting requirements

problem getting webcontrol toolbox icon to display

using table properties in inherited class

user control modifying the html of the document it is contained on

vs.net custom designer

  Privacy | Contact Us
All Times Are GMT