Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I am using Datagrid in asp.net and c#.Datagrid have link button.when i click link button to check condition .if data value approve or not.

this is c# code.

i need to check same as in jquery condition.


asp.net:



XML
<div>
<table id="gdvCourseL" class="DataGrid" border="0" cellspacing="1" cellpadding="3" style="border-width:0px;width:100%;" rules="all">

<tbody>

<tr class="NormalItem">
<td align="center" style="width:55px;">

<td>
<a class="LinkNormal" href="APP.aspx?CF=AP">Approve</a>
</td>
</tbody>
</table>
</div>


-----------------
c# code:
-----------------

<br
PG_Class objPG_Class = new PG_Class();
                           DataSet dstPGcourse = null;

                           spParam = new StringBuilder();
                           spParam.Length = 0;
                           spParam.Append("1").Append(colSeperator).Append(ViewState["COURSEID"]).Append(colSeperator);
           spParam.Append("2").Append(colSeperator).Append("1");
           dstPGcourse = objPG_Class.GetDevCourse(spParam.ToString());
            if ((dstcourse.Tables[0].Rows.Count > 0)
       {
           //code
       }
Posted
Comments
ZurdoDev 8-May-14 7:40am    
What's your question?
pkarthionline 8-May-14 7:45am    
i want to check dataset value empty or not use jquery code.
ZurdoDev 8-May-14 7:49am    
Why? The dataset is in memory on the Server and jquery code runs on the client so you can't have access to it directly. You can call a webservice or you can write data to a hidden field that jquery can get to.
pkarthionline 8-May-14 8:00am    
can you access gridview values to check empty or not in jquery?

1 solution

Quote:
can you access gridview values to check empty or not in jquery?
Refer my answer - hi, how to validate gridview databound textbox value to check null and duplicate entry.[^].

In this , I explained how to get TextBox inside the GridView and validate that.
 
Share this answer
 

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