Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
my html code-
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="left" valign=bottom bgcolor="#EDEDED"><font size=4 color="#000000">output_HPE OV SCOM Integration Kit Version </font></td>


What I have tried:

I tried writing the C# code to store "output_HPE OV SCOM Integration Kit Version" in a variable from above html code.But I am not able to store please help me out .below is
my c# code-
C#
if (temp1.Contains("output_"))
{
    var store = "";
    using (var reader = new System.IO.StreamReader(@"C:\Oneview_MAT\Add\template.html"))
    {
        while (!reader.EndOfStream)
        {
            var line = reader.ReadLine();
            if (line.Contains("output_"))
            {
                // store = line.Split('<').ToString().Last();
                store = Regex.Replace(temp1,,"");
                // temp1 = temp1.Replace(line, "");
             }
         }
         reader.Close();
     } 
}


But unfortunately I am unable to store the text- output_HPE OV SCOM Integration Kit Version
Posted
Updated 16-Feb-18 3:55am
v4
Comments
F-ES Sitecore 16-Feb-18 6:23am    
Store it where?
#realJSOP 16-Feb-18 9:57am    
You do realize you can specify the entire border like so:

border:1px solid black;

You don't have to do it for all four individual edges.

1 solution

This won't answer your question about how to display the data you're after, but it will improve your html:

HTML
<td style="border: 1px solid black;text-align:left;vertical-align:bottom;background-color:#EDEDED;font-size:4px;color:black;">
    output_HPE OV SCOM Integration Kit Version 
</td>


If you want help with your actual question, you're gonna have to tell us whether you're doing a MVC app, or regular ASP.Net.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900