Click here to Skip to main content
15,941,973 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow Can I Expand the Field Name Column in an MVC Details view? Pin
Member 1282452923-Dec-16 14:41
Member 1282452923-Dec-16 14:41 
AnswerRe: How Can I Expand the Field Name Column in an MVC Details view? Pin
Afzaal Ahmad Zeeshan24-Dec-16 1:31
professionalAfzaal Ahmad Zeeshan24-Dec-16 1:31 
GeneralRe: How Can I Expand the Field Name Column in an MVC Details view? Pin
Member 1282452924-Dec-16 6:04
Member 1282452924-Dec-16 6:04 
GeneralRe: How Can I Expand the Field Name Column in an MVC Details view? Pin
Afzaal Ahmad Zeeshan24-Dec-16 7:29
professionalAfzaal Ahmad Zeeshan24-Dec-16 7:29 
AnswerRe: How Can I Expand the Field Name Column in an MVC Details view? Pin
Richard Deeming10-Jan-17 4:06
mveRichard Deeming10-Jan-17 4:06 
QuestionASP Button not displaying on Windows 2012 Server Pin
pmcm22-Dec-16 3:00
pmcm22-Dec-16 3:00 
AnswerRe: ASP Button not displaying on Windows 2012 Server Pin
Afzaal Ahmad Zeeshan22-Dec-16 3:57
professionalAfzaal Ahmad Zeeshan22-Dec-16 3:57 
GeneralRe: ASP Button not displaying on Windows 2012 Server Pin
pmcm22-Dec-16 4:02
pmcm22-Dec-16 4:02 
besides debugging the application and stepping through the code that sets the buttons values what else can I do?
In my test the code is hitting this case within the switch:
C#
case "Stopped":
                            e.Row.Cells[2].BackColor = System.Drawing.Color.OrangeRed;
                            e.Row.Cells[2].ForeColor = System.Drawing.Color.White;
                            ((Button)e.Row.Cells[7].Controls[1]).Text = "Start";
                            ((Button)e.Row.Cells[7].Controls[1]).ForeColor = System.Drawing.Color.Green;
                            ((Button)e.Row.Cells[7].Controls[1]).CommandArgument = entry["Site"] as string + "|" + entry["Description"] as string;
                            break;


but when to code has finished running and the webpage is displayed, here's the source of the webpage:
HTML
<tr class="headerstyle">
			<th scope="col"><a href="javascript:__doPostBack('UcSites1$GridView1','Sort$Description')">Description</a></th><th scope="col"><a href="javascript:__doPostBack('UcSites1$GridView1','Sort$Identifier')">Identifier</a></th><th scope="col"><a href="javascript:__doPostBack('UcSites1$GridView1','Sort$State')">State</a></th><th scope="col"><a href="javascript:__doPostBack('UcSites1$GridView1','Sort$HostHeaderValue')">Host Header Value</a></th><th scope="col"><a href="javascript:__doPostBack('UcSites1$GridView1','Sort$IPAddress')">IP Address</a></th><th scope="col"><a href="javascript:__doPostBack('UcSites1$GridView1','Sort$Port')">Port</a></th><th scope="col"><a href="javascript:__doPostBack('UcSites1$GridView1','Sort$SSLPort')">SSL Port</a></th><th scope="col">Button</th>
		</tr><tr class="itemstyle">
			<td style="white-space:nowrap;">Default Web Site</td><td style="white-space:nowrap;">1</td><td style="color:White;background-color:OrangeRed;white-space:nowrap;">Stopped</td><td> </td><td> </td><td>80</td><td> </td><td style="width:50px;">
                
            </td>
		</tr>

You can see the cell[2] is updated with an OrangeRed background and white text. I've followed the code the whole way through and there is no where else it is manipulated, very strange.

What this application does is it reviews the status of Sites setup in IIS and displays their status in the gridview and if the site status = stopped the button should display 'start' and so on.
AnswerRe: ASP Button not displaying on Windows 2012 Server Pin
ZurdoDev22-Dec-16 5:15
professionalZurdoDev22-Dec-16 5:15 
GeneralRe: ASP Button not displaying on Windows 2012 Server Pin
pmcm22-Dec-16 23:47
pmcm22-Dec-16 23:47 
GeneralRe: ASP Button not displaying on Windows 2012 Server Pin
ZurdoDev23-Dec-16 2:12
professionalZurdoDev23-Dec-16 2:12 
QuestionConverting from XAML to HTML5 Pin
indian14320-Dec-16 11:24
indian14320-Dec-16 11:24 
AnswerRe: Converting from XAML to HTML5 Pin
koolprasad200320-Dec-16 22:39
professionalkoolprasad200320-Dec-16 22:39 
QuestionError: Server did not recognize the value of HTTP Header SOAPAction Pin
Scott5220-Dec-16 9:24
Scott5220-Dec-16 9:24 
AnswerRe: Error: Server did not recognize the value of HTTP Header SOAPAction Pin
jkirkerx20-Dec-16 10:35
professionaljkirkerx20-Dec-16 10:35 
GeneralRe: Error: Server did not recognize the value of HTTP Header SOAPAction Pin
Scott5221-Dec-16 1:50
Scott5221-Dec-16 1:50 
GeneralRe: Error: Server did not recognize the value of HTTP Header SOAPAction Pin
jkirkerx21-Dec-16 9:18
professionaljkirkerx21-Dec-16 9:18 
GeneralRe: Error: Server did not recognize the value of HTTP Header SOAPAction Pin
Scott5222-Dec-16 1:59
Scott5222-Dec-16 1:59 
QuestionNeed help populating fields from database to form in page load Pin
Bootzilla3320-Dec-16 8:51
Bootzilla3320-Dec-16 8:51 
AnswerRe: Need help populating fields from database to form in page load Pin
Richard Deeming20-Dec-16 10:18
mveRichard Deeming20-Dec-16 10:18 
QuestionViewData, Viewbag and tempdata not working Pin
Member 815484520-Dec-16 6:47
Member 815484520-Dec-16 6:47 
AnswerRe: ViewData, Viewbag and tempdata not working Pin
Richard Deeming20-Dec-16 8:09
mveRichard Deeming20-Dec-16 8:09 
GeneralRe: ViewData, Viewbag and tempdata not working Pin
Member 815484520-Dec-16 8:36
Member 815484520-Dec-16 8:36 
GeneralRe: ViewData, Viewbag and tempdata not working Pin
Richard Deeming20-Dec-16 10:11
mveRichard Deeming20-Dec-16 10:11 
QuestionASMX: Facing problem to send user credentails from client side to service end Pin
Tridip Bhattacharjee19-Dec-16 3:51
professionalTridip Bhattacharjee19-Dec-16 3:51 

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.