|
Try to replace the string that your are showing on text box using BR
like,
string strAddress= strAddress.Replace("\r\n", "<BR>");
Hope this may helps you
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
A simple newline puts character 13 on the input. So if you store it in the database it will hold only character 13(\n)
In case you show in DataList, the formatting is done using HTML, so you need <br/> to have new line.
Replace \n\r with <br/> and it will work.
|
|
|
|
|
I am working on a project and need help that how sms are sent and read on a web page developed in ASP.NET.
please reply if know as soon as possible.
tina.
|
|
|
|
|
tina sharma wrote: please reply if know as soon as possible
That is rude.
You can look into this[^] library.
Hope this helps.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
|
how to identify the duplicate records in sql server 2005
|
|
|
|
|
First you tell me that what does it has to do with ASP.Net?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Doesnt relate to ASP.NET
Use Distinct to your select statement.
Like
Select Distinct Name from Employee
So if there is duplicate name in Employee table, it will be taken once.
|
|
|
|
|
suppose name is the column in your table that has duplicate values .. use a query something like this
select id,name,count_of_names count(name)
from tablename
groupby name
having count_of_names > 1
|
|
|
|
|
always try to reply to the original post. If you reply to my post, the original guy will not receive any notification.
Anyway.. does it requires groupby when it could be done without it. Yes .. In your case its needed as you used count(name).
|
|
|
|
|
program to restrict textarea to 800 in javascript
|
|
|
|
|
You need to specify a style with a width as 800 px.
And btw, this is NO ASP.Net question.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
yes... you are right,
textarea doesnt take MaxLength ...
use this
<script language="javascript" type="text/javascript">
function isValid(elem, maxlen)
{
return (elem.value.length <= maxlen);
}
</script>
<textarea name="txt" onkeypress="return isValid(this, 800);" ><textarea>
Also place rows and columns you want to the textarea.
|
|
|
|
|
if(textArea.length > 800)
{
alert("length exceed..");
}
|
|
|
|
|
textArea doesnt have length property. Its textArea.value.length
Also if you reply to my reply, the original user will not get the notification. So when you want to give answers always reply to the user who have the question.
|
|
|
|
|
hi,
i have an asp.net page where is a flash media player (ASPNetFlashVideo) now i want user can only watch the video and can not downloading this video specially in Maxthon explorer .Thanks
|
|
|
|
|
AFAIK, you have no chance to prevent this straight away.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I've done this. What I did was, write a http handler that handled downloading of movies, and I modified an flv player so that only that player could play them. That way, the URL to the files was hidden, and only the player could decode them. However, even then, if you want your movies to be playable at all, you probably can't stop someone who is really determined from finding them. All you can hope to do, is a test that will satisfy a manager that they are not exposed.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Actually the flv player is downloaded totally to the client, and the video is buffered to it. There are few browser plugins that can capture the bufferred stream and write to a file. I think there is no way to stop this from the server side, and buffering is done in the client.
What you can do to secure, is to design the player a better way.
|
|
|
|
|
|
Maybe this[^] will help
only two letters away from being an asset
|
|
|
|
|
thnak you but am working with asp.net
al hajjaj
|
|
|
|
|
You should buy a basic ASP.NET book and work through it, because you seem very confused.
You write a template for the link in the gridview that includes the url, exactly as you're showing it, except it needs a value - deteles.aspx?Id_no=3 for example. Then you use Request.QueryString to read the value on the other page.
This is 101 stuff. I assume this is not a commercial project, but one for learning. Apart from anything else ( such as your lack of experience ), your client won't be happy to get a page with a link that says 'show deteles'......
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
U Can Used This
Response.Redirect(string.Format("default.aspx?Page=Resern&navigation=view&ReservationID={0}&SegmentID={1}&stat
us={2}", reserID, segID,status), true);
if it is Integer format u need to use {o}
reserID,segID,status is integer
if it helps Mark It As Answer
|
|
|
|