why it is not working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why it is not working?

i started learning MVC (asp.net).... string Index(string s) { return "hello"+s; }... It is only showing hello,,why it is not showing the value of s which i have passed .... I watched a video..he wrote the same syntax...

18th Aug 2017, 4:52 PM
Somnath Ghosh
Somnath Ghosh - avatar
2 Answers
+ 2
you need to tell us the error you are getting...ohh I see. how are you calling Index()?
19th Aug 2017, 3:19 AM
Pablo Hernandez
0
It should work like that. Can you post some more code. It looks like s is empty. At the moment Index is called.
18th Aug 2017, 8:22 PM
sneeze
sneeze - avatar