Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 24, 2011 04:45 PM by solutionsdxb
Member
76 Points
131 Posts
Oct 02, 2009 12:18 PM|LINK
<?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_MCAFEE); new infoBoxHeading($info_box_contents, false, false);$info_box_contents = array(); $info_box_contents[] = array('text' =>'<p align="center">'.'<script src="http://securityalerts.mcafee.com/mcalerts/en-us/AlertConstant.js"></script>'.'<script src="http://securityalerts.mcafee.com/mcalerts/en-us/ResourceFile.js"></script>'.'<script src="http://securityalerts.mcafee.com/mcalerts/AlertDisplay.js"></script>'.'<script> colbor = "#B6B7CB"; DisplayMcAfeeAlerts(); </script>'.'<font size="1"><a href="http://www.centraldoantivirus.com.br/ca">Central do Antivirus</a></font><IMG height=1 alt=" 1 "</p>'); new infoBox($info_box_contents);?> </td> </tr><!-- currencies_eof //--><?php }?> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_MCAFEE); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' =>'<p align="center">'. '<script src="http://securityalerts.mcafee.com/mcalerts/en-us/AlertConstant.js"></script>'. '<script src="http://securityalerts.mcafee.com/mcalerts/en-us/ResourceFile.js"></script>'. '<script src="http://securityalerts.mcafee.com/mcalerts/AlertDisplay.js"></script>'. '<script> colbor = "#B6B7CB"; DisplayMcAfeeAlerts(); </script>'. '<font size="1"><a href="http://www.centraldoantivirus.com.br/ca">Central do Antivirus</a></font><IMG height=1 alt=" 1 "</p>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- currencies_eof //--> <?php } ?>
php logic in asp.net
All-Star
16430 Points
3173 Posts
Oct 02, 2009 01:29 PM|LINK
Hi,
Can you explain what you need to do ?
Oct 03, 2009 05:14 AM|LINK
hi actually if you see above the array ,
$info_box_contents = array();
getting value from various scripts of mafcee
<script src="http://securityalerts.mcafee.com/mcalerts/en-us/ResourceFile.js"></script>'
<script src="http://securityalerts.mcafee.com/mcalerts/AlertDisplay.js"></script>'.
The below script then display the alert in formated may
'<script> colbor = "#B6B7CB"; DisplayMcAfeeAlerts(); </script>'.'<font size="1">
<a href="http://www.centraldoantivirus.com.br/ca">Central do Antivirus</a></font><IMG height=1 alt=" 1 "</p>');
new infoBox($info_box_contents);
?>
Oct 03, 2009 08:52 AM|LINK
solutionsdxb hi actually if you see above the array , $info_box_contents = array(); getting value from various scripts of mafcee <script src="http://securityalerts.mcafee.com/mcalerts/en-us/ResourceFile.js"></script>' <script src="http://securityalerts.mcafee.com/mcalerts/AlertDisplay.js"></script>'. The below script then display the alert in formated may '<script> colbor = "#B6B7CB"; DisplayMcAfeeAlerts(); </script>'.'<font size="1"> <a href="http://www.centraldoantivirus.com.br/ca">Central do Antivirus</a></font><IMG height=1 alt=" 1 "</p>'); new infoBox($info_box_contents); ?>
Well just add the links to the scripts in the head section of the aspx page.
Now you can callany function in those js files.
About the array:
If it's in c#, an array is used like this:
Int32 MyIntegerArray []= new Int32 [10];
510 Points
111 Posts
Oct 13, 2009 09:11 AM|LINK
Since you can access the PHP array as a name , value pairs, you can use a Hashtable as its equivalent in .NET.
You can try something like below
Hashtable info_box_contents = new Hashtable(); info_box_contents.Add("text", "BOX_HEADING_MCAFEE");
Oct 13, 2009 11:19 AM|LINK
Were you able to implement the code in asp.net, or still missing on something?
Apr 24, 2011 04:45 PM|LINK
Sorr for my late reply , no i could really understood the help code ...
with regards
solutionsdxb
Member
76 Points
131 Posts
how to implement php logic in asp.net
Oct 02, 2009 12:18 PM|LINK
Hi, </div><div>
</div><div>I am having a php logic , kindly suggest how can i implement this same logic with asp.net</div><div>
</div><div>
<?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_MCAFEE); new infoBoxHeading($info_box_contents, false, false);$info_box_contents = array(); $info_box_contents[] = array('text' =>'<p align="center">'.'<script src="http://securityalerts.mcafee.com/mcalerts/en-us/AlertConstant.js"></script>'.'<script src="http://securityalerts.mcafee.com/mcalerts/en-us/ResourceFile.js"></script>'.'<script src="http://securityalerts.mcafee.com/mcalerts/AlertDisplay.js"></script>'.'<script> colbor = "#B6B7CB"; DisplayMcAfeeAlerts(); </script>'.'<font size="1"><a href="http://www.centraldoantivirus.com.br/ca">Central do Antivirus</a></font><IMG height=1 alt=" 1 "</p>'); new infoBox($info_box_contents);?> </td> </tr><!-- currencies_eof //--><?php }?> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_MCAFEE); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' =>'<p align="center">'. '<script src="http://securityalerts.mcafee.com/mcalerts/en-us/AlertConstant.js"></script>'. '<script src="http://securityalerts.mcafee.com/mcalerts/en-us/ResourceFile.js"></script>'. '<script src="http://securityalerts.mcafee.com/mcalerts/AlertDisplay.js"></script>'. '<script> colbor = "#B6B7CB"; DisplayMcAfeeAlerts(); </script>'. '<font size="1"><a href="http://www.centraldoantivirus.com.br/ca">Central do Antivirus</a></font><IMG height=1 alt=" 1 "</p>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- currencies_eof //--> <?php } ?></div>
php logic in asp.net
nijhawan.sau...
All-Star
16430 Points
3173 Posts
Re: how to implement php logic in asp.net
Oct 02, 2009 01:29 PM|LINK
Hi,
Can you explain what you need to do ?
solutionsdxb
Member
76 Points
131 Posts
Re: how to implement php logic in asp.net
Oct 03, 2009 05:14 AM|LINK
hi actually if you see above the array ,
$info_box_contents = array();
getting value from various scripts of mafcee
<script src="http://securityalerts.mcafee.com/mcalerts/en-us/ResourceFile.js"></script>'
<script src="http://securityalerts.mcafee.com/mcalerts/AlertDisplay.js"></script>'.
The below script then display the alert in formated may
'<script> colbor = "#B6B7CB"; DisplayMcAfeeAlerts(); </script>'.'<font size="1">
<a href="http://www.centraldoantivirus.com.br/ca">Central do Antivirus</a></font><IMG height=1 alt=" 1 "</p>');
new infoBox($info_box_contents);
?>
nijhawan.sau...
All-Star
16430 Points
3173 Posts
Re: how to implement php logic in asp.net
Oct 03, 2009 08:52 AM|LINK
Hi,
Well just add the links to the scripts in the head section of the aspx page.
Now you can callany function in those js files.
About the array:
If it's in c#, an array is used like this:
urstop
Member
510 Points
111 Posts
Re: how to implement php logic in asp.net
Oct 13, 2009 09:11 AM|LINK
Since you can access the PHP array as a name , value pairs, you can use a Hashtable as its equivalent in .NET.
You can try something like below
Hashtable info_box_contents = new Hashtable(); info_box_contents.Add("text", "BOX_HEADING_MCAFEE");AV
Freelance Web Developer, London, UK
nijhawan.sau...
All-Star
16430 Points
3173 Posts
Re: how to implement php logic in asp.net
Oct 13, 2009 11:19 AM|LINK
Were you able to implement the code in asp.net, or still missing on something?
solutionsdxb
Member
76 Points
131 Posts
Re: how to implement php logic in asp.net
Apr 24, 2011 04:45 PM|LINK
Sorr for my late reply , no i could really understood the help code ...
with regards