Hi,
I need to display a content of a website by passing a value.
my link is
http://www.xxx.com/xxx.aspx?country=code;
here i want to pass a code as a variable.(because code value is 100,101,102).According to the value the content will be changed.
But i cannot get result.
Can anybody please give me the code.
Regards
judy
I need to display a content of a website by passing a value.
my link is
http://www.xxx.com/xxx.aspx?country=code;
here i want to pass a code as a variable.(because code value is 100,101,102).According to the value the content will be changed.
HTML:
So i get a value of code in a textfield and store it in a variable called code.
code=textfield.text;
//To concatenate url with "code"
NSString *urlContents = [NSString stringWithFormat:
@"http://www.xxx.com/xxx.aspx?country=?
%@",code ];
urlContents having(http://www.xxx.com/xxx.aspx?country=100).
//To display Contents
*NSString *urlContents1 = [NSString stringWithContentsOfURL:
[[NSURL alloc] initWithString:urlContents]];
I use a textview to display a content, so ,
textview.text=urlContents1;
But i cannot get result.
Can anybody please give me the code.
Regards
judy