| Iterating custom controls (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.buildingcontrols |
| Here's a simple problem that's eating my lunch: I need to write a base class method in ASP.NET that will iterate the page and find all controls of a certain type. The type is a custom web control that I created. The controls are never found in Page.Controls instead, using the debugger, I see them right off of 'this'. As in 'this.myControl1'. 'this' doesn't support iteration, so how can I find cust... |
|
| Its this correct? (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello, I have 2 inherited dropdownlist. the first have autopostback true and the second false in the first dropdown class i have this method. class DD1:DropDownList { private void DropDown1 SelectedIndexChanged(object sender, EventArgs e) { ViewState.Add("DD1", int.Parse(this.SelectedItem.Value)); } } the second dropdown control class DD2:DropDownList protected override Onload() { if(ViewState["DD... |
|
| Javascript (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I have moved the following to the parent page for the menu control and I still can't see the Javascript appearing. This is what I am doing: protected override void OnPreRender (System.EventArgs e) { Page.RegisterClientScriptBlock ("menuscript", " script language \"javascript\" src \"default.js\" /script \n"); } I can use the ControlAt and write the script block as a literal control but would like ... |
|
| JavaScript Add.Addtribute to an ASP.NET Button (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I need to attach the following 2 little scripts to an ASP.NET Button. I am having an issue with running both of the Attributes.Add. I can only get on to work at once. I have also tried to put them both/either in the page load, but cannot get it to work. TIA, Steve Wofford www.IntraRELY.com SUEDO Code: User clicks btnPrint Sc. 1 btnPrint.Attributes.Add("OnClick", "javascript:return confirm('Are you... |
|
| Javascript closes IE (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have the following javascript in my html: script language "javascript" function setfocus() { if (document.body.style.cursor "default") { document.body.style.cursor "wait"; document.Form1.txtPartno.focus(); document.Form1.txtPartno.select(); } else { document.body.style.cursor "default"; document.Form1.txtPartno.focus(); document.Form1.txtPartno.select(); } } /script In my codebehind I have: Me.b... |
|
| JavaScript file (VIP replies) |
| microsoft.public.dotnet.framework.adonet |
| I have a JS file, where I have show clock function to call. I calling her like this body onload "show clock()" , but nothing happens. The clock don't appear. In your opinion what should I do? Use "RegisterClientScriptBlock" and/or "RegisterStartupScript".? If yes, how can I use them? Thank's (if you try to help me) Hope this help you (if I try to help you) ruca |
|
| JavaScript file (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have a JS file, where I have show clock function to call. I calling her like this body onload "show clock()" , but nothing happens. The clock don't appear. In your opinion what should I do? Use "RegisterClientScriptBlock" and/or "RegisterStartupScript".? If yes, how can I use them? Thank's (if you try to help me) Hope this help you (if I try to help you) ruca |
|
| JavaScript file (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I have a JS file, where I have show clock function to call. I calling her like this body onload "show clock()" , but nothing happens. The clock don't appear. In your opinion what should I do? Use "RegisterClientScriptBlock" and/or "RegisterStartupScript".? If yes, how can I use them? Thank's (if you try to help me) Hope this help you (if I try to help you) ruca |
|
| Jit debugging problem (VIP replies) |
| microsoft.public.vsnet.debugging |
| I have a multi project solution. The start up project contains a MainForm an a DialogForm (called by the MainForm). I run the project from the IDE (VS NET 2003) Whenever there is an unhandled exception in the DialogForm a dialog appears telling me that I have not set JitDebugging to TRUE (which I have, both in the machine.config and app.config files), and asking me to either Continue or Exit. Ther... |
|
| Joining 2 Tables from 2 Different Databases (VIP replies) |
| microsoft.public.dotnet.framework.adonet |
| How do I create a join between these two tables and populate it into a datagrid? I am a newbie to ASP.NET and I need to figure out how to create a JOIN between two tables which belong in 2 different databases. I am using MS Access 2000 for both databases and my development application is Visual Studio.NET 2003. I have created two OleDbConnections and two OleDbDataAdapters. I also, have created a D... |
|
| Jumping to another routine (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| When I exit my app a confirmation message box pops up. If the user chooses "No", what is the code I need to jump to another sub routine (So the save file message box pops up). I already have all of the message box routine. Thank you, John |
|
| Keep data in servercontrol between navigation (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello, Please sorry my poor English. I have 3 aspx webforms. Each page has 2 hyperlinks objets to go on the other pages. In all the webforms, there are textbox, ddlists, button and a datagrid. I want the data in each webpage to be saved and not losed while i'm surfing between those pages(like tab navigation). Presently, I use session variable and query post to keep the data. Example : hplink.navig... |
|
| Keep PPC on with mouse_event fails on PPC2003 (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Hi! I've found some code using the mouse event function to prevent the PocketPC from falling asleep: Private Declare Sub mouse event Lib "coredll.dll" ( ByVal dwFlags As Int32, ByVal dx As Int32, ByVal dy As Int32, ByVal dwData As Int32, ByVal dwExtraInfo As Int32) Private Sub oTimer Tick( ByVal sender As Object, ByVal e As System.EventArgs ) Handles oTimer.Tick mouse event(&H1, 0, 0, 0, 0) End Su... |
|
| Keyboard processing in a user control (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| Hi, I have a User Control that I use on a dialog to select the position to print a label on a report. The control basically consists of a box representing each position on the page of labels, with the selected item coloured to highlight it. Each label position is represented by a Panel control that is created and positioned dynamically by my control. The Panel controls all have a Click handler so ... |
|
| KeyDown Events (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| I have a form with a label on top and 2 panels (panel1 and panel2). Panel 2 is within panel1 and panel1 is placed on the form just below the label. On panel2, I have a series of labels and combo boxes, side by side...something like this: label 1 comboBox1 label 2 comboBox2 . . . . These labels and comboBoxes are defined as arrays and are generated at runtime. I am trying to add a KeyDown event to ... |
|
| KeyDown in Panel? (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| How can I get a panel to be able to record keystrokes (through a KeyDown event or some other such event)? Apparently, the Panel has a KeyDown event that is somewhat hidden, but even if you use it, it doesn't fire when a key is pressed. I've tried setting the TabStop property to true, to give the panel focus, and still nothing. I've even tried extending the control, and adding my own overriden even... |
|
| Label control border color (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Is there a quick and easy way to change the color of a label controls border from the default black to white? Thank you, John |
|
| Label control in a user control... (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| I have a Label control in user control. I want the click event of the Label to fire when the usercontrol is in a Form.. Here is what I did.. 1) I made the Label a public component of the user control, built a DLL 2) Include the Usercontrol in a windows form.. 3) In the form.. here is what I did Private ilk As New TestPrj.UserControl1 AddHandler ilk.Label1.Click, AddressOf lblLabe1 ClickEvent Priva... |
|
| Large screen fonts with controls on panels/usercontrols (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi! We sometimes create UI items dynamically, e.g. we create a panel and place some controls on it. This works fine when using the default font size (as chosen in Control Panel Display Advanced). When executing the application on a computer set to use large screen fonts (120 dpi), the controls are positioned correctly considering the changed sizing mode. but the panel stays at its initial size. So... |
|
| Launch "Windows Security" windows from Process.Start (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I would like to provide a menu item that the users can click that launches the same "Windows Security" window that doing a Ctrl Alt Delete launches, but thru a Process.Start. Is this possible, and what is the name of the ..exe and it's location? Thanks, Dean Slindee |
|
| LDAP to Domain Controller (VIP replies) |
| microsoft.public.dotnet.framework.webservices |
| Hi, i am new on VB .net and i want to list all Active Directory Users in a WebInterface. It is no problem in Windows Applications to list users, but in Web Application i allay get the following error Server Error in '/IP Phone Admin' Application. The specified domain either does not exist or could not be contacted Description: An unhandled exception occurred during the execution of the current web... |
|
| leading space in dropdownlist (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I am populating a droplist control from a query. each line of content in the dropdownlist gets "trimmed" automatically . how can I force a leading space to a line in a dropdown list ?? |
|
| left, mid and right in vb.net (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| How do I use left, mid and right in vb.net? regards reidarT |
|
| LIKE operator fails with multiple occurance of string in pattern? (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I'm working on a VB.Net application that needs to do quite a bit of string pattern matching, and am having problems using the "LIKE" operator to match the same string twice in the pattern. For example, in the following code: Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim theString As String theString "1234 TEST 5432 TEST ABCD" If the... |
|
| linestyle and linecaps (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| I was wondering whether we can set linestyle and linecaps in CF using P/invoke to call WinCE dll. Thank you in advance. |
|