Click here to Skip to main content
15,913,722 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Importing all images into React Inline component which is const Pin
jkirkerx2-Oct-19 13:00
professionaljkirkerx2-Oct-19 13:00 
QuestionQuery value is passed correctly but does not return any results in the query API string Pin
hm918-Sep-19 4:27
hm918-Sep-19 4:27 
I have a form that submit a query to an API. the parameter is passed correctly to the next page and I can print it as a test, but it is not passed to the API query


q='%"&Request.QueryString("id")&"%'


sometimes the result is just generic and does not include the query parameter. I can print it and the parameter is definitely passed to the page but it is just ignored or return an error: System.NullReferenceException: Object reference not set to an instance of an object. Any ideas on how to fix this? not sure if it is a formatting issue or the way the page is loaded.

This requests the query parameter and displays it on the page as a test (correct value is returned)


Form page:
dim intID as String
intID = Request.QueryString("id")
Response.write(intID) 


Result Page:
This is the Query Parameter section:
Dim doc As New XmlDocument()
doc.Load("http://api.tradedoubler.com/1.0/products.xml; q='%"&Request.QueryString("id")&"%';tdCategoryId=168;%20category=test?token=B17495243749DAC9660980F6FB98495928DDX123")


So when I use the browser - copy the link to the url with a parameter e.g. q=spain, I get the correct results but when embedded in the asp.net page, it doesn't work
AnswerRe: Query value is passed correctly but does not return any results in the query API string Pin
Richard Deeming18-Sep-19 7:35
mveRichard Deeming18-Sep-19 7:35 
GeneralRe: Query value is passed correctly but does not return any results in the query API string Pin
hm918-Sep-19 9:02
hm918-Sep-19 9:02 
GeneralRe: Query value is passed correctly but does not return any results in the query API string Pin
jkirkerx18-Sep-19 12:26
professionaljkirkerx18-Sep-19 12:26 
QuestionError: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
Member 245846716-Sep-19 23:07
Member 245846716-Sep-19 23:07 
AnswerRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
Richard Deeming17-Sep-19 0:39
mveRichard Deeming17-Sep-19 0:39 
GeneralRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
Member 245846717-Sep-19 18:37
Member 245846717-Sep-19 18:37 
GeneralRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
Richard Deeming18-Sep-19 0:37
mveRichard Deeming18-Sep-19 0:37 
AnswerRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
F-ES Sitecore18-Sep-19 2:36
professionalF-ES Sitecore18-Sep-19 2:36 
GeneralRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
Member 245846718-Sep-19 21:14
Member 245846718-Sep-19 21:14 
GeneralRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
F-ES Sitecore18-Sep-19 22:06
professionalF-ES Sitecore18-Sep-19 22:06 
GeneralRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
Member 245846718-Sep-19 23:36
Member 245846718-Sep-19 23:36 
GeneralRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
F-ES Sitecore18-Sep-19 23:43
professionalF-ES Sitecore18-Sep-19 23:43 
GeneralRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
Member 245846719-Sep-19 15:54
Member 245846719-Sep-19 15:54 
GeneralRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
F-ES Sitecore19-Sep-19 23:25
professionalF-ES Sitecore19-Sep-19 23:25 
GeneralRe: Error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level Pin
Member 245846722-Sep-19 15:45
Member 245846722-Sep-19 15:45 
QuestionRazor Pages - Persisting a SelectList Pin
Mycroft Holmes15-Sep-19 13:32
professionalMycroft Holmes15-Sep-19 13:32 
AnswerRe: Razor Pages - Persisting a SelectList Pin
Richard Deeming15-Sep-19 23:37
mveRichard Deeming15-Sep-19 23:37 
GeneralRe: Razor Pages - Persisting a SelectList Pin
Mycroft Holmes16-Sep-19 11:32
professionalMycroft Holmes16-Sep-19 11:32 
QuestionHow to display/print name value in XML file Pin
hm912-Sep-19 1:02
hm912-Sep-19 1:02 
AnswerRe: How to display/print name value in XML file Pin
F-ES Sitecore12-Sep-19 2:14
professionalF-ES Sitecore12-Sep-19 2:14 
GeneralRe: How to display/print name value in XML file Pin
hm912-Sep-19 2:28
hm912-Sep-19 2:28 
AnswerRe: How to display/print name value in XML file Pin
Richard Deeming12-Sep-19 6:15
mveRichard Deeming12-Sep-19 6:15 
GeneralRe: How to display/print name value in XML file Pin
hm912-Sep-19 8:51
hm912-Sep-19 8:51 

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.