Click here to Skip to main content
15,900,258 members

Comments by pinky1810 (Top 18 by date)

pinky1810 6-Jun-13 6:31am View    
Sorry Didn't work, Actually the problem is not with my code,there is some jquery error.
i am not getting any error when i click on view,its just breaking somewhere and the popup is not opening.when i debug it shows like modalpopupextender.cs does't not exist.

please advice
pinky1810 26-Dec-12 2:19am View    
I did't try any validation expression because i dont know much about this, Instead I tried to convert the textbox value to decimal by using parse and convert statement but did't work. In the DB the field type is decimal(3,2). can you give me the validation expression for this please
pinky1810 26-Dec-12 0:56am View    
Hi. Thanks for reply, I have text box inside the gridview , I used (\d{3}\.\d{2}\) as a regular expression , but it is showing error while binding the grid.
error:(\d{3}\.\d{2}\) is not a valid regular expression.
i want textbox to accept only numbers like, 2.22,1.22,9.66 etc


please help
pinky1810 20-Dec-12 3:37am View    
Thanks, I tried your solution in this way but not working

protected void GridviewSample_RowDataBound(object sender, GridViewRowEventArgs e)
{

if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onmouseover"] =
"javascript:setMouseOverColor(this);";
e.Row.Attributes["onmouseout"] =
"javascript:setMouseOutColor(this);";
e.Row.Attributes["onclick"] =
ClientScript.GetPostBackClientHyperlink
(this.GridviewSample, "Select$" + e.Row.RowIndex);
}
and design code.

<script type="text/javascript">
var oldgridSelectedColor;

function setMouseOverColor(element) {
oldgridSelectedColor = element.style.backgroundColor;
element.style.backgroundColor = 'yellow';
element.style.cursor = 'hand';
element.style.textDecoration = 'underline';
}

function setMouseOutColor(element) {
element.style.backgroundColor = oldgridSelectedColor;
element.style.textDecoration = 'none';
}
</script>


<asp:GridView ID="GridviewSample" runat="server" AutoGenerateColumns="false"
onselectedindexchanged="GridviewSample_SelectedIndexChanged"
onselectedindexchanging="GridviewSample_SelectedIndexChanging"
ondatabound="GridviewSample_DataBound" >

<columns> <asp:BoundField DataField="SNo" HeaderText="SNo" />

<asp:TemplateField HeaderText="Name">
<itemtemplate>
<asp:TextBox ID="txtname" runat="server" >




<asp:Button ID="BtnSave" runat="server" onclick="BtnSave_Click" Text="Save" />
<asp:TextBox ID="TextBox1" runat="server">

Is it right, please advice
pinky1810 20-Dec-12 3:33am View    
can u give me a sample for this please, I am new to this.I dont know how to use it.