Click here to Skip to main content
15,889,839 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionobject data source Pin
Tauseef A19-Nov-09 7:03
Tauseef A19-Nov-09 7:03 
QuestionCould somebosy help me this rendercontrol issue Pin
Ersan Ercek19-Nov-09 6:40
Ersan Ercek19-Nov-09 6:40 
AnswerRe: Could somebosy help me this rendercontrol issue Pin
Abhishek Sur19-Nov-09 7:56
professionalAbhishek Sur19-Nov-09 7:56 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Ersan Ercek19-Nov-09 9:07
Ersan Ercek19-Nov-09 9:07 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Abhishek Sur19-Nov-09 20:40
professionalAbhishek Sur19-Nov-09 20:40 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Ersan Ercek19-Nov-09 20:55
Ersan Ercek19-Nov-09 20:55 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Abhishek Sur19-Nov-09 21:08
professionalAbhishek Sur19-Nov-09 21:08 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Ersan Ercek20-Nov-09 0:59
Ersan Ercek20-Nov-09 0:59 
Dear Abhishek,

Here are the test you asked for... Completely different project the same result. I know I am asking alor but, could it be possible for you to test it.

Aspx page:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Test._Default" %>

<!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 runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="dgSiparisler" runat="server">
<Columns>
<asp:TemplateField HeaderText="Adet" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:Label ID="lblAdet" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DataAdi")%>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
<ItemStyle Width="50px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>

cs page:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;

namespace Test
{
public partial class _Default : System.Web.UI.Page
{
Class1 u = new Class1();
protected void Page_Load(object sender, EventArgs e)
{
dgSiparisler.DataSource = u.tbl_Al();
dgSiparisler.DataMember = u.tbl_Al().TableName;
dgSiparisler.DataBind();

StringBuilder sb = new StringBuilder();
StringWriter strw = new StringWriter(sb);
HtmlTextWriter htmlw = new HtmlTextWriter(strw);
//ClearElements(dgSiparisler);
HtmlForm form = new HtmlForm();
Controls.Add(form);
form.Controls.Add(dgSiparisler);
form.RenderControl(htmlw);

}
}
}
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Abhishek Sur21-Nov-09 9:25
professionalAbhishek Sur21-Nov-09 9:25 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Ersan Ercek23-Nov-09 0:28
Ersan Ercek23-Nov-09 0:28 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Abhishek Sur24-Nov-09 21:42
professionalAbhishek Sur24-Nov-09 21:42 
AnswerRe: Could somebosy help me this rendercontrol issue Pin
The Man from U.N.C.L.E.19-Nov-09 7:59
The Man from U.N.C.L.E.19-Nov-09 7:59 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
The Man from U.N.C.L.E.19-Nov-09 8:01
The Man from U.N.C.L.E.19-Nov-09 8:01 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Abhishek Sur19-Nov-09 8:10
professionalAbhishek Sur19-Nov-09 8:10 
GeneralRe: Could somebosy help me this rendercontrol issue Pin
Ersan Ercek19-Nov-09 8:20
Ersan Ercek19-Nov-09 8:20 
QuestionOpen Documents from List Box Pin
Paul Unsworth19-Nov-09 4:47
Paul Unsworth19-Nov-09 4:47 
AnswerRe: Open Documents from List Box Pin
Abhijit Jana19-Nov-09 5:04
professionalAbhijit Jana19-Nov-09 5:04 
GeneralRe: Open Documents from List Box Pin
Paul Unsworth19-Nov-09 5:33
Paul Unsworth19-Nov-09 5:33 
GeneralRe: Open Documents from List Box Pin
Christian Graus19-Nov-09 6:21
protectorChristian Graus19-Nov-09 6:21 
GeneralRe: Open Documents from List Box Pin
Paul Unsworth19-Nov-09 21:24
Paul Unsworth19-Nov-09 21:24 
AnswerRe: Open Documents from List Box Pin
Abhishek Sur19-Nov-09 8:01
professionalAbhishek Sur19-Nov-09 8:01 
GeneralRe: Open Documents from List Box Pin
Paul Unsworth19-Nov-09 21:26
Paul Unsworth19-Nov-09 21:26 
Questioni want email sending program in vb Pin
sura94519-Nov-09 4:06
sura94519-Nov-09 4:06 
AnswerRe: i want email sending program in vb Pin
dan!sh 19-Nov-09 4:14
professional dan!sh 19-Nov-09 4:14 
AnswerRe: i want email sending program in vb Pin
Abhijit Jana19-Nov-09 4:15
professionalAbhijit Jana19-Nov-09 4:15 

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.