0
votes
4answers
34 views
CS1002: ; expected
I'm trying to do a JS code in my websitem but it returns me an error
Code:
var f1 = document.getElementById("<%UserName.ClientID ;%>").value;
var f2 = ...
0
votes
2answers
36 views
Dynamically adding pictures inside div
I've got a drop down list which is going to dynamically add image elements inside of a div with a class name of DrugNameCard and an id of testDiv. With all of the attempts below, the HTML isn't ...
0
votes
2answers
19 views
Disable Table in jquery or javascript.Table contains ASP.net controls ,Telerik controls
MY TABLE:
<table id="DispalyTable" border="4px" style="width: 100%;" >
<tr>
<td style="width: 137px; height: 137px;" ...
0
votes
2answers
37 views
mouseenter in jquery is causing abnormal behaviour
I am trying to make the mouseenter and leave event in jquery work but there nothing seems to work. mouseenter works if I drag the mouse on an image without traversing other area on browser. The entire ...
0
votes
1answer
21 views
How to highlight active page in a masterpage menu?
I have a menu inside a masterpage (in a ASP.NET Web site), and i want to highlight active page in masterpage menu and submenus.
HTML:
<ul id="nav" class="sf-menu">
<li ...
-1
votes
2answers
37 views
send email with web service
I want to ask if any one know how to send email with web service?
I mean, I have a App, and I will ask the user for one mail and a message, and I will resend that message to the email that the user ...
1
vote
1answer
476 views
Textbox with MaskedEditExtender not showing value when the Textbox.text is set
I am trying to set a value to a textbox which has MaskedEditExtender. Here is what is tried.
<cc1:TextBox ID="txtLastContributionDate" runat="server"
CssClass="TextBox" Enabled="true" ...
0
votes
1answer
186 views
check if page is already opened and Send parameter to it
How can I check if an asp.net/html page is already opened, and if it is, send a parameter and not open it again, and if it isn't opened, open it and send the parameter as usual..
What I want to do is: ...
0
votes
3answers
4k views
how to validate as well as restrict length of asp.net text box control in javascript for numeric data?
I want o validate asp.net text box control by using javascript for number entry only. And maxlength of data should be 3 digit. For this i used following script -
function isNumberKey(evt, obj) {
...
1
vote
1answer
450 views
Centering a Sortable Row Header in the GridView
I cannot seem to center the header text of a column in my GridView if it is sortable. The html output is much different for a sortable column (it seems to place a table inside of the td column).
Any ...
2
votes
3answers
1k views
In which order are CSS styles applied?
I have the following HTML.
<ul>
<li>
<a>asdas</a>
</li>
</ul>
In my CSS stylesheet I have general settings for the a tag, and several hundered lines ...
10
votes
5answers
23k views
asp.net programmatically add a span tag? Not Label control
How can I add a span tag from a code behind? Is there an equiv HtmlControl? I am currently doing it this way. I am building out rows to a table in an Itemplate implementation.
var headerCell = new ...
125
votes
8answers
50k views
Difference between id and name attributes in HTML
What is the difference between the id and name attributes? They both seem to serve the same purpose of providing an identifier.
I would like to know (specifically with regards to ASP.net web forms) ...
25
votes
9answers
19k views
Calling wkhtmltopdf to generate PDF from HTML
I'm attempting to create a PDF file from an HTML file. After looking around a little I've found: wkhtmltopdf to be perfect. I need to call this .exe from the ASP.NET server. I've attempted:
...
208
votes
23answers
91k views
How do you handle multiple submit buttons in ASP.NET MVC Framework?
Is there some easy way to handle multiple submit buttons from the same form? Example:
<% Html.BeginForm("MyAction", "MyController", FormMethod.Post); %>
<input type="submit" value="Send" ...