I am trying to use N2CMS in an existing MVC website. The problem is that when I browse the dhasboard (http://localhost:64826/N2/), I get some of the Menu links with Tilde.
e.g. This is the ink for "templates"
http://localhost:64826/N2/~/N2/Content/Templates/Default.aspx?selected=/start/&item=2
Here is an image of the problem: http://postimg.org/image/7xaup0idz/
Any idea how to get these links working?
I had to download the source code and change the method "ToAbsolute(string applicationPath, string path)" in N2.Web.Url.cs.
Related
I created an add-in to an existing software (Revit) and I want to embed an image (my company's logo) in the add-in's button.
Here is my current code for it:
'Set the large image shown on button
Dim uriImage As New Uri("\\10.8.60.3\Shared\REVIT\FSElogo.png")
Dim largeImage As New BitmapImage(uriImage)
MainButton.LargeImage = largeImage
It works pretty well and the logo is correctly displayed, however it requires the computer to have access to the server located at \\10.8.60.3. When working from home, we do not have access to this server and Revit throws an error when starting because of it.
So I tried adding the FSElogo.png file to my VB.Net project as a Resource and then tried to use My.Resources to access the image, effectively removing the need for an external image to be used.
Well, I can't get it to work.
I tried replacing the code above by
MainButton.LargeImage = CType(My.Resources.ResourceManager.GetObject("FSElogo.png"), Windows.Media.ImageSource)
But it doesn't work. It doesn't throw an error, but no image is displayed on the button.
If I don't cast my Object to an ImageSource I get an implicit conversion from Object to Image error, and I'm not even sure my ResourceManager is even really returning the object FSElogo.png.
What am I doing wrong here?
I am using the VS provided button with the .BackgroundImage property. Notice that the extension of the file is not included in the resource identifier. If this doesn't work, you will have to explain exactly how you added the resource to your project.
MainButton.BackgroundImage = My.Resources.FSElogo
I am executing my automation scenarios using SpecFlow with Visual Studio.
I want to Embed a custom image to the HTML report which was generated by SpecFlow. That image is a screenshot i am taking whenever scenario is failed in Hooks.
Please help me out.
This is what i am seeing in the html report - enter image description here
Take a look at the SeleniumWebTest sample project here. This sample project shows how to include a screenshot in your report. While the example is Selenium-based, the same principles apply to other frameworks.
A more in-depth explanation of how this works can be found here under "Including Screenshots". Essentially, you need to abuse the console and use it to output your images' file paths.
Any data written to the console is available in your report (this is how the trace details are received by the report). You will need to parse the data written to the console and strip out the file path you want to embed. Make sure that you strip the image path completely so that you don't output the file path as part of the other trace information received from the console.
Edit: I've since discovered that there seems to be an issue with the template in the sample project. The following section in the template is bugged:
class="log">#Raw(FormatTechMessages(traceEvent.TechMessages.TrimEnd()).Replace("SCREENSHOT[ <a href="http://specflow.org/plus/documentation/,-/" data-page=",-"<img width='1000' src=").Replace("</a> ]SCREENSHOT", "</img>"))</pre>
This is because the console no longer seems to be formatting the file as a hyperlink, so the replacement string is never found. Updating this line in ReportTemplate.cshtml seems to have done the trick:
<pre class="log">#Raw(FormatTechMessages(traceEvent.TechMessages.TrimEnd()).Replace("SCREENSHOT[ ", "<img width='1000' src=\"").Replace(" ]SCREENSHOT", "\"</img>"))</pre>
As the console is no longer formatting the file as a hyperlink, you only need to replace the padding (in this case the "SCREENSHOT[]SCREENSHOT") from the string and instead enclose the path with the <IMG> tag. You also need to add the quotes around the file path.
I have stored the URL in the excel file. I read the excel file and put the url in the java Properties. i retrieve the url from properties and try to launch it, but i get the error "Target URL http://demo.guru99.com/V4/ is not well-formed." Please help.
Properties pInputOutPut= new Properties();
//here i have code to read the excel file and load the url to properties
_driver.get(pInputOutPut.getProperty("Url"));
I had it resolved by appending (http/https) prefixes to my URL which were missing when I encountered this error. Hope this helps!
Are you sure there aren't some special characters in your string that aren't visible? Microsoft products tend to add more than what is desired
This issue resolved by itself!!. I tried a couple of different urls it worked, then i switched back to my original url it worked too.
I have created some extensions for typo3 and added it to TYPO3 Extension Respository
But after uploading and checked through out to see the "manuel" added along with it as a "link". But it showing like
Manual : Not available
One of my extension contain only manuel.sxw file in doc/ folder
and one of it contain wizard_form.html and wizard_form.dat in it. But no use.
Please any one help. thank you.
Check these things in your documentation
Correct the Index of Document
Double check the page number in indexing
Give proper headings
Correct the alignment of document
Highlight indexed headings than other text content
try this
Thankz
I really like how Hyperlinq allows you to hyperlinq to a website, but what about to a file? I would like to do something like this:
new Hyperlinq(#"C:\temp\afile.txt");
This is a bug in LINQPad - I've fixed it for the next build.
I have tried
new Hyperlinq(new Uri(#"C:\temp\afile.txt").ToString());
With this you get a valid hyperlink but I failed to click on it to open the file.
If you paste the link into a browser it works. I don't know if its a limitation of LinqPad.