|
shylock1 wrote: 'DNS Error Server Cannot be Found in asp.net'.
This would suggest that something is wrong with the URL links in these pages. DNS error implies that the system is trying to resolve a host name to its IP address and getting a lookup failure.
|
|
|
|
|
Is the web server running?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
hi sir,
please help me,
sir actually my problem is this.
i have a crystal report for an application.and i am building this application on pc-1.and i gave oledb connection for crystal report from pc-1.means server name =pc-1.and now i use this application on pc -2 with virtual directory.and when i opened my crystal report. this will ask me for pc-1 uid and pwd.
please give me solution
|
|
|
|
|
vikas shukla wrote: nd now i use this application on pc -2 with virtual directory.and when i opened my crystal report. this will ask me for pc-1 uid and pwd.
This is just because of Authentication settings of Virtual Directory. Go To Properties of VD > Directory Security > Edit > Select Anonymous Chekbox > Apply
Then Try it once again !!
|
|
|
|
|
hi sir,
thanks for your response,
but sir i have got following error.
Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'system2\Guest'. SQL State: 42000 Native Error: Error in File C:\DOCUME~1\SYSTEM1\ASPNET\LOCALS~1\Temp\Standards {6779445C-4B88-4ED9-B061-78587FDC7B13}.rpt: Unable to connect: incorrect log on parameters.
and note that in error-i am building this application on system 2 and now i am trying it for system1.i mean i am developing my application on system2 and oledb connection for crystal report is of system2.and now i am trying it for system1.
|
|
|
|
|
Open the Crystal report with Ms Visual Studio then CHeck it in design View
.A Popup will be Shown Then uncheck Integrated Security add the username and password.If Not Check the preview of the crystal report it will not display.Make Sure Your preview is displayed.
|
|
|
|
|
hello all,
i want to know how to develop discussion forum in asp.net 2.0
can we use treeview control or else???
i want to develop discussion forum similar to Codeproject forum.
Thanks in advance.
Regards
Praveen
|
|
|
|
|
|
Thanks Abhijit
this article really solved my problem. thanks again.
|
|
|
|
|
Welcome
|
|
|
|
|
Member 3113225 wrote: Thanks Abhijit
this article really solved my problem. thanks again.
Then Mark it as Answer
|
|
|
|
|
Hello Guys...
I have some problem
I had a array of byte all ready
call it xByte
xByte contain single file of any type which had been converted on server into byte()
I had link button
i want to when i click it the browser will download the file
just like download file dialog....
how i manage to do that...
please help me
i really appreciate it....
Thanks......
|
|
|
|
|
I think..! You Have to Specify the Content type And try to display THt.
For Image
byte[] arrContent = null;
arrContent = (byte[])dr["photo"];
int length = arrContent.Length;
Response.ContentType = "image/JPEG";
if (length!=0)
Response.OutputStream.Write(arrContent, 0,length);
Response.End();
or
Any File You have zip it and give them a download option..!
|
|
|
|
|
sashidhar wrote: Response.End();
You should be very careful while using Response.End() in your Code !!!
|
|
|
|
|
Thx For Your Suggestion
Abhijit Jana wrote: Response.End()
Is There any Drawbacks?Can You Let Me Know..!
|
|
|
|
|
The Response.End() method causes the Web server to stop processing for further request .
|
|
|
|
|
Abhijit Jana wrote: The Response.End() method causes the Web server to stop processing for further request .
That is not true. All it does is stop execution of page and return the buffered output. It doesn't affect further requests.
|
|
|
|
|
Yes, I want to mean that only. "Stop Processing of Further Request". . And it is understandable that it will return the buffer out put as he is writting it on output stream !!
modified on Thursday, October 1, 2009 3:34 AM
|
|
|
|
|
u can use this code piece for it.
Response.Buffer = true;
Response.AddHeader("Content-Disposition", "attachment;filename=" + strFileName);
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "utf-8";
Response.BinaryWrite(xByte);
Response.End() ;
this code piece will present a open/save/cancel dialog.
|
|
|
|
|
Hey nisha
thank for your guidance
sorry to bother you again
but what if we dont know what the file type is
because all user can upload any kind of file type
instead of display it onto browser
i just want to display download file dialog...
On your code there was ms.excel type...
What if i just know the extention
not the content type
im sorry for my unknown
|
|
|
|
|
So u are allowing users to download file that is uploaded by themselves. In this case there are two possibilities , either u are storing the file at hard disk or in database.
CASE 1 Saving File At HARD DISK
In this u can identify the Application type via file type. I means whether it's a pdf , doc, txt, xls or .jpg. Just put a Switch case over there and do a dance of joy.
CASE 2 Saving File Content in DATABASE
In this case u need to store the Application type in the database while adding record for that file. Again u have a file type so get the Application type using switch case.
|
|
|
|
|
CASE 1 Indeed
I save the filename and type in separates data...
|
|
|
|
|
I forget to tell you
im using ajax enabled website
|
|
|
|
|
|
11Developer wrote: I want to place captcha image on HTML page by using ASP code not ASP.net code.
Then what you are doing over here ? This ASP.NET Forum. Better ask this query at Web Development Forum !
|
|
|
|