Hello , how do I disable browsing to a http link from a Html editor. I have a vb.net web form with a html editor, when I add a hyperlink to the html editor, for example my application website for instance
http://myapplication/myloginpage.aspx
When I run and click the link I can browse my application from inside the Html Editor, which is so weird. How do I stop this from happening.
This is an Intranet application. And the component for Html Editor is of TMS.
I am using RPX for authentication. Now I get the user profile with identifier. What to do next to set authentication cookie and other things? Also the logout feature. in ASP.net 3.5 and C#.
I am using ASP.NET 4.0 and MVC 2 I have added these lines which i found in other articles -
To the Web-Config -
<httpRuntime requestValidationMode="2.0"/>
To the Controller -
<ValidateInput(False), AcceptVerbs(HttpVerbs.Post)>
To the View Page -
<%@ Page ValidateRequest="false" %>
But still gives me "A potentially dangerous Request.Form value was detected from the client"
I am trying to use the Markitp editor in this way -
<%= Html.TextAreaFor( model => model.Description,"markitup")%>
Google custom search code is provided as a form tag. However, Asp.net only allows a single form tag on a page. What is the best way to implement their code so you can include it on an aspx page (say as part of a Masterpage or navigation element).
how to read image in cell of the excel sheet. This sheet contain .jpeg formated images. I want as they are means in jpeg format. i am using asp.net and c# for this. please guide.
hey all,
I have to make a SMS sending application in .NET which uses a connected CDMA based Windows mobile 6.1 device to send sms. The problem is I have never worked on smartphone app development so don't have any idea about how should i go about it. Couldn't find anything useful on SO or elsewhere, so please guide me in the right direction.
Thanks in advance to all those who reply.
P.S.:I posted a similar question regarding blackberry here
hi,
i have a nant script that i use to build my .net project and i'm looking to see if there is a way to upload the resulted assemblies to some remote folder using an FTP task of nant.
i couldn't find any good example online, and i'm wonder if anyone know how to do it, if its doable at all.
FYI: i'm running it on a windows machine, if it makes any difference.
Thanks,
Ori
Greeting people,
i'm going to start working on project developed in ASP.NET
in this project i need to show the data in month calender like google's calender or something like that.
so my question is:
is there any control can i use to do this thing ?
if not what do u suggest ?
It seems that CompilationMode=Never doesn't permit Sessions to be properly wired.
It first complains that the EnbaleSessionState directive is not allowed on this page.
Explicitly assigning the System.Web.SessionState.IRequiresSessionState to the Page [1] avoids the null reference exceptions (around .Session access) but still doesn't persist or wire-up sessions correctly.
Has anyone successfully used ASP.NET Sessions with CompilationMode=Never?
Conceptually, why should these be disjoint??
[1] -
http://msdn.microsoft.com/en-us/library/system.web.ui.compilationmode.aspx
I would like to write a C# app that runs like an overlay on the desktop wallpaper. Similar to the way that desktop widgets or Rainmeter(rainmeter.net) runs; behind other apps but on top of the desktop wallpaper.
I cannot find any C# examples of this kind of behavior. Can someone point to me to some code?
Here is an example of what I am interested in creating: http://jabz.us/uploaded_images/screenCaptureRainmeter.png
I've mapped 'aaa.com' and 'www.aaa.com' to the same ip address with my hosting service provider. But because my SSL certificate only works for 'www.aaa.com', so what I want is when the user visit 'aaa.com', he will be redirected to 'www.aaa.com'.
I'm using ASP.Net MVC and IIS 7.
Thanks
I can not get the cell value of my Telerik asp.net listview control.I want to know how to get the cell value of any listview control .Each cell of my listview control contain Image and one check box .I want the cell value by clicking the on back end i mean in C# code.
I have some experience using parallel extensions in .Net development, but I was looking at doing some work in Java that would benefit from an easy to use parallelism library. Does the JVM offer any comparable tools to parallel-extensions?
I need to design a site map page of my website in asp.net.
I am confuse whether to use custom site map and reterive information from databse or direct reterive information from database and bind it to hyperlink?Please help.
I have to filter user input to on my web ASP.NET page:
<asp:TextBox runat="server" ID="recipientBankIDTextBox" MaxLength="11" />
<asp:RegularExpressionValidator runat="server" ValidationExpression="?" ControlToValidate="recipientBankIDTextBox" ErrorMessage="*" />
As far is I know SWIFT code must contain 5 or 6 letters and other symbols up to total length 11 are alphanumeric.
How to implement such rule properly? TIO
Is there a library or a class/function that I can use to convert an integer to it's verbal representation?
Example input: 4,567,788
Example output: Four million, Five hundred sixty-seven thousand, seven hundred eighty-eight
For reference, I am using C# and .NET 3.5.
I am using ASP.NET C# with mySql database. What is the best way for implementation of login system like Membership and Role. Membership and Role dont work with mySql database.
In my web app, I would like to show an "Admin" menu link only to users who have been added to the database as an administrator.
What would be the best way to do this in ASP.NET MVC 2?
At the moment, I am doing it by checking whether the user exists in the Admin database table for every page. Obviously, there must be a better way to do this.
If it helps, I am using Windows Auth.
I have a search page where I would like to stop the user entering a ' into textboxes, or replace it with a suitable character. Can anyone help me achieve this in asp.net vb ?
For example if a user searches for O'Reilly the search crashes with error:
Line 1: Incorrect syntax near 'Reilly'. Unclosed quotation mark before the character string ' '.
Thanks!
Hello,
I am looking for an SDK or API that I could utilize to simply grab a Bitmap or Byte[] from the fingerprint reader. Most of the SDKs out there do much more than this and require expensive licensing which I don't want. I will be integrating this into a .NET windows application.
One requirement, it needs to work with a Futronics FS80 which is a very popular fingerprint reader.
Any suggestions?
So if I have:
public class ChildClass : BaseClass
{
public new virtual string TempProperty { get; set; }
}
public class BaseClass
{
public virtual string TempProperty { get; set; }
}
How can I use reflection to see that ChildClass is hiding the Base implementation of TempProperty?
I'd like the answer to be agnostic between c# and vb.net
Hi,
I've got this nice USB barcode scanner and I'd like to readthe input using the USB driver and not the keyboard input.
How can this be accomplished using .NET? any ready libraries? I couldn't find anything of real use...
Thanks!
I am trying to set an auth cookie in OnAuthorization of my custom attribute in asp.net mvc(C#) application.
when the session expires(New Session), i am setting an auth cookie again to make it available until the users logout.
I have used the following to set the auth cookie,
//set forms auth cookie
FormsAuthentication.SetAuthCookie(strUserName, true);
But when i check HttpContext.User.Identity.IsAuthenticated, it returns false.
How to set an auth cookie in OnAuthorization of custom attribute?