Click here to Skip to main content
15,891,431 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Trim command ? Pin
Krishna Varadharajan1-Nov-07 20:52
Krishna Varadharajan1-Nov-07 20:52 
GeneralRe: Trim command ? Pin
Malcolm Smart1-Nov-07 22:41
Malcolm Smart1-Nov-07 22:41 
GeneralRe: Trim command ? Pin
Krishna Varadharajan1-Nov-07 22:56
Krishna Varadharajan1-Nov-07 22:56 
GeneralRe: Trim command ? Pin
Malcolm Smart1-Nov-07 23:12
Malcolm Smart1-Nov-07 23:12 
AnswerRe: Trim command ? Pin
Guffa1-Nov-07 23:26
Guffa1-Nov-07 23:26 
GeneralRe: Trim command ? Pin
N a v a n e e t h1-Nov-07 23:43
N a v a n e e t h1-Nov-07 23:43 
GeneralRe: Trim command ? Pin
Krishna Varadharajan1-Nov-07 23:48
Krishna Varadharajan1-Nov-07 23:48 
AnswerRe: Trim command ? Pin
Guffa1-Nov-07 23:38
Guffa1-Nov-07 23:38 
krishnavaradharajan wrote:
query string is working


No, it's not working.

The values that you put in the url is not encoded properly, so the url is invalid.

When putting values in a query string, you have to encode them using Server.UrlEncode so that characters that have a special meaning in an url (or are invalid in an url, like spaces) are replaced with the proper encoded values.

Example:

string name = "hp & co";<br />
string home = "http://www.hpco.acme";<br />
<br />
string url = "SomePage.aspx?cmpName=" + Server.UrlEncode(name) + "&cmpUrl=" + Server.UrlEncode(home);


The contents of the url variable will be: "SomePage.aspx?cmpName=hp+%26+co&cmpUrl=http%3a%2f%2fwww.hpco.acme"

---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams

Questionopen MS word using COM Pin
dhatchu1-Nov-07 19:46
dhatchu1-Nov-07 19:46 
AnswerRe: open MS word using COM Pin
N a v a n e e t h1-Nov-07 20:19
N a v a n e e t h1-Nov-07 20:19 
QuestionGridview pagesize Pin
Sunil Wise1-Nov-07 19:45
professionalSunil Wise1-Nov-07 19:45 
AnswerRe: Gridview pagesize Pin
soni uma1-Nov-07 19:59
soni uma1-Nov-07 19:59 
AnswerRe: Gridview pagesize Pin
Imran Khan Pathan1-Nov-07 20:00
Imran Khan Pathan1-Nov-07 20:00 
GeneralRe: Gridview pagesize Pin
Sunil Wise1-Nov-07 20:19
professionalSunil Wise1-Nov-07 20:19 
GeneralRe: Gridview pagesize Pin
Imran Khan Pathan1-Nov-07 20:27
Imran Khan Pathan1-Nov-07 20:27 
GeneralRe: Gridview pagesize Pin
Sunil Wise1-Nov-07 20:39
professionalSunil Wise1-Nov-07 20:39 
GeneralRe: Gridview pagesize Pin
N a v a n e e t h1-Nov-07 20:29
N a v a n e e t h1-Nov-07 20:29 
GeneralRe: Gridview pagesize Pin
Imran Khan Pathan1-Nov-07 20:37
Imran Khan Pathan1-Nov-07 20:37 
GeneralRe: Gridview pagesize Pin
N a v a n e e t h1-Nov-07 20:43
N a v a n e e t h1-Nov-07 20:43 
GeneralRe: Gridview pagesize Pin
Imran Khan Pathan1-Nov-07 21:00
Imran Khan Pathan1-Nov-07 21:00 
GeneralRe: Gridview pagesize Pin
N a v a n e e t h1-Nov-07 21:23
N a v a n e e t h1-Nov-07 21:23 
GeneralRe: Gridview pagesize Pin
Sunil Wise1-Nov-07 21:05
professionalSunil Wise1-Nov-07 21:05 
GeneralRe: Gridview pagesize Pin
Malcolm Smart1-Nov-07 22:44
Malcolm Smart1-Nov-07 22:44 
QuestionProblem with static IP Pin
cm pandian1-Nov-07 19:28
cm pandian1-Nov-07 19:28 
AnswerRe: Problem with static IP Pin
Saksida Bojan2-Nov-07 23:22
Saksida Bojan2-Nov-07 23:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.