Click here to Skip to main content
15,891,184 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncomparig password with the password in database Pin
rosae6192-Mar-09 21:30
rosae6192-Mar-09 21:30 
AnswerRe: comparig password with the password in database Pin
Christian Graus2-Mar-09 21:35
protectorChristian Graus2-Mar-09 21:35 
GeneralRe: comparig password with the password in database Pin
rosae6192-Mar-09 22:23
rosae6192-Mar-09 22:23 
Generalcomparing password with the password in database Pin
sudheera p3-Mar-09 0:29
sudheera p3-Mar-09 0:29 
GeneralRe: comparig password with the password in database Pin
Christian Graus3-Mar-09 9:18
protectorChristian Graus3-Mar-09 9:18 
QuestionGrid view? Pin
Karthick_gc2-Mar-09 21:12
Karthick_gc2-Mar-09 21:12 
AnswerRe: Grid view? Pin
Christian Graus2-Mar-09 21:13
protectorChristian Graus2-Mar-09 21:13 
GeneralRe: Grid view? Pin
Karthick_gc2-Mar-09 21:29
Karthick_gc2-Mar-09 21:29 
In C# i write this code for produce datas?

protected void lnkview_Click(object sender, EventArgs e)
{
view.Visible = true;
add.Visible = false;
try
{
con.Open();
com = new SqlCommand("select *from hotjob", con);
rd = com.ExecuteReader();
view1.DataSource = rd;
view1.DataBind();
con.Close();
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}

But i want some of the datas to appear in Link button. So i format it in the Html Coding.


<asp:gridview id="view1" runat="server" cellpadding="4" forecolor="#333333" gridlines="None" xmlns:asp="#unknown">
<footerstyle backcolor="#507CD1" font-bold="True" forecolor="White">
<rowstyle backcolor="#EFF3FB">
<editrowstyle backcolor="#2461BF">
<selectedrowstyle backcolor="#D1DDF1" font-bold="True" forecolor="#333333">
<pagerstyle backcolor="#2461BF" forecolor="White" horizontalalign="Center">
<headerstyle backcolor="#507CD1" font-bold="True" forecolor="White">
<alternatingrowstyle backcolor="White">
<columns> <asp:templatefield headertext="Job-ID" headerstyle-horizontalalign="Center">
<itemtemplate>
<asp:label id="lblId" runat="server" text="<%# Bind(" jid")="" %&gt;"="">



<asp:templatefield headertext="Title" headerstyle-horizontalalign="Center">

<itemtemplate>
<asp:label id="lbltit" runat="server" text="<%# Bind(" title")="" %&gt;"="">



<asp:templatefield headertext="Description" headerstyle-horizontalalign="Center">

<itemtemplate>
<asp:label id="lbldes" runat="server" text="<%# Bind(" description")="" %&gt;"="">



<asp:templatefield headertext="Qualification" headerstyle-horizontalalign="Center">

<itemtemplate>
<asp:label id="lblqua" runat="server" text="<%# Bind(" qualification")="" %&gt;"="">



<asp:templatefield headertext="Vacancies" headerstyle-horizontalalign="Center">

<itemtemplate>
<asp:label id="lblvac" runat="server" text="<%# Bind(" vac")="" %&gt;"="">



<asp:templatefield headertext="Location" headerstyle-horizontalalign="Center">

<itemtemplate>
<asp:label id="lblloc" runat="server" text="<%# Bind(" location")="" %&gt;"="">



<asp:templatefield headertext="Mail-ID" headerstyle-horizontalalign="Center">

<itemtemplate>
<asp:linkbutton id="lblmail" runat="server" text="<%# Bind(" mail")="" %&gt;"="">



<asp:commandfield headertext="Delete" showdeletebutton="True" showheader="True">




This is the full code. It is working but datas display twice. I want to display only the Datas from Html.
GeneralRe: Grid view? Pin
Christian Graus2-Mar-09 21:33
protectorChristian Graus2-Mar-09 21:33 
GeneralRe: Grid view? Pin
Karthick_gc2-Mar-09 21:36
Karthick_gc2-Mar-09 21:36 
Question[Message Deleted] Pin
aratireddy2-Mar-09 21:08
aratireddy2-Mar-09 21:08 
AnswerRe: Error Pin
Christian Graus2-Mar-09 21:12
protectorChristian Graus2-Mar-09 21:12 
GeneralRe: Error Pin
JMummery3-Mar-09 3:23
professionalJMummery3-Mar-09 3:23 
QuestionCheckboxlist : On postback Selection Pin
SAadmin2-Mar-09 21:01
SAadmin2-Mar-09 21:01 
AnswerRe: Checkboxlist : On postback Selection Pin
Sneha Bisht2-Mar-09 21:23
Sneha Bisht2-Mar-09 21:23 
GeneralRe: Checkboxlist : On postback Selection Pin
SAadmin2-Mar-09 21:58
SAadmin2-Mar-09 21:58 
GeneralRe: Checkboxlist : On postback Selection Pin
Sneha Bisht2-Mar-09 22:37
Sneha Bisht2-Mar-09 22:37 
AnswerRe: Checkboxlist : On postback Selection Pin
Anurag Gandhi3-Mar-09 5:02
professionalAnurag Gandhi3-Mar-09 5:02 
QuestionManually Generate the Report Chart using Report Control in asp.net 2.0 Pin
Jagz W2-Mar-09 20:44
professionalJagz W2-Mar-09 20:44 
AnswerRe: Manually Generate the Report Chart using Report Control in asp.net 2.0 Pin
SAadmin2-Mar-09 21:08
SAadmin2-Mar-09 21:08 
Questionto display checkboxes on the right side using template field Pin
scar_face2-Mar-09 20:12
scar_face2-Mar-09 20:12 
AnswerRe: to display checkboxes on the right side using template field Pin
Kunal Pawar2-Mar-09 20:18
Kunal Pawar2-Mar-09 20:18 
GeneralRe: to display checkboxes on the right side using template field Pin
scar_face2-Mar-09 20:29
scar_face2-Mar-09 20:29 
GeneralRe: to display checkboxes on the right side using template field Pin
Satish Mahapatra2-Mar-09 20:33
Satish Mahapatra2-Mar-09 20:33 
GeneralRe: to display checkboxes on the right side using template field Pin
scar_face2-Mar-09 21:51
scar_face2-Mar-09 21: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.