User Profile
Collapse
-
please delete duplicate thread -
Posting to ASP.Net form from ASP.Net Form
I will post the question again and try to be more clear this time.
I currently use an HTML form (Login Form) to go to an ASP.NET page which is also a login Form. I need to change this because I am currently working inside an asp.net page and embedded forms won't do it.
The current HTML version is
...Code:<form name="Form1" id="Form1" action="http://98.141.202.213/ccweb/login.aspx"
-
considering the following is a c# standard
5 vote down check
C# is trying to interpret \d as an escape sequence, and \d is not a valid escape sequence (but \n and \t are, for example). You can either double up the backslashes to escape it ("^(\\d){4}$ "), or you can prefix the constant string with an at-sign: @"^(\d){4}$" .
I would be interested in your 'wise' answer on why...Leave a comment:
-
What are you talking about when i do your label example or my message box.show it works just fine, if there is something wrong with what i am doing i sure would appreciate some advice on how to fix it.Leave a comment:
-
-
I was trying to dynamically build the string and it doesn't like this line if you don't use a double \\ or the @ sign.. I admit in all my years i have somehow managed to avoid using the String.Format.Code:strText = String.Format(@"\u{0}" , Convert.ToString(c).PadLeft(4,(char)48));Leave a comment:
-
sure send me your email i will send you my program and you can see where i am having the difficulty...I would certainly appreciate the help.Leave a comment:
-
if it is a direct assignment yes it works fine. but if you are building a string it won't work.Leave a comment:
-
I was working on porting a project from VB to C# and I am unfortunately not the original designer otherwise i would have not of chosen to use a string to do as you put it strings out of control codes.
Basically it is is in the VB MD5_Crypt class that is doing a HexStrToBinStr and vise versa and int here they do the following
...Code:Public Function HexStrToBinStr(ByVal StrIn As String) As String Dim StrOut As
Leave a comment:
-
Ok this makes total sense, now if you take it one step further, how can i get the representation of label 12 to be part of a string rather than '\b'
so that i see something like this lœŠÐJ6’„¥'G when i look at the string in the watch window.. char(int).ToStr ing gives me most of the symbols the and and funny enough look different from the copy and paste in VB to here. but when i look at them in the...Leave a comment:
-
I mean no disrespect and I am sure you are a moderator for a reason but please do a little test for me....
System.Windows. Forms.MessageBo x.Show("\u0008" );
System.Windows. Forms.MessageBo x.Show("\u25d8" );
you will clearly see that while similar they are clearly different...
what i want to do is find out where the \u0008 is being pulled from so i can find other values...Leave a comment:
-
I did this because while it is similar to the Chr() function I am asking a totally different question, I would appreciate not merging a thread when i am asking a different question on a related topic. now for further reference the value i am looking for in the Chr() function duplication is not " \u25d8" it is actually "\u0008"
so I am sure that the original answer leads me on the right track i have not been able to find...Leave a comment:
-
Use ALT Shift Codes programatically
I would like to know if anyone knows how to creates a string programatically containing the alt shift codes of ascii values...here is the example.
http://indika.info/misc/special-alt-characters/
you can replicate this in notepad by holding down the ALT key press a number between 1 and 255 then release the ALT key.
I would like to pass in a value to a method...Leave a comment:
-
Ya I have never done it before so I don't even have a clue what to do.Leave a comment:
-
I asure you I am far from stupid, and I really don't appreciate your comment.
"You aren't catching that "12 inches" and "1 foot" are the same thing. "
it is not hard to understand 8 is 8 ... what i am saying is that i would like to have a call pass in to a method and have it return the character code image that is the equivalent of alt + 8 not the backspace or \ b but the pretty little black...Leave a comment:
-
This is exactly what i want returned back http://www.tedmontgomery.com/tutorial/altchrc.htmlLeave a comment:
-
OH YAHHHH I know what VB Chr() is doing now only I don't know how to replicate it in code.
if you open up notepad and you hold down your alt. key and press a number on the number pad key then let it go you will get a ascii code map character.
ie. alt 1 lift alt you get ☺
alt 2 lift alt you get ☻
and....
here it comes...
alt 8 lift alt you get ◘
this is exactly...Leave a comment:
-
P.s I am really picking on the fact that every other post i read on google had the answers above... it just happens that here a couple happen to be the same as those but you guys put them alot nicer than some other people replying to similar posts.Leave a comment:
-
It is the same but it is not the same, when you try to read the value back and translate it then it doesn't recognize the \b because it is reading one encoding and you are passing it another. this is why it is important that I discover what encoding the vb Chr() function is using so that i can match it so the rest of the code works.... It is funny that i read many forums and the answers i am getting here are all the same.
The common...Leave a comment:
-
I know it right, but it is not right character set here is what i see.. VB is obviously using a different Encoding but I can't seem to find out what....Leave a comment:
No activity results to display
Show More
Leave a comment: