Click here to Skip to main content
15,916,180 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting BindingSource and Guid Pin
OriginalGriff22-Jun-12 20:24
mveOriginalGriff22-Jun-12 20:24 
QuestionListbox Pin
Dirk Higbee22-Jun-12 12:57
Dirk Higbee22-Jun-12 12:57 
AnswerRe: Listbox Pin
OriginalGriff22-Jun-12 19:52
mveOriginalGriff22-Jun-12 19:52 
GeneralRe: Listbox Pin
Dirk Higbee23-Jun-12 7:30
Dirk Higbee23-Jun-12 7:30 
QuestionHow to split byte[] to string & bytes Pin
caspidoron22-Jun-12 8:53
caspidoron22-Jun-12 8:53 
AnswerRe: How to split byte[] to string & bytes Pin
Ian Shlasko22-Jun-12 9:00
Ian Shlasko22-Jun-12 9:00 
AnswerRe: How to split byte[] to string & bytes Pin
Richard Andrew x6422-Jun-12 9:02
professionalRichard Andrew x6422-Jun-12 9:02 
QuestionC# work with database Pin
sc steinhayse22-Jun-12 7:33
sc steinhayse22-Jun-12 7:33 
AnswerRe: C# work with database Pin
Ravi Bhavnani23-Jun-12 4:00
professionalRavi Bhavnani23-Jun-12 4:00 
QuestionC# to update table Pin
sc steinhayse22-Jun-12 3:43
sc steinhayse22-Jun-12 3:43 
AnswerRe: C# to update table Pin
PIEBALDconsult22-Jun-12 5:09
mvePIEBALDconsult22-Jun-12 5:09 
GeneralRe: C# to update table Pin
OctavioNA22-Jun-12 7:19
OctavioNA22-Jun-12 7:19 
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 

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.