Click here to Skip to main content
15,884,846 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: can we connect Asp.Net to Tally Pin
Abhishek Sur18-Nov-09 2:23
professionalAbhishek Sur18-Nov-09 2:23 
Questioncreate HTML page for emailing again Pin
Ersan Ercek17-Nov-09 23:53
Ersan Ercek17-Nov-09 23:53 
AnswerRe: create HTML page for emailing again Pin
Abhijit Jana18-Nov-09 0:05
professionalAbhijit Jana18-Nov-09 0:05 
GeneralRe: create HTML page for emailing again Pin
Ersan Ercek18-Nov-09 0:30
Ersan Ercek18-Nov-09 0:30 
AnswerRe: create HTML page for emailing again Pin
Abhishek Sur18-Nov-09 2:19
professionalAbhishek Sur18-Nov-09 2:19 
GeneralRe: create HTML page for emailing again Pin
Ersan Ercek18-Nov-09 2:46
Ersan Ercek18-Nov-09 2:46 
GeneralRe: create HTML page for emailing again Pin
Abhishek Sur18-Nov-09 9:10
professionalAbhishek Sur18-Nov-09 9:10 
GeneralRe: create HTML page for emailing again Pin
Ersan Ercek18-Nov-09 20:15
Ersan Ercek18-Nov-09 20:15 
Dear Abhishek, here is the code.

Thanks alot...

ASPX PAGE;

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<table id="tobesent" style="margin-left:auto; margin-right:auto; position:relative;">
<tr>
<td>
<div id="centrallarge">
<h1 style="height:85px; width:900px;"><img src='http://www.salatabufesi.com/images/SalataPage.jpg' alt="Salata"/>
</h1>
<h1 style="height:45px; width:900px;"><img src='http://www.salatabufesi.com/images/SalataBufesi.jpg' alt="Salata Büfesi"/>
</h1>
</div>
</td>
</tr>
<tr>
<td>
<div id="central" style="height:400px; margin-top:30px;">
<table id="Tablo" style="margin-left:auto; margin-right:auto; position:relative;">
<tr id="Satir1" style="height:25px; vertical-align:top;">
<td>
</td>
<td>
</td>
<td id="Sutun1">
<asp:Label ID="lblAciklama" runat="server" Font-Names="Tahoma" Text=" "></asp:Label>
</td>
</tr>
<tr style="height:25px; vertical-align:top;">
<td>
</td>
<td>
</td>
<td>
<asp:Label ID="lblOnMusteri" runat="server" Font-Names="Tahoma" ForeColor="Red" Text="Sipariş Adresi: "></asp:Label>
<asp:Label ID="lblMusteri" runat="server" Font-Names="Tahoma" Text=" "></asp:Label>
</td>
</tr>
<tr style="height:25px; vertical-align:top;">
<td>
</td>
<td>
</td>
<td>
<asp:Label ID="lblOnOdeme" runat="server" Font-Names="Tahoma" ForeColor="Red" Text="Ödeme Şekli: "></asp:Label>
<asp:Label ID="lblOdeme" runat="server" Font-Names="Tahoma" Text=" "></asp:Label>
</td>
</tr>
<tr style="height:50px; vertical-align:top;">
<td>
</td>
<td>
</td>
<td>
<asp:Label ID="lblEkAciklama" runat="server" Font-Names="Tahoma" Text=" "></asp:Label>
</td>
</tr>
<tr style="height:200px; vertical-align:top;">
<td>
<asp:Image ID="Image1" runat="server" ImageUrl="http://www.salatabufesi.com/images/OK.jpg"/>
</td>
<td style="width: 30px;">
&nbsp;</td>
<td>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="dgSiparisler" runat="server" AutoGenerateColumns="False"
BorderStyle="None" Font-Names="Tahoma" Font-Size="11pt" BackColor="#DEBA84"
BorderColor="#DEBA84" BorderWidth="1px" CellPadding="3" CellSpacing="2">
<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
<RowStyle Font-Names="Tahoma" BorderStyle="None" Height="25px"
VerticalAlign="Top" BackColor="#FFF7E7" ForeColor="#8C4510" />
<Columns>
<asp:TemplateField HeaderText="Adet" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:Label ID="lblAdet" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Adet")%>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Salata Adı" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:Label ID="lblMenuAdi" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SiparisName")%>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Tutar" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:Label ID="lblKullaniciAdi" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tutar")%>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
</asp:TemplateField>
</Columns>
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
</form>

AND CS PAGE:


protected void Page_Load(object sender, EventArgs e)
{
if (Session["tbl_Salata"] != null)
{
dgSiparisler.DataSource = ((DataTable)Session["tbl_Salata"]);
dgSiparisler.DataMember = ((DataTable)Session["tbl_Salata"]).TableName;
dgSiparisler.DataBind();
Session["tbl_Salata"] = null;
}

StringBuilder sb = new StringBuilder();
StringWriter strw = new StringWriter(sb);
HtmlTextWriter htmlw = new HtmlTextWriter(strw);
dgSiparisler.RenderControl(htmlw);

snd.sendconMail("cinersan@hotmail.com", sb.ToString(), "Üyelik Bilgileri");

}
GeneralRe: create HTML page for emailing again Pin
Ersan Ercek19-Nov-09 1:20
Ersan Ercek19-Nov-09 1:20 
GeneralRe: create HTML page for emailing again Pin
Ersan Ercek19-Nov-09 4:49
Ersan Ercek19-Nov-09 4:49 
GeneralRe: create HTML page for emailing again Pin
Ersan Ercek18-Nov-09 4:46
Ersan Ercek18-Nov-09 4:46 
QuestionViewing word documents in browser? Pin
AndyBrew7017-Nov-09 22:22
AndyBrew7017-Nov-09 22:22 
AnswerRe: Viewing word documents in browser? Pin
Anurag Gandhi17-Nov-09 23:27
professionalAnurag Gandhi17-Nov-09 23:27 
GeneralRe: Viewing word documents in browser? Pin
AndyBrew7018-Nov-09 0:51
AndyBrew7018-Nov-09 0:51 
GeneralRe: Viewing word documents in browser? Pin
gottimukkala18-Nov-09 1:01
gottimukkala18-Nov-09 1:01 
AnswerRe: Viewing word documents in browser? Pin
Abhishek Sur18-Nov-09 2:22
professionalAbhishek Sur18-Nov-09 2:22 
QuestionASP C# Pin
sanforjackass17-Nov-09 21:23
sanforjackass17-Nov-09 21:23 
AnswerRe: ASP C# Pin
sashidhar17-Nov-09 21:39
sashidhar17-Nov-09 21:39 
GeneralRe: ASP C# Pin
Abhishek Sur17-Nov-09 22:37
professionalAbhishek Sur17-Nov-09 22:37 
AnswerRe: ASP C# Pin
The Man from U.N.C.L.E.18-Nov-09 2:46
The Man from U.N.C.L.E.18-Nov-09 2:46 
QuestionSplitting rows in dataGrid Pin
nour12317-Nov-09 20:40
nour12317-Nov-09 20:40 
AnswerRe: Splitting rows in dataGrid Pin
Abhishek Sur17-Nov-09 20:44
professionalAbhishek Sur17-Nov-09 20:44 
GeneralRe: Splitting rows in dataGrid Pin
nour12317-Nov-09 21:10
nour12317-Nov-09 21:10 
GeneralRe: Splitting rows in dataGrid Pin
Abhishek Sur17-Nov-09 21:21
professionalAbhishek Sur17-Nov-09 21:21 
GeneralRe: Splitting rows in dataGrid Pin
nour12317-Nov-09 22:30
nour12317-Nov-09 22:30 

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.