How does Html.ActionLinkMaxLengthQTip work? - asp.net-mvc-3

I googled the exact phrase Html.ActionLinkMaxLengthQTip and not much came up?
What does this do? where can i see an example?
<%: Html.ActionLinkMaxLengthQTip(Html.Resource(Resources.Global.Button.Create), "StepType", "Create", "Training")%>
i also found this:
<%: Html.GetQTipFor(model => model.End) %>
I also googled the exact phrase and came up with nothing
from the code i have i cannot figure out what this is doing.
any help?
thanks

Going by your comment I would propose this is a custom extension specific to your application.
If you do a find all within your solution (probably in your App_Code) you should find where this html extension is defined and you should be able to see what it is doing.

Related

¿How can I locate comments box before the list of comments in Blogger?

The design of comments of Blogger set the comments box at the end of the comments lists. I think its great, unless there are too many comments. So, I was looking for a way to put the comment box first, I think its better for UX!
Can you help me, please?
PD: I know Google+ comments has this option, but I prefer to keep on my Blogger account! In fact, they (Blogger Help Forum) recomended me with you!
This is what I would like to do:
Go to Theme > Edit HTML, search for <b:includable id='threadedComments' var='post'> and move the block within <p class='comment-footer'> before <div class='comments-content'> like the following

Why isn't there ActionLink in MvcContrib.FluentHtml?

While perusing through the various helpers for MvcContrib's FluentHtml project (and loving the composability of it all), I realized that there was no option for creating anchor tags that go to actions, like that of Html.ActionLink(...).
I can't understand why something like this wouldn't have already been implemented. I'd love to do something like this:
<div>
#(this.ActionLink("Go Here!", "AwesomeAction", "Awesome")
.Class("amazing")
.Attr("awesome", true))
</div>
I understand this is more of a discussion, which I also understand is frowned upon as SE. In light of that, could someone help me understand how something like this might be created in the FluentHtml project? If it does indeed work, I would love to spruce it up and submit it as a patch.
Thanks! Feedback is welcome!

Link to a specific image/slide in gallerific

I'm having problems with something which seems like an easy task, and most probably a stupid question. It will probably be my all time low experience in programming but I would really appreciate any help!
I'm using Galleriffic to display my portfolio site, and I am looking for a way to directly link to an image+description not being the first in the gallery. I would like it to link from other webpages, or from plain text/pdf documents.
In short, I would like it to link to a webaddress of slide 5 with something like:
Slide 5
but doing it this way obviously doesn't work.
Although others have tried to explain:
https://stackoverflow.com/a/7910501/1074297
jquery cycle link from external page to specific slide?
I can not seem to accomplish it, and it does not help at all that I am not a programmer.
not sure if it is too late, have been search the solutions for whole day, final found out the example 4 in the official website actually make the #link show on the address....so you can actually link the specific image ('slide'') from external page...amazing!!!!!
check this out
http://www.twospy.com/galleriffic/example-4.html#5
You can find the script after all the or just before ... and place it to your template...it works well for me, hope it helps, good luck

Asp.Net MVC 3 - #Html.Action won't render/return any HTML

I've been moving a fairly new project from ViewPages to Razor today, and all seems to be going well. Except I'm trying to use Html.Action to render a user control and it won't render anything.
So I have a Shared/_Layout.cshtml file which is referenced in Home/Index.cshtml
Index.cshtml has the following:
<article>
#Html.Action("LatestBlogsMainPanelWidget", "Blogs")
...
</article>
I've put traps in the BlogsController, so I know that's being requested. I also know that a model is being returned, that the LatestBlogsMainPanelWidget is being found by the view engine, and even some dummy Razor syntax code is being run:
#{
var s = "hello";
}
but the plain html in this file isn't making it to the browser. I've tried other (previously working) partials too and they won't appear either (view source on the page confirms it's not there).
I've also tried substituting for
#{ Html.RenderAction(...); } without success. HTML either side of the #Html.Action is appearing, so I know Index.cshtml is displaying properly.
Even more strangely the _Layout file also has Html.Action commands and they do appear fine.
I'm really not sure what else to check, or how to confirm that the pipeline is getting the HTML. Can anyone help at all?
Thanks!
Put a Layout = null on the partial view and it will work fine.
Try this:
#{Html.RenderAction("LatestBlogsMainPanelWidget", "Blogs");}
The brain is a funny thing, and despite spending several hours on this yesterday, it took my dog waking me up in the middle of the night for a wee for my subconscious to stumble upon the answer.
If this had anyone else stumped, I'm not surprised. I hadn't mentioned because it hadn't dawned on me that I was using a partial-level caching system similar to one designed by Steve Sanderson. It suddenly struck me that this could be the cause, since to the best of my knowledge Razor pages go through far less pipeline processing than WebForm pages. The caching filter is probably not doing what it needs to do, or at the right time.
I've confirmed that commenting out the OutputCache filter on the Actions in question has fixed the problem.
I've no idea if this issue is true of the page-level caching as it's not something I find useful.
While searching solutions for this issue, I have find out three measure issues for not proper rendering of Html.Action and Html.RenderAction. Please verify have you done below things properly or not.
In your PartialView or View you have defined #{Layout = null;}.
Use return PartialView instead of View .
Decorate your action with [ChildActionOnly] attributes.
I hope by applying above all steps you can solve your issues.

ERB Ruby Templates -- Online Editor

I am aware of quite a few different JavaScript based online text editors for WYSISYG html editing, however I am trying to find something similar for ERB Ruby templates. Essentially it would be just like the other editors, however it would not garble or encode the <%= foo.to_s %> type code blocks.
Is there anything out there which will be capable of this? I am willing to try and modify and existing JS editor if there is nothing already, so any suggestions as to which one is the nicest to work with would be much appreciated.
Thanks
Amar
You can use the ProtectedSource configuration option in CKeditor for this purpose:
FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;

Resources