freelanceprogrammers.org Forum Index » ASP

Re: "<br>, <Script>" handeling


View user's profile Post To page top
rajendra937 Posted: Thu Jan 06, 2005 8:30 pm


Joined: 06 Jan 2005

Posts: 6
Re: "<br>, <Script>" handeling
You can set validateRequest = false in the page directive, then use HtmlEncode
and HtmlDecode to read the data entered in the textbox. When you do this, even
though users enter html or script tags they do not generate an error and
HtmlEncode makes sure that they are treated as plain text but not html or script
tags, so malicious code could be prevented from executing on the page or server.

Rajendra.

_____

From: Arindam [mailto:e_arindam@...]
Sent: Thursday, January 06, 2005 8:45 AM
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: [AspNetAnyQuestionIsOk] "<br>, <Script>" handeling

Hi,
Friends

i want to know when someone has entered "<br>, <Script>" this type of tag
in my multiline text box (in Asp.net using C#). It throwing errror at the time
of
submitting.


What is the solution ...is there anything for encoding ...or ...what shud i do ?


Thanks
Arindam







Chris Hynes <chrish@...> wrote:

Find the first position of the regex, then do an indexof for "@" starting at
the found position + the length of the regex. Then get the string in
between.

Chris

-----Original Message-----
From: Falls, Travis D (HTSC, CASD) [mailto:travis.falls@...]
Sent: Monday, January 03, 2005 12:30 PM
To: `AspNetAnyQuestionIsOk@yahoogroups.com`
Subject: RE: [AspNetAnyQuestionIsOk] subString


Thanks everyone for responding. The issue I have though is that I will not
know the length. I do know though that I need the string between the first
index of [myRegularExpression] and `@`

Travis D. Falls |Consultant, Raft.Net IT | 860.547.4070 |
travis.falls@...



-----Original Message-----
From: Tina [mailto:tina@...]
Sent: Thursday, December 30, 2004 2:25 PM
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: Re: [AspNetAnyQuestionIsOk] subString


Use the Substring method on String with method signature Substring(int
startIndex, int length) to do something like this:
myString.Substring(54, 64-54) [tinker with the length to decide what you
mean by "between" - ends inclusive or not]



----- Original Message -----
From: Falls, Travis D (HTSC, CASD)
To: `AspNetAnyQuestionIsOk@yahoogroups.com`
Sent: Thursday, December 30, 2004 2:06 PM
Subject: [AspNetAnyQuestionIsOk] subString


I have to get a substring from a String. I have the starting point and
the
ending point meaning I need the string that is between position say 54 and
64. How can I do this?

Travis D. Falls |Consultant, Raft.Net IT | 860.547.4070 |
travis.falls@...



-----Original Message-----
From: Mischa Kroon [mailto:mischa@...]
Sent: Thursday, December 30, 2004 9:59 AM
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: RE: [AspNetAnyQuestionIsOk] Re: كل سنة و انتم طيب (happy
holidays)



Winform controls I am not familiar with. If you have a minute, please
direct me to where I can find out something, or explan something

----
URL:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=187




-----Original Message-----
From: scaevola637 [mailto:scaevola637@...]
Sent: donderdag 30 december 2004 12:42
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: [AspNetAnyQuestionIsOk] Re: كل سنة و انتم طيب (happy holidays)



--- In AspNetAnyQuestionIsOk@yahoogroups.com, "Mischa Kroon"
wrote:
> Embedded winform controls / active x is the answer.
>
> They are MS only solutions.

I am somewhat retarded, so please bear with me.

As I understand it, I can write active x controls in vs.net. I can then
include them in my web application and users can download them and use
them to do whatever.

Winform controls I am not familiar with. If you have a minute, please
direct me to where I can find out something, or explan something

#1057;#1087;#1072;#1089;#1080;#1073;#1086;







Yahoo! Groups Links











Yahoo! Groups Links








This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If
you are not the intended recipient, please notify the sender
immediately by return email and delete this communication and destroy all
copies.


Yahoo! Groups Sponsor
ADVERTISEMENT





----------------------------------------------------------------------------
--
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

b.. To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




[Non-text portions of this message have been removed]





Yahoo! Groups Links








This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If
you are not the intended recipient, please notify the sender
immediately by return email and delete this communication and destroy all
copies.




Yahoo! Groups Links











Yahoo! Groups Links










Thanks & Regards

Arindam
Web Designer & Developer




Yahoo! India Matrimony: Find your life partneronline.

[Non-text portions of this message have been removed]



_____

Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

* To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
<mailto:AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com?subject=Unsubscribe>

* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .


[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
peter_brunone Posted: Thu Jan 06, 2005 11:08 pm


Joined: 11 Jan 2006

Posts: 38
Re: "<br>, <Script>" handeling
Hi Arindam,

   It might help to tell us what the error is.

Cheers,

Peter

From: Arindam <e_arindam@...>

Hi,
Friends

i want to know when someone has entered "
, " this type of tag
in my multiline text box (in Asp.net using C#). It throwing errror at the time
of
submitting.

What is the solution ...is there anything for encoding ...or ...what shud i do ?

Thanks
Arindam

Chris Hynes wrote:

Find the first position of the regex, then do an indexof for "@" starting at
the found position + the length of the regex. Then get the string in
between.

Chris

-----Original Message-----
From: Falls, Travis D (HTSC, CASD) [mailto:travis.falls@...]
Sent: Monday, January 03, 2005 12:30 PM
To: `AspNetAnyQuestionIsOk@yahoogroups.com`
Subject: RE: [AspNetAnyQuestionIsOk] subString

Thanks everyone for responding. The issue I have though is that I will not
know the length. I do know though that I need the string between the first
index of [myRegularExpression] and `@`

Travis D. Falls |Consultant, Raft.Net IT | 860.547.4070 |
travis.falls@...

-----Original Message-----
From: Tina [mailto:tina@...]
Sent: Thursday, December 30, 2004 2:25 PM
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: Re: [AspNetAnyQuestionIsOk] subString

Use the Substring method on String with method signature Substring(int
startIndex, int length) to do something like this:
myString.Substring(54, 64-54) [tinker with the length to decide what you
mean by "between" - ends inclusive or not]

----- Original Message -----
From: Falls, Travis D (HTSC, CASD)
To: `AspNetAnyQuestionIsOk@yahoogroups.com`
Sent: Thursday, December 30, 2004 2:06 PM
Subject: [AspNetAnyQuestionIsOk] subString

I have to get a substring from a String. I have the starting point and
the
ending point meaning I need the string that is between position say 54 and
64. How can I do this?

Travis D. Falls |Consultant, Raft.Net IT | 860.547.4070 |
travis.falls@...

-----Original Message-----
From: Mischa Kroon [mailto:mischa@...]
Sent: Thursday, December 30, 2004 9:59 AM
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: RE: [AspNetAnyQuestionIsOk] Re: كل سنة و انتم طيب (happy
holidays)

Winform controls I am not familiar with. If you have a minute, please
direct me to where I can find out something, or explan something

----
URL:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=187

-----Original Message-----
From: scaevola637 [mailto:scaevola637@...]
Sent: donderdag 30 december 2004 12:42
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: [AspNetAnyQuestionIsOk] Re: كل سنة و انتم طيب (happy holidays)

--- In AspNetAnyQuestionIsOk@yahoogroups.com, "Mischa Kroon"
wrote:
> Embedded winform controls / active x is the answer.
>
> They are MS only solutions.

I am somewhat retarded, so please bear with me.

As I understand it, I can write active x controls in vs.net. I can then
include them in my web application and users can download them and use
them to do whatever.

Winform controls I am not familiar with. If you have a minute, please
direct me to where I can find out something, or explan something

#1057;#1087;#1072;#1089;#1080;#1073;#1086;

Yahoo! Groups Links

Yahoo! Groups Links

This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If
you are not the intended recipient, please notify the sender
immediately by return email and delete this communication and destroy all
copies.

Yahoo! Groups Sponsor
ADVERTISEMENT

----------------------------------------------------------------------------
--
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

b.. To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

[Non-text portions of this message have been removed]

Yahoo! Groups Links

This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If
you are not the intended recipient, please notify the sender
immediately by return email and delete this communication and destroy all
copies.

Yahoo! Groups Links

Yahoo! Groups Links

Thanks & Regards

Arindam
Web Designer & Developer

Yahoo! India Matrimony: Find your life partneronline.

[Non-text portions of this message have been removed]

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/




[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help