how to implement php logic in asp.net

Last post 10-13-2009 7:19 AM by nijhawan.saurabh. 5 replies.

Sort Posts:

  • how to implement php logic in asp.net

    10-02-2009, 8:18 AM
    • Member
      15 point Member
    • solutionsdxb
    • Member since 12-04-2007, 8:40 AM
    • Posts 86


    Hi, 

    I am having a php logic , kindly suggest how can i implement this same logic with asp.net

    <?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
    
      }
    
    ?>
    


  • Re: how to implement php logic in asp.net

    10-02-2009, 9:29 AM

    Hi,

    Can you explain what you need to do ?

    Saurabh Nijhawan(B.Tech. CSE,GGSIPU,New Delhi)
    Application Architect, Eminent Solutions, New Delhi.
    Freelancer | Teacher
    Remember to click "Mark as Answer" on the post, if it helped you.
    ASP.NET Weblog
    http://www.saurabhnijhawan.com
    Learning Made Easy


  • Re: how to implement php logic in asp.net

    10-03-2009, 1:14 AM
    • Member
      15 point Member
    • solutionsdxb
    • Member since 12-04-2007, 8:40 AM
    • Posts 86

    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);

    ?>                            

  • Re: how to implement php logic in asp.net

    10-03-2009, 4:52 AM

    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);

    ?>                            

    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:

    Int32 MyIntegerArray []= new Int32 [10];


    Saurabh Nijhawan(B.Tech. CSE,GGSIPU,New Delhi)
    Application Architect, Eminent Solutions, New Delhi.
    Freelancer | Teacher
    Remember to click "Mark as Answer" on the post, if it helped you.
    ASP.NET Weblog
    http://www.saurabhnijhawan.com
    Learning Made Easy


  • Re: how to implement php logic in asp.net

    10-13-2009, 5:11 AM
    • Member
      424 point Member
    • urstop
    • Member since 12-04-2007, 3:24 AM
    • Posts 98

    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");


     

  • Re: how to implement php logic in asp.net

    10-13-2009, 7:19 AM

    Were you able to implement the code in asp.net, or still missing on something?

    Saurabh Nijhawan(B.Tech. CSE,GGSIPU,New Delhi)
    Application Architect, Eminent Solutions, New Delhi.
    Freelancer | Teacher
    Remember to click "Mark as Answer" on the post, if it helped you.
    ASP.NET Weblog
    http://www.saurabhnijhawan.com
    Learning Made Easy


Page 1 of 1 (6 items)