Free Asp.Net ToolTip?` - asp.net

at the moment I use "www.aspnettooltip.com" as my asp.net tooltip.
Feature I need: Complete control how it is displayed (Content-System).
At the moment I can use this:
<ASPNetToolTip:ToolTip ID="ToolTip1" runat="server" ControlToToolTip="imgHelp2">
<ToolTipContentTemplate>
<div class="divToolTip">
Tragen Sie hier bitte "Suchworte" ein mit denen
Sie gefunden werden möchten. Z.B.: Wenn Sie ein Friseur
sind: Haare schneiden, Haare färben, Ihren Firmennamen
<br />
<br />
Sie müssen mindestens 1 und können maximal 6 Suchwörter eingeben.
</div>
</ToolTipContentTemplate>
</ASPNetToolTip:ToolTip>
Is there a similiar control which is free?

Use JQuery .

Related

extract data from mixture of code (html, css, javascript) and data

I have some code with data embedded in it. Here's a sample:
<div class='clear' ></div>
</div> <!-- findResultListing -->
<div class='findResultListing ' id='result_listing_7_0' onclick='examMapManagerHandle.clickMarker(7,0);'>
<a href='javascript:examMapManagerHandle.clickMarker(7,0);'>
<img class='balloon' src='/system/themes/asp/img/gmarkerH.png' border='0' />
</a>
<div class='findResultInfo'>
<div class="nextStep">
<a href="/system/modules/shibboleth/secure_find/shib_gateway.php?url=%2Fexams%2Fschedule.php%3Fnav%3Dexams%2Cstucourses%2Cexams%2Csched_exam%26amp%3Badd_locid%3D1672">
<img height="16" border="0" align="left" width="16" src="/system/themes/asp/img/schedule.png"/>Schedule Exam
</a>
</div>
<a href='javascript:examMapManagerHandle.clickMarker(7,0);' >
SJSU Testing
<img class='userType' border='0' src="/system/themes/asp/img/org.png" alt='Testing Site' title='Testing Site'/>
</a>
<br />
One Washington Square<br />
Industrial Studies Building 228<br />
San Jose, CA 95112<br />
Phone: (408) 924-5980<br />
Email: <span id="_smarty_mailto_span_2096382943_1423929156_8"> </span>
<noscript>To see email address, enable javascript</noscript>
<script type="text/javascript">var mailto=document.getElementById("_smarty_mailto_span_2096382943_1423929156_8");
mailto.innerHTML='<a href="mailto:testing-office#sjsu.edu" >testing-office#sjsu.edu</a>';</script><br />
Fee for two hour exam:
$40.00
<a class="helpBtn" onmouseover="asp_toolTip(this,' <strong>Fee Details:<\/strong> We charge $20 for the first hour and $10 for each half hour after... <br /> <strong>Miscellaneous Fees:<\/strong> Test emailed in pdf/Word Doc., we will charge an administrative fee of $15 for 10 or more test pages <br /> <strong>Parking Fee Details:<\/strong> Its $8.00 to park in the 10th St. garage on the corner of 9th & E. San Fernando Sts.', 'findResultsToolTip', 'fit_west', 'map_results_pane');"></a>
<br />
</div><!-- findResultInfo -->
I want to extract just the following from the above code:
SJSU Testing Testing Site
One Washington Square
Industrial Studies Building 228
San Jose, CA 95112
Phone: (408) 924-5980
Email: testing-office#sjsu.edu
Fee for two hour exam: $40.00
What are some ways in which I can automate the extraction of this data from the code?
Using Xpath I would make usage of this expression:
//*/text()

Broken links of files in <img> tag ASP.NET

I'm working on a asp.net project in Visual Studio 2012. This site is contains of download section and picture galleries. I'm using such code to show pictures added into a gallery.
string tag = "<img src=\"{0}\" width=\"64\" height=\"64\" /><br />";
addedPics.InnerHtml += string.Format(
tag, Request.Url.Authority + "/admin/pictures/" + fileName);
which results in tag like below
<img src="localhost:49179/admin/pictures/sandbox_01_ME.jpg" width="64" height="64" />
before this I used code like below in a Asp:Repeater:
<img src="<%# Request.Url.Authority + "/admin/Pictures/" + Eval("Filename") %>"
style="float: left" width="64" height="64" />
but neither of them is working.
Any help would be appreciated.
Use a relative links in the images.
<img src="/admin/pictures/sandbox_01_ME.jpg" width="64" height="64" />
Code should be like this:
<img src="<%# "/admin/Pictures/" + Eval("Filename") %>"
style="float: left" width="64" height="64" />
When you run locally, you will have trouble trying to build the absolute URL.

HTML5 attribute "required" inside UpdatePanel, not working (asp.net 4)

In my .aspx file, I have an UpdatePanel with some textboxes and a button. If I add the "required" attribute to the textboxes, the postback stops working. I can see in Firebug that it's not posting at all. If I remove the "require" attribute, it's working as it should. Am I doing something wrong here, or is it a way to fix it?
The code for the UpdatePanel:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<%# GetComments (DataBinder.Eval(Container, "DataItem.id")) %>
<div class="contact_form">
<ul>
<li>
<h2>Skriv en kommentar til oss!</h2>
</li>
<li>
<asp:TextBox ID="txtName" runat="server" CssClass="txtBox" placeholder="Ditt navn" required />
<span class="form_hint">Ditt navn skal stå her</span>
</li>
<li>
<asp:TextBox ID="txtCaptcha" runat="server" CssClass="txtBox" required placeholder="Skriv resultatet av 10 pluss 6 her" />
<span class="form_hint">Du klarer vel å regne ut 10+6? :-)</span>
</li>
<li>
<asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine" required placeholder="Din kommentar" />
</li>
<li>
<asp:Button ID="cmdSaveComment" CssClass="button" runat="server" CommandName="SaveComment" CommandArgument='<%# Eval("id")%>' Text="Puliser kommentar" />
</li>
</ul>
</div>
</ContentTemplate>
</asp:UpdatePanel>
I guess you don't get error. So, if required field specified, an input field must be filled out before submitting the form.
try giving some value in the textboxes.
EDIT
Though, I should have mentioned my previous answer as a comment. However, this seems to be a bug mentioned here.

ASP - Why does this img not display

The following code will not display the image, it does show that an image is present but the image does not display. Any ideas?
<%# Page Language="C#" MasterPageFile="~/Main_MP.master" AutoEventWireup="true" CodeFile="Phone.aspx.cs"
Inherits="Phone1" Title="Talk & Txt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<img src="Talk & Txt Page.jpg" alt="Smiley face" height="42" width="42" />
<br />
<asp:Label ID="lblCounter" runat="server" Visible="False" Font-Bold="True" Font-Names="Calibri" Font-Size="Small" ForeColor="#C00000"></asp:Label></div>
</div>
</asp:Content>
The unescaped ampersands may be causing your issue.
Rename the image file to TalkAndTxtPage.jpg - All files linked via URL, including images, are best named without using reserved or unsafe characters (both space (" ") and ampersand ("&") fit into this category). Reference - http://www.blooberry.com/indexdot/html/topics/urlencoding.htm
Then do this (you also had a bad <div> tag):
<%# Page Language="C#" MasterPageFile="~/Main_MP.master" AutoEventWireup="true" CodeFile="Phone.aspx.cs"
Inherits="Phone1" Title="Talk & Txt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<img src="TalkAndTxtPage.jpg" alt="Smiley face" height="42" width="42" />
<br />
<asp:Label ID="lblCounter" runat="server" Visible="False" Font-Bold="True" Font-Names="Calibri" Font-Size="Small" ForeColor="#C00000"></asp:Label>
<div>
</div>
</asp:Content>
Replace the spaces in the image URL (ie, the 'src') attribute with %20.
You can't have spaces in a URL, but %20 should work.
Does that image is in the same directory as the page, otherwise you need to give the full relative path
Remove the spaces from the image name.
<img src="Talk-Txt-Page.jpg" alt="Smiley face" height="42" width="42" />
Also, where is the image located in relation to the page? You might need to point to the directory.
<img src="/images/Talk-Txt-Page.jpg" alt="Smiley face" height="42" width="42" />
Hope this helps!
this alone with an image named Talk & Txt Page.jpg works on my side.
I see a couple of ending div tags in your code that do not have a beginning div

Html.TextAreaFor(x=>x.Title) Validate Meta Don't Work

When use ASP.NET MVC 3 Razor, it can't reader validate meta info in HTML tag.
<textarea rows="2" name="Title" maxlength="100" id="Title" cols="20"
class="textbox inp-widx6 tit-2">
50% OFF Andrew Christian Olympic Deep V Tee, now only £16.34
</textarea>
If use Html.TextBoxFor(x=>x.Title) will reader below content.
<input type="text"
value="50% OFF Andrew Christian Olympic Deep V Tee, now only £16.34"
name="Title" maxlength="100" id="Title"
data-val-required="Product title is required."
data-val-length-min="50" data-val-length-max="100"
data-val-length="The Title must be at least 50 characters &amp;
no more than 100 characters." data-val="true" class="textbox inp-widx6 tit-2" />
Just reconfirm you have following all steps mentioned steps.
http://www.codeproject.com/Articles/422573/Model-Validation-in-ASP-NET-MVC

Resources