| Dynamically Add a Control to a Form (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| Knowledge Base Article 815780 seems really cool but it doesn't work as publshed. I am running Visual Studio 2003 on Windows 2K. The code builds but the statement containing asm.CreateInstance blows up. The control type passed to the AddControl function seems to have a missing dot as in Windows.System.FormsTreeView. There is no dot before TreeView. Not sure if this is the problem but there is somet... |
|
| Dynamically add linkbuttons and wire them to same event? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.buildingcontrols |
| Hi, How do I dynamically add linkbuttons and wire them to same event? I am able to add linkbuttons but they do not fire the event. Does anybody have a working sample? Many thanks, Linda |
|
| Dynamically add linkbuttons and wire them to same event? (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, How do I dynamically add linkbuttons and wire them to same event? I am able to add linkbuttons but they do not fire the event. Does anybody have a working sample? Many thanks, Linda |
|
| Dynamically added Templated Columns (Implementing ITemplate) in DataGrid - How do I wire up events? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Hi, I have a VB.NET / ASP.NET program I'm trying to debug in which the columns in the DataGrid change depending on user selections. The data is sourced from a database, so the number of rows varies with the selection parameters. The columns are being added dynamically at runtime. There are 4 columns that are templated columns implementing the ITemplate interface. These columns are TextBoxes in whi... |
|
| Dynamically build dropdownlist box (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| When I select the first dropdownlist box, I need to be able to make several dropdownlist boxes on the fly and populate them from the database. Is this possible? If so, HOW? David Fetrow Helixpoint LLC. davef@helixpoint.com |
|
| Dynamically create web controls from a string value (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Anyone know how to create a asp.net WebControl from a string value? I'm pulling string values (eg. System.Web.UI.WebControls.TextBox) from an XML file and would like to dynamically create a TextBox, then add to Page. I've tried creating with Activator.CreateInstance, but always returns an "Specified cast is not valid" exception. I've tried several variations of the following: Sample #1 private voi... |
|
| Dynamically created controls are disappearing (VIP replies) |
| ASPFriends.com 'aspngibuyspy' list |
| I have created a couple new portal modules. One is a Menu'ish kinda of module. In essence, you register the name of the module, it's source, what pane to display in, ... Then when the link is created, I dynamically create the control & add it to the correct pane. The problem exists when the user clicks on something in the dynamically module that causes a postback. Then when the page makes the roun... |
|
| Dynamically Created RadioButtonList Items & ViewState (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.buildingcontrols |
| I'm having a variation on the typical problem with saving ViewState of dynamically created web controls. I have two radiobuttonlist controls (call them rbl1 and rbl2). Both are created at design time. Each has three items in their Items collection. When the selected item in rbl1 changes, the Items collection of rbl2 is cleared and then has new items added (depending on which item of rbl1 is select... |
|
| Dynamically Generated Button Event Handlers (VIP replies) |
| ASPFriends.com 'aspngcs' list |
| Moved from [aspngfreeforall] to [aspngcs] by Marcie Jones marciejones@yahoo.com Hi all, 20 I am developing a web page with buttons created dynamically at run time. I have created a table to hold the buttons in a code behind file, adding properties like so (arPages is a 2 dimensional array containing the button identifier and Text property): 20 20 for (int i 3D 0; i (arPages.GetLength(0) ); i ) { T... |
|
| Dynamically load an assembly and invoke a method (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, I am trying to create a plug in assembly without the need to register it in the GAC. Reflection should help me out here. I got this far: private void button1 Click(object sender, System.EventArgs e) { Assembly engine null; AssemblyName assemblyName new AssemblyName(); assemblyName.CodeBase assemblyPath @"Engine.dll"; engine Assembly.Load(assemblyName); Type[] types engine.GetTypes(); foreach (... |
|
| dynamically loading borderless forms (VIP replies) |
| microsoft.public.dotnet.framework |
| we have a need to create independent forms and then load them to an area (panel) in the main window depending on the user action. Like the main window is layed out like : tree control, splitter bar, panel1 then we load the independent forms into panel1 (unload what was there)... The following is the code I've come up with.... am I on the right/proper track for this or is there a better way? System... |
|
| Dynamically populate Listbox (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Hi there, I try to add items to a listbox on a form by populating the listbox from a class. Somehow the items are added (items.count 1 after the first addition), but I cannot get them visible. Whereas when I create a button on the form which adds two items, the both appear visible in the listbox. What am I doing wrong? Thanks for your help. Marc Claasen |
|
| Dynamically Resizing a Rich Text Box Control (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi I have a user control that contains a RichTextBox in vb.net. In my program, I create multiple instances of this control (with the RichTextBox being in each one), that appear one above the other on a panel. The problem is that each control may have varying amounts of data, and so each RichTextBox (within each control) needs to size to fit the amount of text within that RichTextBox. I've tried mu... |
|
| Dynamically set varibable value? (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi: I am having trouble dynamically setting a variable. The following code does not work. Any ideas would greatly be appreciated. Thanks, Jim Dim astr As String Dim bstr As String Dim myval As Double Dim te As Double Dim AAA As Object astr "test" bstr "test" If astr bstr Then 'want to set variable te (which is double) 333.3 ' AAA CType(astr, ValueType) AAA Mid(bstr, 1, 2) ' Mid(bstr, 1, 2) 333.3 A... |
|
| Dynamicaly create javascript file and cache on client (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I want to dynamically create a JavaScript file and cache it on the client for re use. I know how to write javascript to a web page from the code behind, but I don't know how to actually create a file such as MyNewScript.js and then cache that on the client so all the pages of that session can use it. Can this be done? Thanks moondaddy@nospam.com |
|
| DynamicInvoke on .Net CF (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| I'm kind of newbies on Delegates... this works on .Net Fx but not on the ..Net CF How can I make this work... I just want to invoke the delegate. Just a regular event being raised and I want to broadcast the notification to the subscribers. This is what I have. public static void BroadcastEvent(Delegate eventToBroadcast, object eventSender, EventArgs eventData) { if(eventToBroadcast ! null) { obje... |
|
| e.Item.Cells doesn't get the content of the cell i clicked in(sorry this is the full message. (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Hi, I'm trying to create a menu in a page.The items in the menu comes from a database.I've successfully populated the menu using a datagrid control and am using buttonColumn to display them as hyperlinks.The dataview contains just one column Linx.The menu items are all displayed and hyperlinked.In the eventhandler for the button I'm trying to fetch the content of another column in the same databas... |
|
| e.Item.DataItem gives Null Reference after DataBind (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello, I am binding a custom IList object to a DataList that I am using for a web menu. The items in the custom IList have properties that allow me to dynamically define how my menu behaves. My binding syntax is standard: Private Sub Page Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MenuItems.DataSource GetMyCustomIList MenuItems.DataBind() End Sub When the ... |
|
| Easy Frames Question (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have a "page" comprised of 3 frames top, bottom left, and bottom right (A, B, and C). From C (bottom right), I have a button (within a form ), that when clicked causes a bunch of stuff to happen in a database during postback no problem. What I want is for the last part of that postback logic (in the button Click event procedure) to somehow cause the page in frame B to reload/refresh. That is (to... |
|
| easy question (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, I have this easy piece of code: public class Box1:System.web.ui.webcontrols.webcontrol { protected Button mybutton; protected override void OnInit() { InitializeComponent(); } private void InitializeComponent() { this.Controls.add(mybutton); } } public class Gereral Control:System.web.ui.webcontrols.webcontrol { protected Box1 mybox1 new Box1(); protected override void OnInit(EventArgs e) { In... |
|
| easy window problem (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello I have a button that opens a form like this: private void button2 Click(object sender, System.EventArgs e) { Form2 myForm new Form2(); myForm.Show(); } problem is that it creates a new window for each click, i just want one form, and if window exists i would like it to focus TIA /Lasse |
|
| Edit menu (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I suppose a lot of people have already written an Edit menu (Cut, Copy, Select all, C/Z, C/Y...) for a text box and other adequate controls. Where can I find the necessary statements in VB.Net ? Thank you. |
|
| Edit Mode - How do I populate dropdown in edittemplate from dropdown in another column? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| I have a datagrid with 2 columns that I want to interact when I'm in Edit Mode. I've reproduced just the columns I want to interact below. I can get into Edit mode for the selected row just Fine. What I want to do is to have the user select an entry in the editschSchedulePeriod template (options are "D" or "M"). Once the user selects this, I want to execute a subroutine to populate the EditschPeri... |
|
| Edit mode of DataGridCell (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| How to prevent the selected cell from being editable (visual) at DataGrid? Once click on cell (even readonly) there are cursor inside it and select text appears. How to prevent it Thankx |
|
| Editing Datagrids (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I have a datagrid on a webform that will allow the user to edit data in a list. I have added the edit column in as a link, but when it is clicked nothing happens. Do I need to set something else in the Columns property or is it a property of the dataset that needs changing? Thanks Helen |
|