hi, I would like to load a web user control at runtime in my ATLAS enabled application, so i placed a placeholder inside atlas:UpdatePanel tag and coded as following : <% MYCTR myctr = (MYCTR)LoadControl(@"~\CTR\PRODUCTS\ProdItem.ascx"); pHolder.Controls.Add(myctr); %>
At runtime it throws an unspecific error. Advance Thanks. aBaste
peepys
Posts
-
ATLAS : Loading a user control at runtime -
Dynamic model using XMLwell... i think this can be done using codeDOM. http://www.cswl.com/default.html Here There is a nice wPaper on "Interface Creation and Deployment at Runtime". please share your experience on codeDOM. Thanks, aB:rolleyes:
-
Dynamic model using XMLHi, I'm designing a framework for an enterprise application. I have done this earlier but I used to define model (properties, methods, events…) inside framework itself. Programmer writes codes based on the model defined in framework, in other words interface that is created inside framework later implemented by the programmer. Now I would like to isolate model definition from framework and define the model in a separate XML file so that framework will extract model definition from XML file dynamically. How do I achieve this ? Advance Thanks ! Regards, aB. :doh:
-
Dynamic model using XMLHi, I'm designing a framework for an enterprise application. I have done this earlier but I used to define model (properties, methods, events…) inside framework itself. Programmer writes codes based on the model defined in framework, in other words interface that is created inside framework later implemented by the programmer. Now I would like to isolate model definition from framework and define the model in a separate XML file so that framework will extract model definition from XML file dynamically. How do I achieve this ? Advance Thanks ! Regards, aB:doh:
-
Dynamic model using XMLHi, I'm designing a framework for an enterprise application. I have done this earlier but I used to define model (properties, methods, events…) inside framework itself. Programmer writes codes based on the model defined in framework, in other words interface that is created inside framework later implemented by the programmer. Now I would like to isolate model definition from framework and define the model in a separate XML file so that framework will extract model definition from XML file dynamically. How do I achieve this ? Advance Thanks ! Regards, aB
-
Web user controlhi, i have found another way to do this: #1) By default DDlist in MYCTR.ASCX is "protected" change it "Public" #2) In default.ASPX, load the control using NewCtr=Loadcontrol("MyCTR.ascx") method #3) ... and now i can access Newctr.DDlist.selecteditem.text Actually this is what i was expecting... thanks for you great support Regards aBaste
-
Web user controlThanks !
-
Web user controlok,:doh: 1.MyCtr.ASCX contains a DDlist with 5 items. 2.Default.ASPX contains one MyButton 3.After deploying MyCtr.ASCX in default.ASPX, i want to get "DDlist.SelectedItem.Text" FROM MyButton_click() Thanks aB -- modified at 13:09 Sunday 11th December, 2005
-
Web user controlThanks, but still i'm not able to get it.:wtf: Here is what i have done: I have created a web user control (MYCTR.ascx) with DropDownList filled with names, to deploy it in default.aspx i put: <%@ Register TagPrefix="Mycomp" TagName="ctl" Src="MYCTR.ascx" %> To add the control in default.aspx i put: "MyComp:Ctl id="MYT" runat="server/" Things are working, but i would like access an item in DropDown list, how do i do ? Regards, aB -- modified at 11:55 Sunday 11th December, 2005
-
Web user controlhi, How to access a web user's control method & property that is placed on webform.aspx. Regards, aB
-
MultiuserHi, I'm new to ADO.net,but have couple of years of experience in classic ADO ! Could you please explain me, what is the best method (way) to insert a record in a multiuser environement. Stored Procedure option seems to be good, but since i'm using MySql,i can't. Advance Thanks, aB
-
Ascii ?Hi, in vb.net ,how to get ascii value of a given character? (asc in vb6) Regards, aB
-
Best place to load a controlHi, Thx a lot for the previous answer. For loading a pack of records into comboBox ,which event is best ? form_load or InitializeComponent. Could you pls explain it? regards, aB
-
overloading .net control's propertyHi, i use flat file system in my vb.net project. when i load data ,say CustName to a comboBox i want to have the corresponding CustID somewhere (like selecteindices.item in Listview control) so that i can catch that Id when user select a particular CustName. 1.Is there any property available in ComboBox to store a pair values. 2. How to override a .net windows control's property that is overridable. 3. Is it possible to override comboBox.items.item property ? how ? Regards, aB
-
Flat file systemHi, For my multiuser vb.net application i DONT want to use any commercial DBMS. How do i use flat file system for a multiuser application. Regards
-
.net bookHi, You wont find easily, but there are some sites. Try www.rapidshare.de , they have -believe me -tons of ebooks Thx
-
component securiryHi, I have created a DLL component in Vb.net, i want no other project/person use my component, how to stop outside access . Advance Thanks aB:doh:
-
How to deploy a usercontrol ? Help pleaseThanks Hussain, Even a simple usercontrol containg only one button(!) is not working for me, so i dont think there is probs in usercontrol. Here is code ! --------------------------------------- <%@ Register TagPrefix="work" TagName="bee" Src="CTRL/UserRegistration.ascx"%> ' i keep UserRegistration.ascx in a folder called ' CTRL <%@ Page Language="vb" AutoEventWireup="false" Codebehind="home.aspx.vb" Inherits="Wee.WebForm1" %> ----------------------------------------- Thanks, shangar
-
How to deploy a usercontrol ? Help pleaseHi, I have included a usercontrol userctr.ascx in my MyPage.aspx and is working fine in my computer. Both Mypage.aspx & userctr.ascx are in same path. After deploying Mypage.aspx & UserCtr.ascx to the web server , Mypage.aspx is showing all objects except userctr.ascx ! Here is the command I use to register and include usersontrol in Mypage.aspx : <%@ Register TagPrefix="Hi" TagName="Thx" Src="userCtr.ascx"%> What am I doing wrong ? Advance thanks ! Regards, shangar