The textbox aligns to the right, but the label aligns to the left and on the line above. How can I fix this so that the label is on the left, the textbox on the right, and both on the same line?
I have a Perl script that calls aspnet_compiler.exe to compile a large ASP.NET website. The problem is that it takes very long to run. Is there any way to compile just a single .aspx file from the command line? (I think that would suit the needs of my script) It seems that all aspnet_compiler.exe can do is compile at a directory level.
I have read plenty of tutorials on taking a datagrid to a text file, but I haven't seen anything about taking a single cell from a datagrid, formatting it, and writing it to a text file. Is this possible, am I going about it wrong?
I want to generate a link http://site/?code=xxxxxxxxxx
Where xxxxxxxxxx is an encrypted string generated from the string user01. And I will need to convert it back later.Is there a simple way to encrypt and decrypt a string like this?
I'd like to have the following div tag display a tool-tip on mouse hover. But, it displays it as a single line. How can I get it to display several lines?
I have a javascript object which is converted from json to java script object. i want to display its values like after each key value pair, i want to insert new line. but i dont know exactly how to do that. below is my code, how i should insert a new line. i tried but its not inserting a new line is display.
In my text area, I should be able to enter only 72 characters per line. If I use, cols property set to 72, it is allowing more or less number of characters depending on character width.
So I am adding StaticTextField controls to a page. This is using ExtJS, but we use VB.NET methods to add ExtJS so we don't actually have to write it.
I tried using
.Style = "text-align:right"
But that isn't working, in fact it isn't doing anything. Here is the whole code of one of the controls:
With .AddColumns(2) With .Item(1) .LabelWidth = 150 With .AddControl(New Forms.Control("LoanProceeds", "../../loanProceeds", "Loan Proceeds", IIf(Model.LoanProceeds <> 0, Model.LoanProceeds, "$0.00"), Forms.Control.ControlType.StaticTextField)) .Validate.AllowNegative = False .Validate.AllowDecimals = True .Style = "text-align:right" .ReadOnly = True End With
All these controls are contained within a column, which is contained within a fieldset, which is contained within a panel.
why these aren't right aligning using CSS? For some reason, if I try to use the same code above (the CSS), to try and right align comboboxes, or number fields, it works, and they are located right underneath these static controls, but it's not working for static controls. They need to be static because we don't want the "box" outline on each of the values, we just want it to be text, nothing else on the screen.
i am working on asp.net, for example in a form they are 10 text boxes i want to validate each textbox if it is empty it should display a alert message.
how to achieve this by using a single javasript method. can we pass texbox as an argument into javascript how to achieve this
I have the following code which toggles the visibility of one of a pair of DropDownLists based on the selected radio button. This code works but my problem is that I have several sets of controls just like this on a single form. How can I use a single JavaScript Toggle() function, irrespective of the ID of the RadioButtonList that triggered it?
function Toggle() { var list = document.getElementById("produceDDL"); var inputs = list.getElementsByTagName("input"); var selected; for (var i = 0; i < inputs.length; i++) { if (inputs[i].checked) { selected = inputs[i]; break; } } if (selected.value == 'Vegetables') { div1.style.display = 'none'; div2.style.display = 'block'; } else { div1.style.display = 'block'; div2.style.display = 'none'; } } <asp:radiobuttonlist ID="produceDDL" OnClick="javascript:Toggle();" RepeatDirection="Horizontal" runat="server"> <asp:ListItem Selected="True">Fruit</asp:ListItem> <asp:ListItem>Vegetables</asp:ListItem> </asp:radiobuttonlist> <div id="div1"> <asp:DropDownList ID="fruitDDL" Width="120" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>Apples</asp:ListItem> <asp:ListItem>Oranges</asp:ListItem> </asp:DropDownList> </div> <div id="div2" style="display:none;"> <asp:DropDownList ID="vegDDL" Width="120" runat="server"> <asp:ListItem>Select</asp:ListItem> <asp:ListItem>Onions</asp:ListItem> <asp:ListItem>Potatoes</asp:ListItem> </asp:DropDownList> </div>
I am having some trouble with designing a masterpage for my site. In IE 8 the left menu pane stretches out every time i add a pic to the top table. When in compatiblity mode this is not a problem
I have three panels.Right,Middle and Left. controls in the panel right and left are dynamically loaded. the middle panel is just a separator ,that contains only text saying "else" which should come exactly in the middle of two panels.
how to set the middle panel ?
since right and left panels are dynamically loaded with controls , it is very difficult to set the text of the middle column.
I am trying to set up a web application with a datagrid and a chart on one tabpanel of a tabcontainer. It started of ok but I need to have the chart positioned right next to the datagrid. I read about using css but cannot get it to work. I have added a separate css file
i would like to ask what is the best way to position and align images on an HTML web page.
I will have approximately 10 user-controls that each have a set of images on them laid out in a specific pattern, eg - an arc, a circle, straight line, some other sort of curve.
I have posted below the code to a very simple log-in page, but can't work out why, when viewed in a browser (Chrome, - I haven't tried others), it appears way down the page in the ContentPlaceHolder and not at the top. Also, how would I make such 'functions' as log-in boxes like this one appear centred on the ContentPlaceHolder as opposed to formatted to the left?
If anyone could indicate where in this code it states to align the log-in function box to the left and half way down the page (not align to the MasterPage header