Is there any way to place a row of buttons or link buttons next to each other on a webform without a white space showing between them when viewed in the browser?
thanks again
Well, for starters once you get to the "when viewed in the browser" stage in the process, you're well outside of Visual Studio and into straight HTML/CSS. In HTML/CSS, this can be done:
<input type="button" value="test" /><input type="button" value="test" /><input type="button" value="test" /><input type="button" value="test" /><input type="button" value="test" />
and
input { margin: -1px; }
Using CSS is generally the best way to do this, rather than trying to come up with some custom thing within Visual Studio. It's more native to the target platform, the web browser. The CSS in my example would cover all input elements on the page, of course, so you probably don't want that. But if you can uniquely identify your rendered buttons (perhaps input elements within a div of a known id?) then you can apply that style only to them.
Related
Have a very strange issue that I haven't encountered before,
Take for example: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_form_submit and replace the input type=text to password like this:
<form action="/action_page.php">
First name: <input type="text" name="FirstName" value="Mickey"><br>
Last name: <input type="password" name="LastName" value="Mouse"><br>
<input type="submit" value="Submit">
</form>
For some reason, in Firefox only I'm unable to switch the languages for the input[type=password], therefor, my passwords don't work in the app, in every other browser the password input works fine with switching the language ...
Also, in FF, if I change the input back to text - then I'm able to switch languages ...
I'm using MacOSX & Firefox Quantum 65.0.1 (64-bit)
Any ideas ?
A similar bug in Mozilla under Mac Can't switch keyboard layout on input type="password" is closed as invalid, but it seems under Ubuntu it's a bug indeed.
Updated the AJAXControlToolkit.dll in an old ASP.NET 4.5.1 WebForms project and am now getting this error:
Extender controls of type 'AjaxControlToolkit.HoverMenuExtender' cannot extend controls of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.
We have an old hover menu extender control in the page that is likely part of the problem:
<ajaxToolkit:HoverMenuExtender ID="pnlCustomerOptE" runat="server" PopupControlID="pnlCustomerAction" PopupPosition="Bottom" TargetControlID="custMenuBtn" PopDelay="200" />
And a div with an image in it that acts like a button on the same page:
<div class="hover-menu-button" id="custMenuBtn" runat="server">Customer
<img src="~/App_Images/nav/arrow-down.gif" id="imgCustMenuArrow" runat="server" width="9" height="8" class="hover-menu-img" alt="" /></div>
Why is this error occuring and how can I fix it? I am running Visual Studio 2015.
You can not fix it until v16.2 will be released: https://github.com/DevExpress/AjaxControlToolkit/issues/3
I'm creating an extension for Visual Studio 2010.
The extension is made available to the user via a button in the Debug-menu of VS.
The button is defined as follows in the VSCT file:
<Button guid="guidRTKDebuggerCmdSet" id="cmdidRtkDebug" priority="0x0300" type="Button">
<Parent guid="guidVSDebugGroup" id="IDG_EXECUTION" />
<Icon guid="guidImages" id="bmpPic1" />
<CommandFlag>DefaultInvisible</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<CommandName>cmdidRtkDebug</CommandName>
<ButtonText>My Debug Extension</ButtonText>
</Strings>
</Button>
How would I make the button disappear when the debugger starts? All other debug buttons in Visual Studio show exactly this behavior, but my button remains visible all the time.
You need to use VisibilityConstraints (see http://msdn.microsoft.com/en-us/library/bb166229.aspx) and list all needed contexts except UICONTEXT_Debugging (see http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.vsconstants.aspx).
<VisibilityConstraints>
<VisibilityItem guid="guidRTKDebuggerCmdSet" id="cmdidRtkDebug"
context="UICONTEXT_SolutionHasSingleProject" />
<VisibilityItem guid="guidRTKDebuggerCmdSet" id="cmdidRtkDebug"
context="UICONTEXT_SolutionHasMultipleProjects" />
</VisibilityConstraints>
cshtml files with more than one data-bind on a line get a tab (four spaces) insterted after the >data-bind="<. This happens when Visual Studio does "Format Document". And is therefore reproducible by Edit->Format Document.
Only the additional data-binds have this, so the 2nd and 3rd get spaces added while the first remains normal:
<input type="checkbox" data-bind="checked: Active" /><span data-bind="text: firstName"></span><span data-bind="text: lastName"></span>
Changes into:
<input type="checkbox" data-bind="checked: Active" /><span data-bind=" text: firstName"></span><span data-bind=" text: lastName"></span>
It's not a huge problem, stuff can be placed on seperate lines, but still annoying.
Edit: Since vs2013 I no longer have this problem. That also seems to have fixed another problem where vs would randomly decide to move my carret and type some spaces.
I am working with Visual studio 2012, and I don't facing this problem.
May be you could try to reset your VS settings.
If it doesn't work, I will post my settings.
If you run my code in Visual studio script block you will find out that VS IntelliSense does not list out options(DOM collection select reference) following the script variable named lb and Dot. Unlike VS, adobe DreamWeaver IntelliSense lists out the DOM properties
Any ideas to change or improve this behavior?
Thanks
<script type="text/ecmascript">
function LookUpStock() {
var lb = document.getElementById("ListBox1");
var product = lb.options[lb.selectedIndex].text;
}
</script>
<form id="form1" runat="server">
<div>
<asp:ListBox ID="ListBox1" Runat="server"></asp:ListBox>
<button type="Button" onclick="LookUpStock()">Look Up Stock</button>
</div>
...</form>
ListBox1 is server-side control. Visual Studio can't figure out how it will look when transformed to HTML.
However, if you write
<select id="ListBox1" />
it will show Intellisense