0

hi iam getting date as like '1/01/2010' from a dateofarrival(name of text box id) .......
i want to replace the ' from '1/01'2010'.,
iam interested to show as like 1/01/2010.........
plsa help me,,,,,,,,,,

here iam using asp.net with vb.net ........
here my coding is.....

Response.Redirect("check availability.aspx?ardate='" & dateofarrival.Text & "' ")


Dim ardate
ardate = Request.QueryString("ardate")
arrivaldate.Text = ardate

pls help me urgent...........

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by apegram
0

Friend kanuri1,

"urgent..." sounds unfriendly. Isn't it? Please help us to help you.

Please do not post threads with generic subjects such as "URGENT!!" or "HELP ME" or "PROBLEM". Instead, clearly state a phrase describing the problem as the thread's title.

I love learning and teaching languages, so feel free to talk to me in any language any time here.

0
Response.Redirect("check availability.aspx?ardate='" & dateofarrival.Text & "' ")


Dim ardate
ardate = Request.QueryString("ardate")
arrivaldate.Text = ardate

It is unnecessary to append single quotes around the value you are inserting into a querystring. However, you may want to include a call to Server.UrlEncode for the value.

Response.Redirect("check availability.aspx?ardate=" & Server.UrlEncode(dateofarrival.Text))
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.