Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > ASP, ASP.NET and Coldfusion

ASP, ASP.NET and Coldfusion Microsoft's Web Development Language (ASP/ASP.NET) and Coldfusion discussion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-2008, 01:43 AM
mustaque mustaque is offline
Newbie
 
Join Date: Apr 2008
Posts: 3
Rep Power: 0
mustaque is on a distinguished road
Post export to excel problem with IPAddress in URL but working with localhost url

Hi All,

I am getting export to excel problem when I am giving IPAddress in URL, but it is working correct when am giving localhost and page name.

eg : when I am writing My machine IP address and aspx pagename like 192.xxx.xxx.xx/exporttoexcell.aspx then popup page is not working. the popup page is being closed automatically , and export to excel option is not comming.

for some reason when it opens within a scripted popup (js: window.open()), it flashes and then closes immediately without any excel trigger.


but when I am giving my machine name mustaque/exporttoexcell.aspx then popup page is working properly and export to excel is working . I am being unable to understand what may be the problem ,

I am writing here my code

// I am getting the value in sBody and exporting it to excel .

string sBody = cExcel.ExportToMSExcel(true, true, 2,false, false);
Response.Clear();

Response.Buffer = true; Response.Charset = "";
Response.AppendHeader("Content-Type", "application/vnd.ms-excel");

Response.AppendHeader("Content-disposition", "attachment; filename=AcHeadMaster.xls");
Response.Write(sBody);

Response.End();




please help me.

My OS is Vista . Dotnet vn 2.0

Thanks in Advance

Mustaque Ahmad

Software Engineer

Last edited by mustaque; 04-02-2008 at 02:06 AM. Reason: update
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-02-2008, 10:47 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Mod
 
Join Date: Jul 2006
Age: 35
Posts: 1,846
Last Blog:
Game software (GURPS)
Rep Power: 21
WingedPanther has a spectacular aura aboutWingedPanther has a spectacular aura about
Default Re: export to excel problem with IPAddress in URL but working with localhost url

What browser are you using? What security settings have you set on the browser? Are you getting any messages about pages being blocked?
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-03-2008, 12:57 AM
mustaque mustaque is offline
Newbie
 
Join Date: Apr 2008
Posts: 3
Rep Power: 0
mustaque is on a distinguished road
Default Re: export to excel problem with IPAddress in URL but working with localhost url

Thanks for Reply

I am using IE6 , IE7 browser. and browser setting is default. and I am not getting any message for page being blocked .

My problem is , when I am running project throw machine name or local host and page name then popup is comming and export to excel option for save or open etc are comming

but when I am using IP Address like 192.xxx.xxx.xx then export to excel pop up just flash on the screen and automatically closed.

Please advice me .

Thanks & Regards
Mustaque
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-03-2008, 10:36 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Mod
 
Join Date: Jul 2006
Age: 35
Posts: 1,846
Last Blog:
Game software (GURPS)
Rep Power: 21
WingedPanther has a spectacular aura aboutWingedPanther has a spectacular aura about
Default Re: export to excel problem with IPAddress in URL but working with localhost url

I suspect your IE security settings are blocking it. Try the same experiment with a different browser (FireFox, Opera, etc). That will tell you if it's a problem with your code or your browser (IE definitely sucks).
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-05-2008, 08:48 AM
mustaque mustaque is offline
Newbie
 
Join Date: Apr 2008
Posts: 3
Rep Power: 0
mustaque is on a distinguished road
Default Re: export to excel problem with IPAddress in URL but working with localhost url

Thanks for Reply,

My aplication is only applycable for IE browser.

and the problem is comming from all IE .

Thanks & Regards
Mustaque
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
export image to excel :-[yc]-: ASP, ASP.NET and Coldfusion 0 10-09-2007 11:52 AM


All times are GMT -5. The time now is 10:34 AM.

Contest Stats

Xav ........ 164.00000
dargueta ........ 128.00000
John ........ 127.00000
gaylo565 ........ 18.00000
XaNaX ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

Ads