Click here to Skip to main content
15,887,249 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# to update table Pin
PIEBALDconsult22-Jun-12 18:24
mvePIEBALDconsult22-Jun-12 18:24 
AnswerRe: C# to update table Pin
kishhr22-Jun-12 6:33
kishhr22-Jun-12 6:33 
QuestionCreating a sales Page in C#, simplest method Pin
Johnmc07122-Jun-12 3:05
Johnmc07122-Jun-12 3:05 
AnswerRe: Creating a sales Page in C#, simplest method Pin
Wes Aday22-Jun-12 4:02
professionalWes Aday22-Jun-12 4:02 
QuestionLooking for a good rules-based expert system engine (like drools). Suggestions? Pin
vValkir22-Jun-12 1:26
vValkir22-Jun-12 1:26 
AnswerRe: Looking for a good rules-based expert system engine (like drools). Suggestions? Pin
Pete O'Hanlon22-Jun-12 4:02
mvePete O'Hanlon22-Jun-12 4:02 
GeneralRe: Looking for a good rules-based expert system engine (like drools). Suggestions? Pin
vValkir22-Jun-12 4:08
vValkir22-Jun-12 4:08 
QuestionHow to download file from another website whose name is given in the <script> tag Pin
akhilgaur198821-Jun-12 23:56
akhilgaur198821-Jun-12 23:56 
Hello,

I m woking on a web application that logins on another website and then downloads some files from that site just on a click of a button.

I have already implemented the logic to login on that website and am also able to see the protected page of that site.

Now that website is returning an HTML code that has the filename i want to download under <script> tag

<script>PrintFileURL("13572_BranchInformationReport_2012-05-22.zip","13572_BranchInformationReport_2012-05-22.zip",0,"184601","May 22 1:30","/icons/default.gif")&lt;/script>


the method called is

<i>function PrintFileURL(uri, name, dirFlag, filesize, time, icon)
{
var color
var bgcolor
if(!(name.length>2 && name.charAt(name.length-1)=="e" && name.charAt(name.length-2)==".")) {
if (lineColor)
{
bgcolor="EEEEEE"
lineColor=false
}
else
{
bgcolor="FFFFFF"
lineColor=true
}
document.write("<TR bgcolor=" + bgcolor + ">");
if (dirFlag)
{
document.write("<td nowrap><img src='../" + icon + "'><a href='" + uri +
"/?T'>&nbsp;" + name + "</a></td>");
document.write("<td>&nbsp;</td>");
document.write("<td>&nbsp;</td>");
document.write("<td>&nbsp;</td>");
}
else
{
document.write("<td nowrap><img src='" + icon + "'><a href='" + uri +
"'>&nbsp;" + name + "</a></td>");
document.write("<td><font face=Arial size=2>" + filesize +
"</font></td>");
document.write("<td><font face=Arial size=2>" + time +
"</font></td>");
document.write("<td>&nbsp;</td>");
}
document.write("</TR>");
}
}</i>
I am totally stuck here. Can someone help.

Thanks in advance

Regards,
Akhil


-- modified 22-Jun-12 6:05am.
AnswerRe: How to download file from another website whose name is given in the tag Pin
Bernhard Hiller22-Jun-12 2:00
Bernhard Hiller22-Jun-12 2:00 
QuestionMerge Data using Itext sharp Pin
Member 915535921-Jun-12 22:00
Member 915535921-Jun-12 22:00 
AnswerRe: Merge Data using Itext sharp Pin
Richard MacCutchan21-Jun-12 22:44
mveRichard MacCutchan21-Jun-12 22:44 
QuestioniTextsharp annotation problem Pin
candogu21-Jun-12 21:16
candogu21-Jun-12 21:16 
QuestionRe: iTextsharp annotation problem Pin
Richard MacCutchan21-Jun-12 22:42
mveRichard MacCutchan21-Jun-12 22:42 
AnswerRe: iTextsharp annotation problem Pin
Pete O'Hanlon21-Jun-12 23:36
mvePete O'Hanlon21-Jun-12 23:36 
QuestionDisplay large content in windows application Pin
Rajeev_8721-Jun-12 13:16
Rajeev_8721-Jun-12 13:16 
AnswerCROSSPOST Pin
Peter_in_278021-Jun-12 13:44
professionalPeter_in_278021-Jun-12 13:44 
QuestionC# 2010 string Pin
sc steinhayse21-Jun-12 12:07
sc steinhayse21-Jun-12 12:07 
AnswerRe: C# 2010 string PinPopular
Pete O'Hanlon21-Jun-12 12:12
mvePete O'Hanlon21-Jun-12 12:12 
AnswerRe: C# 2010 string PinPopular
Matt T Heffron21-Jun-12 12:15
professionalMatt T Heffron21-Jun-12 12:15 
GeneralRe: C# 2010 string Pin
Peter_in_278021-Jun-12 16:09
professionalPeter_in_278021-Jun-12 16:09 
GeneralRe: C# 2010 string Pin
Pete O'Hanlon21-Jun-12 22:28
mvePete O'Hanlon21-Jun-12 22:28 
GeneralRe: C# 2010 string Pin
kishhr22-Jun-12 6:41
kishhr22-Jun-12 6:41 
GeneralMessage Closed Pin
22-Jun-12 9:45
mvePete O'Hanlon22-Jun-12 9:45 
GeneralRe: C# 2010 string Pin
Matty2224-Jun-12 19:32
Matty2224-Jun-12 19:32 
GeneralRe: C# 2010 string Pin
Pete O'Hanlon25-Jun-12 2:48
mvePete O'Hanlon25-Jun-12 2:48 

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.