kw66722
asked on
gridview changing style of edit button
I want to change the style of the edit button that the gridview supplies. I can not figure out how to do that.
ASKER
This is what is generated. not sure how I can change it.
<td>
<a href="javascript:__doPostB ack('ctl00 $ctl00$top body$GridV iew1','Edi t$0')">Edi t</a>
</td>
<td>
<a href="javascript:__doPostB
</td>
can you send the full html?
ASKER
This is the generated source. I put the button after the edit in the format that I would like the edit button to be.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Page</title>
<link href="App_Themes/sampleTheme/default.css" type="text/css" rel="stylesheet" />
</head>
<body>
<form name="form1" method="post" action="sample1.aspx" id="form1">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="FVOPr/RsBM2y+P0VaI2BM7BqbOAUHQjlDRJzhAV6A0LU6kLGe24ZJMUZWlyiziUwXrza0350Ydz+kGGexij5pV7jglVlGpTO2IXnnjmSQjac5AsGNH+uMHVBQBerL1zbIqK5Maga3e5LqNwYE87Pdl18ERg/a2HylCwpD436JuC/NUpW4sIjPM8wOFwD/UR1QuIrgvMW1M4cqnzJ+rQ3QH1H4ERwxg0JtZay075t5/P9Riqgj/vaPUjz8hKiuqY2hhR459VLffnyUGurCNcLfzNLmTgaHTAH+vE7NIjow25z/L/L7SYxU0hhPHA3uO1Aaky00Qh/CfEvdpRqNNgCaDBlT3OoYdukL6H4Krn9zyLnqSibMNL+2cOTuvFL0UHE71lNtNPzUOVmeSRtKJYZ7uZljjwUKU3lCgH1aGqFM7y480qXT0A/Tiaa0V220GtQ+ADRf55ODsdTvyMDKtd4d5NANmg++fKHKVXvqqaSCWxqm/D0RfPXh8c7CZjUq5gMjzd9QVH3jnQO1pveEq/IuiQI+syfPK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ascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<div>
	<input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="S0v+jfi3hxgHQBxTIfQW9f2FeIc/XS1H+djRn/hj4D1gQUc353eGmjfoDOU+gI9ikkotn8qOxjITNWvsy3cPo8UjwKBn/uIvMkILXzAuiH7K5a+yRIXXT+607r1gZOKkvHqZwIvsqmvKf2cJ+sFKcQMU1D36RFND2Rjl7UtwbIdG6AK4" />
</div>
<div>
<br /><br /><br />
<div>
<table cellspacing="0" rules="all" border="1" id="GridView1" style="border-collapse:collapse;">
<tr>
<th scope="col"> </th>
<th scope="col"> </th>
<th scope="col" style="font-family:verdana,arial,helvetica;;font-size:9px;"> </th>
<th scope="col" style="font-family:verdana,arial,helvetica;;font-size:9px;">First</th>
<th scope="col" style="font-family:verdana,arial,helvetica;;font-size:9px;">Last</th>
<th scope="col" style="font-family:verdana,arial,helvetica;;font-size:9px;">E-Mail</th>
<th scope="col" style="font-family:verdana,arial,helvetica;;font-size:9px;">Type</th>
</tr>
<tr>
<td><a href="javascript:__doPostBack('GridView1','Edit$0')">Edit</a></td>
<td><input type="submit" name="GridView1$ctl02$Edit" value="Save" id="GridView1_ctl02_Edit" style="color:White;background-color:Green;border-color:#F59C34;border-width:1px;border-style:Solid;font-family:arial,verdana,helvetica;font-size:10pt;font-weight:bold;" /></td>
<td style="font-family:verdana,arial,helvetica;font-size:9px;">1</td><td style="font-family:verdana,arial,helvetica;font-size:9px;"> </td><td style="font-family:verdana,arial,helvetica;font-size:9px;"> </td><td style="font-family:verdana,arial,helvetica;"> </td>
<td><select name="GridView1$ctl02$DropDownType" id="GridView1_ctl02_DropDownType">
<option selected="selected" value="-1">Type</option>
</select>
</td>
</tr>
<tr style="background-color:#99CCFF;">
<td><a href="javascript:__doPostBack('GridView1','Edit$1')">Edit</a></td>
<td><input type="submit" name="GridView1$ctl03$Edit" value="Save" id="GridView1_ctl03_Edit" style="color:White;background-color:Green;border-color:#F59C34;border-width:1px;border-style:Solid;font-family:arial,verdana,helvetica;font-size:10pt;font-weight:bold;" /></td>
<td style="font-family:verdana,arial,helvetica;font-size:9px;">2</td>
<td style="font-family:verdana,arial,helvetica;font-size:9px;"> </td>
<td style="font-family:verdana,arial,helvetica;font-size:9px;"> </td>
<td style="font-family:verdana,arial,helvetica;"> </td>
<td><select name="GridView1$ctl03$DropDownType" id="GridView1_ctl03_DropDownType">
<option selected="selected" value="-1">Type</option>
</select>
</td>
</tr>
<tr>
<td><a href="javascript:__doPostBack('GridView1','Edit$2')">Edit</a></td>
<td><input type="submit" name="GridView1$ctl04$Edit" value="Save" id="GridView1_ctl04_Edit" style="color:White;background-color:Green;border-color:#F59C34;border-width:1px;border-style:Solid;font-family:arial,verdana,helvetica;font-size:10pt;font-weight:bold;" /></td>
<td style="font-family:verdana,arial,helvetica;font-size:9px;">3</td><td style="font-family:verdana,arial,helvetica;font-size:9px;"> </td><td style="font-family:verdana,arial,helvetica;font-size:9px;"> </td><td style="font-family:verdana,arial,helvetica;"> </td>
<td><select name="GridView1$ctl04$DropDownType" id="GridView1_ctl04_DropDownType">
<option selected="selected" value="-1">Type</option>
</select>
</td>
</tr>
<tr style="background-color:#99CCFF;">
<td><a href="javascript:__doPostBack('GridView1','Edit$3')">Edit</a></td><td>
<input type="submit" name="GridView1$ctl05$Edit" value="Save" id="GridView1_ctl05_Edit" style="color:White;background-color:Green;border-color:#F59C34;border-width:1px;border-style:Solid;font-family:arial,verdana,helvetica;font-size:10pt;font-weight:bold;" />
</td><td style="font-family:verdana,arial,helvetica;font-size:9px;">4</td><td style="font-family:verdana,arial,helvetica;font-size:9px;"> </td><td style="font-family:verdana,arial,helvetica;font-size:9px;"> </td><td style="font-family:verdana,arial,helvetica;"> </td><td>
<select name="GridView1$ctl05$DropDownType" id="GridView1_ctl05_DropDownType">
				<option selected="selected" value="-1">Type</option>
			</select>
</td>
	</tr>
	</table>
</div>
</div>
</form>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Then you can write a css directly changing the style of the button.