Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2008-10-08 : 06:39:43
|
Hello,I have the following script below. But it does not work.I want to URL Encode the string message. But it doesnt work.Any pointers ?<script runat="server"> protected void Button1_Click(object sender, EventArgs e) { string message; message = TextBox1.Text; message = Server.HtmlEncode(message).ToString(); Label1.Text = message.ToString(); }</script> |
|
cvraghu
Posting Yak Master
187 Posts |
Posted - 2008-10-08 : 06:56:01
|
I think you are using HTMLEncode istead of URLEncode. Please check Server.URLEncode |
|
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2008-10-08 : 07:07:47
|
Silly me. How could I.... I think its the late nights |
|
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2008-10-08 : 07:08:41
|
It works now. Thanks |
|
|
|
|
|