Click here to Skip to main content
15,897,371 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCopy file from from one folder to another folder with rename Pin
Hemant_ec482-Sep-09 10:23
Hemant_ec482-Sep-09 10:23 
AnswerRe: Copy file from from one folder to another folder with rename Pin
Christian Graus2-Sep-09 11:12
protectorChristian Graus2-Sep-09 11:12 
AnswerRe: Copy file from from one folder to another folder with rename Pin
Abhishek Sur2-Sep-09 11:15
professionalAbhishek Sur2-Sep-09 11:15 
AnswerRe: Copy file from from one folder to another folder with rename Pin
Abhijit Jana2-Sep-09 18:51
professionalAbhijit Jana2-Sep-09 18:51 
Questionhow to keep the text in a textbox shown? Pin
Seraph_summer2-Sep-09 9:55
Seraph_summer2-Sep-09 9:55 
AnswerRe: how to keep the text in a textbox shown? Pin
Abhishek Sur2-Sep-09 11:07
professionalAbhishek Sur2-Sep-09 11:07 
QuestionAJAX - Return multiple message from hidden file ( ASP or PHP ) Pin
bijan.8k2-Sep-09 9:33
bijan.8k2-Sep-09 9:33 
AnswerRe: AJAX - Return multiple message from hidden file ( ASP or PHP ) Pin
Abhishek Sur2-Sep-09 11:27
professionalAbhishek Sur2-Sep-09 11:27 
bijan.8k wrote:
Q1. Is there any way to return more than one value as one or more responseText variable by just running one ajax function.


No... XMLHttpRequest object can be used to get only one response at a time. If you want response from two pages come from the server, you need to create 2 XMLHttpRequest object and call send method yourself. You cannot use the send method until the ReadyState = 4 [or error occured], which means the response is received.

** If you want to know that is it possible to send 2 values from the server in the same response.. !! You can... You can even merge the 2 response from the server and return the single response to one XMLHttpRequest to the client.


bijan.8k wrote:
Q2. What is the form of 'responseText'? I think it isn`t just a char string, because whenever i compre it by a distinct value using IF, IF always return false!! My question is how to compare 'responseText' with some values and then choose the best operation or function for next step?


Well, regarding your responseText, it totally depends on the server response. If you just return "abcd" it will hold the same thing. Moreover responseText is purely html when a page is requested. Just put a breakpoint(or simply put an alert) to the point where ReadyState = 4 for your request, and see what is within it.
To ensure you always get what you send from the server.. (at least when you just sending a string from the HttpHandler) use :

Response.Clear();
Response.Write("your static string content");
Response.End();


Hope you got everything... Rose | [Rose] Rose | [Rose]

Abhishek Sur

My Latest Articles
Create CLR objects in SQL Server 2005
C# Uncommon Keywords
Read/Write Excel using OleDB

Don't forget to click "Good Answer" if you like to.

Question[Message Deleted] Pin
iserbrain2-Sep-09 4:19
iserbrain2-Sep-09 4:19 
AnswerRe: How to using webcam for live video on asp.net website ? Pin
Abhijit Jana2-Sep-09 4:29
professionalAbhijit Jana2-Sep-09 4:29 
AnswerRe: [Message Deleted] Pin
Abhijit Jana2-Sep-09 7:53
professionalAbhijit Jana2-Sep-09 7:53 
QuestionSaving the Uploaded File to the Web Server!! Pin
Sr...Frank2-Sep-09 3:44
Sr...Frank2-Sep-09 3:44 
AnswerRe: Saving the Uploaded File to the Web Server!! Pin
Blikkies2-Sep-09 4:19
professionalBlikkies2-Sep-09 4:19 
GeneralRe: Saving the Uploaded File to the Web Server!! Pin
Sr...Frank2-Sep-09 4:29
Sr...Frank2-Sep-09 4:29 
GeneralRe: Saving the Uploaded File to the Web Server!! Pin
Abhijit Jana2-Sep-09 4:33
professionalAbhijit Jana2-Sep-09 4:33 
GeneralRe: Saving the Uploaded File to the Web Server!! Pin
Blikkies2-Sep-09 4:36
professionalBlikkies2-Sep-09 4:36 
GeneralRe: Saving the Uploaded File to the Web Server!! Pin
Abhijit Jana2-Sep-09 4:42
professionalAbhijit Jana2-Sep-09 4:42 
AnswerRe: Saving the Uploaded File to the Web Server!! Pin
Abhijit Jana2-Sep-09 4:32
professionalAbhijit Jana2-Sep-09 4:32 
Questionhow to set property for a user control from cs file Pin
ansriharsha2-Sep-09 1:24
ansriharsha2-Sep-09 1:24 
AnswerRe: how to set property for a user control from cs file Pin
Not Active2-Sep-09 2:33
mentorNot Active2-Sep-09 2:33 
AnswerRe: how to set property for a user control from cs file [modified] Pin
r a m e s h2-Sep-09 2:59
r a m e s h2-Sep-09 2:59 
GeneralRe: how to set property for a user control from cs file Pin
Abhijit Jana2-Sep-09 4:34
professionalAbhijit Jana2-Sep-09 4:34 
QuestionWant to Store database locally and then update it to remote server Pin
sjs4u2-Sep-09 1:16
sjs4u2-Sep-09 1:16 
AnswerRe: Want to Store database locally and then update it to remote server Pin
r a m e s h2-Sep-09 1:32
r a m e s h2-Sep-09 1:32 
GeneralRe: Want to Store database locally and then update it to remote server Pin
sjs4u2-Sep-09 1:36
sjs4u2-Sep-09 1:36 

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.