| Newbie databind dropdownlist question (9 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hello, all. I'm just starting to work with ASP.NET in VS.NET 2003. I've created a page with a dropdownlist server control (lstStates) that should pull in the contents of an Access table tblValidStateAbbr (has states and their abbreviations). However, no matter what I do, I can't get the dropdown to show any data on the page. I have a connection, an OLE DB data adapter, and a dataset that contains ... |
|
| Exposing ListItems in Composite Control (6 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I'm trying to build a composite control that consists of a select inside a div (a listbox inside a panel). My problem is that when I compile the control and drag it onto a webform, the Items collection property that shows up in the Properties window of VS.net doesn't give me Items for my control. What I wind up with when I put items in is this: cc1:LLList id "LLList2" runat "server" asp:ListItem V... |
|
| How to assign Action property to the Form (5 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hello, In my application on the Webform I need to assign an action property to the form in code, because the URL is a variable. In MSDN there is an example everything is simple: Form1.Action URL However, this applies only to the Mobile controls. How can I do it in the regular Webform? I would appreciate your help. Thank you, Peter Afonin |
|
| Drop Down List problem (5 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, I have a WebForm on which I have 2 buttons: "Retreive" and "Insert" When I push "Retreive" I would like to retreive info from my DataBase and to make a DropDownList DDL1 to show the result. The code is: private void Retreive Click(object sender, System.EventArgs e) { ...........connection to DB, etc. DDL1.Items.FindByText(DS.Tables[0].Rows[0][0].ToString()).Selected true; ....... } It works. W... |
|
| Retrieve Design Time Properties From Global.asax (6 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Is there a way for a web custom control to retrieve a value from its parent web applications global.asax file at design time? This would enable the user of the control to specify defaults in the global.asax file. The control would then retrieve those defaults at design time so that the user would not be required to reenter properties everytime the control is placed on a form. Mike mcp, mcse, mcsd,... |
|
| Treeview checkbox control critical problem (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Dear all, I have an treeview control with checkbox control. However, when I try to check the checkbox everytime, the web page always jump to the top of the page. Who can tell me what's wrong is it? Thanks |
|
| How to Fire Validators on TextChange Event (4 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I have a form with a text box and a button, and I've written my server side button click event handler to handle the events of the textbox's textchanged event as well, and that works fine. I also have validator controls on the form, and they only work when the button is actually clicked; but the browser will submit the form to the server when the user enters some text in the text box and presses t... |
|
| Problem With User Controls Dim Statement (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I have a user control on my web form. When I Try to declare a varialbe that references a dropdown list on my user control, I receive an error. Is their something wrong with my decloration statement? Dim UControlNew As UserControl Page.FindControl("ReceivedRecord1") ' Web forms bombs out on the ddlFYYearNew Dim statement. Dim ddlFYYearNew As DropDownList UControlNew.FindControl("ddlFYYear") Thanks!... |
|
| TextChanged eats up Button Click event problem (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, I have a page with couple of textboxes and 2 buttons. One of textboxes has Autopostback true. If textbox with autopostback true is empty and I type something into it and click, using my mouse, on any of the buttons all events fire as expected Page Load, TextChanged, Button.Click. However if textbox is not empty (already contains some text) and I just change this text and click on the button I ... |
|
| Datatable.select Datagrid displays all records always (5 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| This is all the code, why doesn't it work? I have a datagrid that always displays all records, even if I type a string in TextBox1. I also tried a adoDbDataAdapter... private void Page Load(object sender, System.EventArgs e) { // Put user code to initialize the page here odbcDataAdapter1.Fill(dataSet11); if (!IsPostBack) { DataGrid1.DataBind(); } } private void Button1 Click(object sender, System.... |
|
| CodeDomSerializer Property issue (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I've created 2 custom web controls, a custom datalist and a paging control. The end user will drag a new instance of the datalist and paging control to the web form and then associate the datalist control with the paging control by setting a property. When this property is set I need the following code created InitializeComponent() { // //pagingControl1 // pagingControl1.DataList dataList1; paging... |
|
| Datagrid Edit mode TextBox Size (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Can anyone tell me how to access the Width property of the Datagrid Control's edit mode TextBox? The default is too wide, and I want to make it smaller to fit more columns on my screen in Edit Mode. Thanks, Brian |
|
| Wrox Book Example Problem (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi I am new to this and trying to learn it. I am following a Wrox Book The follow bit of code: Line 37: asp:listitem Lisbon /asp:listitem Line 38: /asp:dropdowmlist Line 39: input type "Submit" Line 40: /form Line 41: Generates this error: System.Web.UI.WebControls.ListItemCollection must have items of type 'System.Web.UI.WebControls.ListItem'. 'input' is of type 'System.Web.UI.HtmlControls.HtmlIn... |
|
| IE Web Controls Server Deployment (5 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I am just wondering whether web host actually needs to compile IE Web Controls in order for uploaded asp.net application to work correctly. My webhost has advised that they have webctrl client in the wwwroot directory. In the app I uploaded, Microsoft.Web.UI.WebControls.dll sits in the bin directory. However, when displayed, treeview only shows text content, but not the structure. In my experience... |
|
| enum font family (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| How can i enumerate font familys? Font sizes, borders, colors are there but not familys. Thanks. Richard |
|
| Error while using the CompareValidator Type Property in C# (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I am trying to use both the required field validator and Data type check of Integer for a dynamically created datagrid column using the below code.I get the error as.. [HttpException (0x80004005): The value '' of the ValueToCompare property of 'cmpValidateID' cannot be converted to type 'Integer'.] System.Web.UI.WebControls.CompareValidator.ControlPropertiesValid() My code for validators RequiredF... |
|
| Web control library - position on web form (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I have created a web control library that contains a text box and a search button that I plan on using multiple times. The functionality of the control works fine. I can add the .dll to the toolbox and add multiple instances of the control on the form, but the controls are added as if the web form is in a flow layout. It only seems to be happening with the custom contol because I can add buttons a... |
|
| Setting physical position of a WebControl from code behind (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi! I'm very new to programming and asp.net. Can please anyone tell me how to dynamically move WbControl from code behind? e.g.: I have a panel and I want to move it on the web form depending on some events. Let's say that I want to change control's TOP from 20 to 350(in HTML it looks like style "... TOP:20px, ...". Thanks in advanced, d |
|
| Updating control collection from nested property (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I have a web control that contains nested properties. When the nested property value changes in an event I do not see a way to update the controls collection that has been set in CreateChildControls Code snippet DefaultProperty("PageFooter"), ToolboxData(" {0}:PageFooter width '100%' runat server /{0}:PageFooter "), DesignerAttribute(GetType(PageFooterWebControlDesigner), GetType(IDesigner)) Publi... |
|
| Web Custom Control - Enum Property Question ? ? ? (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I'm building a web custom control in which I'm trying to include an enum for one of the properties as follows: // public enum LocationType { NotSet, Client, Server, Both } [ Category("ACFragment Defaults"), DefaultValue(LocationType.Client), Description ("location where the content is stored"), DesignerSerializationVisibility (DesignerSerializationVisibility.Content), NotifyParentProperty(true) ] ... |
|
| Right Justify (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Help! Does anyone know how to right justify a web control? I need to display and enter financial data on a web form and neither the System.Web.UI.WebControls.Label or the System.Web.UI.WebControls.TextBox seem to be able to right justify. For displaying data in a column, and then allowing entry of the data I would like to right justify. Thanks. Tom Youngquist Tom Y@ix.netcom.com |
|
| How to get a HTML element like we do in javascript (3 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hello to all, I like to now if in asp.net there any way to get the HTML elment like we do in the javascript way, like this: script type "text/javascript" function chancetex() { document.getElementById('something').innerHTML "xpto"; } /script If not then it's possible to write for example the above code in the body or head of the page dynamicly from the asp.net code (from the C# code for example)..... |
|
| ASP.Net Server Control (Web Custom Control) Code Update Problem (4 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I have created a new Server Control or Web Custom Control, and everything with the control itself works great. The problem is if I want to change any of the code in my Server Control none of the projects that pull in this control see the changes. Just for kicks say I want to add the following line to my Server Control Page.Response.Write("Hi there") Well if I add this line of code, and say 5 .Net ... |
|
| Getting a node in the "IE Web Control" TreeView to display a tooltip with mouse over (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi all, I've actually written a fair amount of .NET code including the creation of my own web controls however, I'm from an expert. I'm currently trying to determine how to set the tooltip for a node in a treeview webcontrol. And by tooltip I mean the text that is displayed when you roll your mouse over a node. I have found lots of websites out there that claim to have a solution, but I have yet t... |
|
| Obtaining UserControl Name (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| On my web form, I have inserted a UserControl, named ReceivedRecord in two different places on the form. The first UserControl on the web form is named ReceivedRecord1. It will record records that are classified as "New". The second user control on the web form is named ReceivedRecord2 it will record records that are classified as "Expanded". When the user clicks on the SAVE button that is on the ... |
|
| events in run time not work (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, i ve a problem creating a button & asociating a method whith the click event. i ve this code: {.... Button b new Button(); b.CausesValidation false; b.Click new EventHandler(b Click); .....} private void b Click(object sender, System.EventArgs e) { Label1.Text "hola " ((Button)sender).ID; } And runin the web aplication, whith the debugger. The button is created, and i click on it, and the meth... |
|
| Can an ASP:Button be an image? (3 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| With an HTML form button, you can have the button swap out for an image instead. Can that be done with one of the ASP:Button properties? Darrel |
|
| Probleme of Dynamic Server Control:ViewState (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hie all, I generate dynamically a HtmlTable in wich I include dynamic server control like DropDownList label... But when I click to th Submit button in order get the value entered by the user using the their ID it seem that the aspx page is refreshed and I lost all the control . Would Your mind to help me please Posted using Wimdows.net NntpNews Component Post Made from http://www.DotNetJunkies.co... |
|
| Datagrid Paging Event Doesn't Fire (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hello, I have been using a datagrid to page through the results of a query. Coding standards prevent me from setting the properties of the datagrid and binding data to the datagrid in the Page Load method. I instead create and bind data to the datagrid in other methods (such as the getData method) which are called after the Page Load method is executed. My problem is that the PageIndexChanged even... |
|
| Keyword not supported (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hello! I'm trying to make a new SqlConnection with predefined connection string. When I try to do this: public class SelectZ { private SqlConnection conn; public SelectZ() { conn new SqlConnection(Connection.connString); } , where Connection is a Class: public class Connection { public static string connString ConfigurationSettings.AppSettings["dbConnectionString"]; } I get the error message: Keyw... |
|
| Render a custom control inside a specific placeholder (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi. I do a custom control and it works fine. But now, I need to render it in a placeholder. This placeholder will be pass to the custom control by an property. I test something here, catch the correct placeholder on the page and when the render method of the custom control will run I got this error: A value of type 'System.Web.UI.WebControls.PlaceHolder' cannot be serialized. Someone know how can ... |
|
| The number name 'System.Web.UI.WebControls' contains more than the maximum number of prefixes. The maximum is 3. (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, Can anyone help me with the following error I am getting in my asp.net application. The number name 'System.Web.UI.WebControls' contains more than the maximum number of prefixes. The maximum is 3. any help appreciated Mayur |
|
| Annoying Attributes (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi all, Is there any possible way I can tell VS.NET to put the Width parameter for a given control inside the 'Style' tag, rather than in the asp:[Contro] / tag? For example, VS.NET currently generates the following code: asp:ListBox id "SeasonList" runat "server" Height "72px" Width "248px" /asp:ListBox for a given ListBox control. My problem is that under just about any browser other than IE, th... |
|
| Image Centering Problem (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi all, I am currently using the server side Image control to display images, with the image paths being stored in an SQL database. Everything is working fine, but I have run into a small problem with the image sizes. Currently, some images are smaller than others, and when they are displayed in the control, they are stretched, and hence distorted. Is there any way I can automatically centre the i... |
|
| Controle ViewState (3 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hie, I have a big problme I generate a table in wich I put some sever controls like (dropdownlist...) and whenever I click in subimit button even if there is no code in the button the page is republished and all the controls are reset and i cant get the value entered by the user. Would you mind help me please. Thank you Newsgroups brought to you courtesy of www.dotnetjohn.com |
|
| Change image of imagebutton (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi gurus, I have a imagebutton in my WebForm, and I want that when I click (mouse down) on her the imagebutton change image and when I "unclick" (mouse up) change to the original image. Basically I want to know how can I have the mousedown and mouseup buttons events. I think that I have to do this in JavaScript. Can you help me on this? Programming ASP.NET with VB.NET Thank's (if you try to help m... |
|
| How Can I use multiple instances of the same custom control on an ASP.NET Page? (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Can any one tell me whether I can use multiple instances of the same custom control on a single ASP.NET Page? Thanks Pradeep |
|
| Exposing Value of Control (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| The question is this: Lets say I want to expose the selectedvalue of a dropdownlist control in a web control library. Public Property SelectedValue() As String Get Return me.ddlTest.selectedValue End Get Set(ByVal Value As String) End Set End Property I add the ddlTest control in the CreateChildControls override (I'm inheriting from WebControls). Since the CreateChildControls method fires after th... |
|
| The _id of controls (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi! I noticed, that the postback instructions generated for controls use the id attribute of controls, that seem to generated by asp.net itself. My problem with this is the following. I have a page which creates some LinkButtons dynamically in Page Load. They need to be created there, in order for the postback mechanism and events to work. However, in some circumstances, I need to recreate them la... |
|
| Moving / minimizing web parts causes server postback (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Why does minimizing or moving a web part around cause a server postback. Is there a way to turn this off? I see no reason why it shouldnt be on the client side. Also, when a Window is minimized, the page load (for that particular control) and all other onload / onit methods for controls within the webpart are also called. If the user can't see the stuff on the screen, what point does it make to in... |
|
| Extract Substring? (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I have captured the ASP.NET output in the Render method into a string. What is the fastest way to get all of the text content in between the FORM tags? Thanks. |
|
| Viweing Web Controls in Design Mode (3 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| How can I view my web control in design mode?? I created one, and cant see it on my other web pages when designing. Thank,s |
|
| Mouse Status (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, How can I know in JavaScript the status of mouse (down, up, pressed, etc)???? Give me examples, please. Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca |
|
| store a delegate into a viewstate? (3 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, I'm trying to store a delegate into a viewstate but I get the message that it needs to be serialized then. So I put the attribute Serializable in the delegate..but this isnt enough... Can someone help me with this? Many thanks, |
|
| Web User Control Parameter (3 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi all, is it possible to pass parameter inside a web user control from ASPX pages, and how could i do to retrieve this value inside the web user control? Thanks a lot. Rena. |
|
| infragistics ultrawebtree problem (2 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, I'm using the ultrawebtree for navigation on my site. The control hangs in an overflowable div. So when a few nodes have been expanded a scollbar appears and you have to scroll down to see the other menu options. The problem is when I want to expand another node at the bottom the scrollbar goes back to the top (the node I just expanded, becomes invisible). I know this happens because I set Aut... |
|
| Whitespace in datagrid webcontrol (4 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I have a datagrid with a header and pager. what i want to do is have a fixed height for the header and pager which i already now how to do. What i cant seem to figure out is how to fix the size of all the items in the datagrid and have whitespace under. For example my datagrid can hold 5 entries per page but there are only two entries..What happens is that the header and pager remain fixed but the... |
|
| HtmlInputRadionButton value (3 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I create HtmlInputRadionButton objects dynamically in codebihind. The buttons have the same name. Now I need the value of the checked button. Is there a way to get this? Thanks for help Fabian |
|
| not declared error- control inside a control inside a webform (4 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| I've got a web user control (a) inside a web user control (b) inside a webform (c). I need the webform to set a label control text value inside the inner of the two web user control. Inside my web form's code behind I have: mainHeader1.sectionHeader1.theSectionHeader.text "Eritrea" I'm getting "mainHeader1 is not declared" error. What am I doing wrong? DC G |
|
| PageLoad when BACK is clicked (5 replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi everybody, I would like to ask you if someone knows how to make a page to be loaded again when th BACK Button of the Browser is clicked. What I mean is: WebForm1(Load) click link to WebForm2 WebForm2(Load) ClickBACKbuttonOFtheBROWSER WebForm1(Load) Thank you in advance! Best regards, Viktor Outgoing mail is certified Virus Free. Checked by AVG anti virus system (http://www.grisoft.com). Version... |
|