Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

javascript - downloading file from silverlight application -


i'm trying open downloaded files in new window silverlight application. have legacy application written html/js works fine filetype. however, in sl application, file type not .txt or .html, window briefly pops , closes. follow along in fiddler , requests identical both apps. further explain i'm doing, use system.windows.browser.htmlpage.window.invoke invoke js function calls window.open. have idea might going on here?

here headers...

request:

get https://foofoo.com/portal/filedownload?supportinguploadedfileid=8147&ideaid=110391 http/1.1 accept: */* accept-language: en-us user-agent: mozilla/4.0 (compatible; msie 8.0; windows nt 6.1; trident/4.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; media center pc 6.0; infopath.2; .net4.0c; .net4.0e) accept-encoding: gzip, deflate host: foofoo.com connection: keep-alive cookie: __utma=42251826.1339254382.1292255942.1292255942.1292255942.1; __utmz=42251826.1292255942.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=95617934.1162172004.1292440807.1292618204.1292859812.4; __utmz=95617934.1292440807.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); hubspotdt=2010-12-20%2010%3a43%3a36; hubspotutk=027b6ef3c2cb40a7a727706cbd686cd0; hubspotvd=027b6ef3c2cb40a7a727706cbd686cd0; hubspotvw=027b6ef3c2cb40a7a727706cbd686cd0; hubspotvm=027b6ef3c2cb40a7a727706cbd686cd0; jsessionid=uxfmku3dzrckhpn9gk7cvq**; __utmb=95617934.1.10.1292859812; __utmc=95617934 

response:

http/1.1 200 ok server: apache-coyote/1.1 x-powered-by: servlet 2.4; jboss-4.2.3.ga (build: svntag=jboss_4_2_3_ga date=200807181417)/jbossweb-2.0 content-disposition: attachment; filename=dbschema1.pdf pragma: public cache-control: cache content-type: application/pdf transfer-encoding: chunked date: mon, 20 dec 2010 15:49:00 gmt  contents of file 

i found solution. instead of calling system.windows.browser.htmlpage.window.invoke() invoke js function window.open(), found system.windows.browser.htmlpage.popupwindow(uri, "_blank", null) works. leads question, what's difference?


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -