i have a textbox in my web form and i want to input any word with any character. so, only i want to check length of textbox less than 200 character. how can i do it with regular expression? and if i want to block some character how can i do it?
My issue is that , need to change the column name(following format "Remove first character and after 3rd character insert colon") of the gridview (which is binded with XMLTextReader). Without changing directly XML file, Required to change the column name dynamically at runtime .
I looked up the msdn documentation and it says that InvalidUserName is thrown when it does not find the username in the database, which is fine because the user I am creating should not exist in the database. If I use test@example.com, it works, but if I try it with test.@example.com, the status from Membership.CreateUser is InvalidUserName.
I have a legacy MySQL database which stores the user passwords & salts for a membership system. Both of these values have been hashed using the Ruby framework - roughly like this:
So both values are stored as 40-character strings (varchar(40)) in MySQL. Now I need to import all of these users into the ASP.NET membership framework for a new web site, which uses a SQL Server database. It is my understanding that the the way I have ASP.NET membership configured, the user passwords and salts are also stored in the membership database (in table aspnet_Membership) as SHA1 hashes, which are then Base64 encoded (see here for details) and stored as nvarchar(128) data.
But from the length of the Base64 encoded strings that are stored (28 characters) it seems that the SHA1 hashes that ASP.NET membership generates are only 20 characters long, rather than 40. From some other reading I have been doing I am thinking this has to do with the number of bits per character/character set/encoding or something related.
So is there some way to convert the 40-character SHA1 hashes to 20-character hashes which I can then transfer to the new ASP.NET membership data table? I'm pretty familiar with ASP.NET membership by now but I feel like I'm just missing this one piece. However, it may also be known that SHA1 in Ruby and SHA1 in .NET are incompatible, so I'm fighting a losing battle.
I want to read a line character by character, in the sense I want to read each and every character on the line. can I can make that line as a string. breaking string into substrings ? if possiblw how.? I m unable to start. can anyone give the code.
anybody knows how to use ckeditor 3.2.1 in asp.net pages. i tried to follow one tutorial but that works only for simple asp.net pages. when i apply it to content page then it is not working.
I want to use CKEditor for a comment field in my ASP.NET MVC 2 application, but can't get it to work. Here is what I have:
The textarea where I try to integrate the editor:
[code]....
And the document ready function:
[code]....
I don't know if the problem is with the TextareaFor helper method, where I tried to set the id to Editor1. I'm pretty new to MVC as well, so I guessed this was how to do it.
I'm using ckeditor in my page and it's work fine, except when I'm sending email. The mailbody is empty in FireFox, in IE it works fine. What can it be? Here is my code
I'm not so much into JavaScript, so I'm not able to use the new CKEditor right away. Until now I was using the FCKEditor ASP.net wrapper, which works fine for me. Unfortunatly the official wrapper is not for version 3.
I've googled [URL] but the project is over a year old and seems like a beta to me.
Is there a stable ASP.net wrapper for the CKEditor available? Or how can I implement it into my ASP.net Webapplication project?
I have added ckeditor on my page. the thing is that when i make changes in the value in the ckeditor and post the value to the controller the new posted value is not there (the previous value is coming). the new value comes on posting it second time.the cycle goes on(the changes in the value in the ckeditor comes on the second posting).if i remove the createsuccess call and use html.beginform it work fine(but i have to return the value from the controller). what i am doing wrong
The CKEDITOR seems to integrate with the TextAreaFor helper but I cannot figure out how to avoid throwing a request validation exception. This is my code from my View page:
<div class="editor-field" > <%= Html.TextAreaFor(model => model.WebCopy, 10, 80, "" ) %> <script type="text/javascript"> var CKEDITOR_BASEPATH = '/ckeditor/'; $(function (e) { // to show the CK editor CKEDITOR.replaceAll( { htmlEncodeOutput : 'true' }); }); </script> </div>
I have tried setting <%@ Page ValidateRequest="false" %> and adding <httpRuntime requestValidationMode="2.0" /> to the web.config file.
I am trying to get ckeditor working on my site (having successfully used in on previous sites in the past).I have copied the ckeditor (main download) folder to the root of my site and I have added the FCKeditor.Net_2.6.3 dll to my site (plus added it to the toolbox). I have set the basepath to "~/ckeditor/" and when I view the page in a browser it tells me that the following file is missing.
Does anyone know where I can find this file (as it is nowhere to be seen in the ckeditor_3.3.1 download, in fact I don't have a folder called "editor" at all)?