Click here to Skip to main content
15,890,336 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: SEND MAIL Pin
wikizhao15-Jul-12 16:25
wikizhao15-Jul-12 16:25 
AnswerRe: SEND MAIL Pin
Dhyanga17-Jul-12 10:32
Dhyanga17-Jul-12 10:32 
QuestionDevelop Enterpise Applicattions with ASP.NET Pin
Phatinox13-Jul-12 2:08
Phatinox13-Jul-12 2:08 
AnswerRe: Develop Enterpise Applicattions with ASP.NET Pin
David Mujica13-Jul-12 2:27
David Mujica13-Jul-12 2:27 
AnswerRe: Develop Enterpise Applicattions with ASP.NET Pin
Member 771364713-Jul-12 2:54
Member 771364713-Jul-12 2:54 
GeneralRe: Develop Enterpise Applicattions with ASP.NET Pin
Phatinox13-Jul-12 3:10
Phatinox13-Jul-12 3:10 
AnswerRe: Develop Enterpise Applicattions with ASP.NET Pin
wikizhao15-Jul-12 16:29
wikizhao15-Jul-12 16:29 
Questioncannot convert dataview t0 dataset Pin
sumeet kumar Attri12-Jul-12 21:13
sumeet kumar Attri12-Jul-12 21:13 
public partial class _Default : System.Web.UI.Page
{
DataSet ds = new DataSet();
protected void Page_Load(object sender, EventArgs e)
{
grd_bind();
}
private void grd_bind()
{
SqlDataAdapter adp = new SqlDataAdapter("select * from tbdep; select * from tbemp7", ConfigurationManager.ConnectionStrings["cn"].ConnectionString);
adp.Fill(ds);
GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();
}
public DataSet getdata(Int32 dno)// public because we access it in HTML
{
string qry = "select * from tbemp7 where edno=" + dno.ToString();// we can't use it as performance low as it execute much a times
DataView dv;//to sort data, to filter data, to navigate data on dataset we use it
dv = ds.Tables[1].DefaultView;
dv.RowFilter = "edno=" + dno.ToString();
return dv;

}
}

IN HTML :
XML
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
           Width="778px" BackColor="LightGoldenrodYellow" BorderColor="Tan"
           BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None"
           Height="281px">
           <AlternatingRowStyle BackColor="PaleGoldenrod" />

       <Columns>

      <asp:TemplateField HeaderText="department">
      <ItemTemplate>
      <b>
      dep no:</b><%#Eval("dno") %><br />
      <b>dep name:</b><%#Eval("dname") %></ItemTemplate></asp:TemplateField>

           <asp:TemplateField HeaderText="emp detail">
           <ItemTemplate>
           <asp:GridView ID="Gridview1" DataSource='<%#getdata(Convert.ToInt32(Eval("dno"))) %>' AutoGenerateColumns="false" Width="100px" runat="server"/>

           </ItemTemplate>

           </asp:TemplateField>
           <asp:BoundField HeaderText="EMPNO" DataField="empno" />
           <asp:BoundField HeaderText="NAME" DataField="ename" />
           <asp:BoundField HeaderText="ADDRESS" DataField="eadd" />
           <asp:BoundField HeaderText="SALARY" DataField="esal" />


           </Columns>

AnswerRe: cannot convert dataview t0 dataset Pin
Sandeep Mewara12-Jul-12 23:04
mveSandeep Mewara12-Jul-12 23:04 
QuestionFormView/ObjectDataSource Insert Problem Pin
Darren Dickerson12-Jul-12 5:36
Darren Dickerson12-Jul-12 5:36 
Questionload pages from database Pin
abdulwahed sallam11-Jul-12 23:10
abdulwahed sallam11-Jul-12 23:10 
AnswerRe: load pages from database Pin
R. Giskard Reventlov12-Jul-12 5:53
R. Giskard Reventlov12-Jul-12 5:53 
AnswerRe: load pages from database Pin
Sandeep Mewara12-Jul-12 9:37
mveSandeep Mewara12-Jul-12 9:37 
Generalhow to solve the ScriptResource.axd exception problem? Pin
mohammad ehsan11-Jul-12 21:13
mohammad ehsan11-Jul-12 21:13 
GeneralRe: how to solve the ScriptResource.axd exception problem? Pin
Parwej Ahamad12-Jul-12 2:14
professionalParwej Ahamad12-Jul-12 2:14 
GeneralRe: how to solve the ScriptResource.axd exception problem? Pin
KSaiPrasad12-Jul-12 3:28
KSaiPrasad12-Jul-12 3:28 
GeneralRe: how to solve the ScriptResource.axd exception problem? Pin
PIEBALDconsult12-Jul-12 3:59
mvePIEBALDconsult12-Jul-12 3:59 
Questionweb app places you on logon page after 3 minutes Pin
dcof11-Jul-12 12:21
dcof11-Jul-12 12:21 
AnswerRe: web app places you on logon page after 3 minutes Pin
R. Giskard Reventlov11-Jul-12 12:32
R. Giskard Reventlov11-Jul-12 12:32 
GeneralRe: web app places you on logon page after 3 minutes Pin
dcof11-Jul-12 16:08
dcof11-Jul-12 16:08 
GeneralRe: web app places you on logon page after 3 minutes Pin
Parwej Ahamad12-Jul-12 2:40
professionalParwej Ahamad12-Jul-12 2:40 
AnswerRe: web app places you on logon page after 3 minutes Pin
jkirkerx12-Jul-12 8:13
professionaljkirkerx12-Jul-12 8:13 
QuestionPanel to look like tab control Pin
byka11-Jul-12 8:47
byka11-Jul-12 8:47 
AnswerRe: Panel to look like tab control Pin
R. Giskard Reventlov11-Jul-12 10:46
R. Giskard Reventlov11-Jul-12 10:46 
AnswerRe: Panel to look like tab control Pin
Rahul Rajat Singh12-Jul-12 1:02
professionalRahul Rajat Singh12-Jul-12 1:02 

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.