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 > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 11/6/2007 2:28:12 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 49 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
tomypow
Asp.Net User
webpart, webcontrol, postback problem11/6/2007 2:28:12 PM

0/0

I've been sracthing my head on this for weeks, if you have an idea please, let me know.
I'm trying to port a custom webcontrol into a webpart.
The webcontrol works fine in a traditionnal asp site, when I embedded in a webcontrol.
But, when I embedded it in a web part, the control do not load post back data.
Event fire and everything is ok, but no poast back data.

This very simple code produce the error:

public webpart1 : WebPart
{

private webcontrol1 ctrl;

 protected overrive void CreatChildControls()
{

 ctrl = new webcontrol1();

Controls.add(ctrl);

bool prob=ctrl.data == null; //this is always true 

}

 }

Any idea what might causing this?

Nuwanda
Asp.Net User
Re: webpart, webcontrol, postback problem11/6/2007 10:42:07 PM

0/0

Hi

Have you tried making the the properties of the webcontrol1 <personalizable()>

 

tomypow
Asp.Net User
Re: webpart, webcontrol, postback problem11/7/2007 2:47:34 PM

0/0

Hi, Nuwanda.
Thanks for the input.
I've tried but it still doesn't make it.

My webcontrol is a slight modification to the TextBox control.
ctrl.data should return the user inputed value in the textbox.

Nuwanda
Asp.Net User
Re: webpart, webcontrol, postback problem11/7/2007 4:35:51 PM

0/0

Maybe try something like <asp:webpartmanager runat="server" id="wpm1" personalization-enabled="false" /> to see what happens if you unplug the personalization stuff or change the events you are using in control/page.

tomypow
Asp.Net User
Re: webpart, webcontrol, postback problem11/9/2007 2:38:51 PM

0/0

Hi Nuwanda,
Thanks for the tip.
I've try to play a bit, like you suggest, but I didn't notice anything.
On postback, my control is stil not load with the postback data.

tomypow
Asp.Net User
Re: webpart, webcontrol, postback problem11/9/2007 2:40:47 PM

0/0

Hi Nuwanda,
thanks for the tip.
I've try to play a bit, like you suggest, but I didn't notice any difference.
On postback, my control still doesn't receive postback data.

6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
Essential SharePoint: Microsoft Office Document Collaboration in Action Authors: Jeff Webb, Pages: 328, Published: 2005
Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers Authors: Jeff Webb, Pages: 428, Published: 2007
Pro Sharepoint 2007 Development Techniques Authors: Margriet Bruggeman, Nikander Bruggeman, Pages: 484, Published: 2007
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
C# for Programmers: Updated for C# 2.0 Authors: Paul J. Deitel, Pages: 1317, Published: 2005
Visual C# 2005: How to Program Authors: Harvey M. Deitel, Paul J. Deitel, Pages: 1591, Published: 2006
Programming C#: Building . NET Applications with C# Authors: Jesse Liberty, Pages: 644, Published: 2005

Web:
MSDN Webpart with System.Web.UI.WebControls.DataGrid and ... Webpart with System.Web.UI.WebControls.DataGrid and AllowPaging postback problem . Seems like I can/need to use the PageIndexChanged event. ...
Sharepoint portalserver development Webpart with System.Web.UI ... WebControls.DataGrid and AllowPaging postback problem - dduele. 01-Nov-07 11:17: 49. Hi, I've got a Webpart for MOSS 2007 containing a System ...
.NET ASP.NET webcontrols Datagrid on WebPart: After postback Data ... Datagrid on WebPart: After postback Data is disappearing - Da. 21-Feb-07 05:33: 08. I am having a problem with losing data from my datagrid ...
Dropdown in webpart lost its state after postback Dropdown in webpart lost its state after postback. microsoft.public.dotnet. framework.aspnet.webcontrols. Author. 1 Dec 2006 9:55 AM ...
RDA Blogs - RDA Collaboration Evangelist Team Blog: Preventing ... Nov 11, 2008 ... Preventing problems with postbacks in a User Control within a Web Part. By default, whenever I create a Web Part to provide any kind of ...
partial postback not happening in an Ajax enabled webpart on MOSS ... public class WebPart1 : System.Web.UI.WebControls.WebParts.WebPart ... About this Site. Questions / Problems with this site? Visit our hoster: ORCS Web ...
Re: partial postback not happening in an Ajax enabled webpart on ... click on a button, it does a complete post back and the whole page refreshes. ... public class WebPart1 : System.Web.UI.WebControls.WebParts.WebPart ...
SharePoint Kings: Issues with Data View webpart programmatically WebControls.WebParts; using System.Xml.Serialization; using Microsoft.SharePoint ; ... Append("WebParts « More Soma Please… Using the BDC and the BDC List Webpart, works out well except where you try to add multiple filter rows after having done a postback (Retrieve Data) where ...
partial postback not happening in an Ajax enabled webpart on MOSS ... public class WebPart1 : System.Web.UI.WebControls.WebParts.WebPart ... About this Site. Questions / Problems with this site? ...




Search This Site:










login web control tp pass querystring?

treeview onadaptedselectednodechanged

can't find user control

master page problem

how to create database driven menu and submenu , sql database

all solpart menus rendering only in top left corner of screen

users prompted for login with integrated windows authentication

dotnetnuke 3.1 build errors

upgrading users with short passwords

not enough place on to put my javascript on page header

licence protection tool

dnn 3.0.12 instalation problem

best way to keep track of users last visit.

how to recitify system.configuration.configurationexception

css not displaying on nested menu control

calculating streaming video network costs

custom admin/role management

authentication

login control + remote desktop web

problem accessing help file of enterprise library - january 2006

treeview, populateondemand, and callbacks

craeting custom validator and adding dynamically

create user wizard

why this code is not working?

treeview display image on node click

crosspagepostback

is the profile class cached?

is there a utility to generate {get/set} properties statement? many thanks!

floor plan module - anyone got some ideas.

frames control

 
All Times Are GMT