R: [Rainbowportal-devel] !!Codes not Sunchronized: questions about AnnouncementsEdit.aspx(.cs)
Brought to you by:
danijel_kecman,
manudea
From: manu <ma...@du...> - 2003-08-21 16:32:54
|
Hi, unfortunately VS does not support visual inheritance in asp pages (it = does in windows forms). The second way is better (no errors). Anyway it is time consuming change = all modules to that. At run time both are perfectly valid. Anyway VS breaks the first one = when opens it an you manually have to delete extra lines. Next VS studio will be different... I suggest keep thing as is until = that. New modules can use the latter method. ------------------------------------ Emmanuele De Andreis Technical Manager DUEMETRI Internet Solutions Provider RAINBOW PORTAL Main portal - http://www.rainbowportal.net Sourceforge CVS - http://sourceforge.net/projects/rainbowportal/ Support Forums - http://www.rainbowportal.net/ASPNetForums Bug Tracker - = http://sourceforge.net/tracker/?group_id=3D66837&atid=3D515929 -----Messaggio originale----- Da: rai...@li... [mailto:rai...@li...] Per conto di = yiming Inviato: mercoled=EC 20 agosto 2003 19.30 A: rai...@li... Oggetto: [Rainbowportal-devel] !!Codes not Sunchronized: questions about AnnouncementsEdit.aspx(.cs) questions about AnnouncementsEdit.aspx(.cs) I Compared AnnouncementsEdit.aspx and ArticlesEdit.aspx, ther're some questions there, I hope someone will tell me how. I think this is important cos' there're many many things like this. I must ask everyone should always check .aspx files while making changes on .cs files, or will make codes messy. Since I'm not familiar with rainbow enough, please tell me how with numbers, and thanks for baring my poor English. and manu: if you think my modification is right, I can mail you my modified codes. I had made it myself already. and thanks for all of you again. 1. there are "update/Cancel/Delete"=20 System.Web.UI.WebControls.LinkButton objects in AnnouncementsEdit.aspx, it was replaced with a asp:placeholder in ArticalesEdit.aspx, =20 the second one is better. and the first one will cause warning cs0108, cos the ASPX was derived from UI/Page.cs, and there're those properties already. VS.NET add same properties in AnnouncementsEdit.aspx automatically since it was defined in aspx file only. (!!! aspx and corresponding cs are not synchronized !!!) (there're many such things, many many). 2. ArticlesEdit.aspx.cs is using the following modules that wasn't used in AnnouncementsEdit.aspx,=20 using Rainbow.Design; using Rainbow.Helpers; using Rainbow.UI; using Rainbow.UI.WebControls; using Rainbow.UI.DataTypes; 3. For adding Buttons from which was defined in page.cs, there're following lines in ArticlesEdit.aspx.cs that should be added into AnnouncementsEdit.aspx.cs: =09 private void Page_Load(...){ ...... // Construct the page PlaceHolderButtons.Controls.Add(updateButton); PlaceHolderButtons.Controls.Add(new LiteralControl(" ")); PlaceHolderButtons.Controls.Add(cancelButton); PlaceHolderButtons.Controls.Add(new LiteralControl(" ")); PlaceHolderButtons.Controls.Add(deleteButton); ......} 4. there're following codes in ArticlesEdit which are not written in AnnouncementsEdit: protected override void OnInit(EventArgs e) { //Controls must be created here updateButton =3D new LinkButton(); cancelButton =3D new LinkButton(); deleteButton =3D new LinkButton(); .... } --- yiming. ------------------------------------------------------- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from the best hiring companies. http://www.dice.com/index.epl?rel_code=3D104 _______________________________________________ Rainbowportal-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rainbowportal-devel - |