|
2 - a server control emits HTML based on code that runs on the server. Normal HTML controls are spit out verbatim. If you add any attributes to a server control that the server does not recognise, it passes them through verbatim to the client, no other code you enter on a server control makes it to the client, it just tells the framework what code to generate.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
what namespace is used for get server date and time
|
|
|
|
|
FOR GOD SAKE STOP USING QUESTION AS YOUR BLOODY THREAD TITLE, THEY ARE ALL QUESTIONS!!
|
|
|
|
|
J4amieC wrote: THEY ARE ALL QUESTIONS!!
I'm pretty sure I have seen a few that were not.
led mike
|
|
|
|
|
Its System.DateTime.Now
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
System.DateTime
Ashish Sehajpal
|
|
|
|
|
using System;
Console.WriteLine(DateTime.Now.ToString());
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi all,
i have a table that column named:
price_id
min
max
now i want that my dropdwonlist shows this format for my price range
min-max(for example 10-20 )
how i can use this format in DataTextField, that it be bound to min and max and show "-" between them?
thank you,
Hoda
|
|
|
|
|
use query like this:
SELECT min, (min + ' -- ' + max) AS fieldname
|
|
|
|
|
SELECT price_id,(cast(min as varchar(10)) + ' -- ' + cast(max as varchar(10)) AS fieldname from tablename
Ashish Sehajpal
|
|
|
|
|
I start a process pdftk.exe to merger PDF files in ASP.NET web application. It woks fine in a single web server environment but doesn’t work in a web farm (2 clustered web servers) environment (got ExitCode = 1). Anyone have any ideas?
|
|
|
|
|
Does it really matter whether the server is in a cluster? The individual web server execution permissions should be the culprit to look into. Isn't it?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hello
I m Working on gridview.how can i add new row in gridview using ajax toolkit
i had developed it till now like that
i want that on page refresh whatever in the grid till is kept
can anyone help me..
thanks
====aspx page======
]]>
<title>Untitled Page
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (PreviousPage == null)
{
if ("" != (string)Session["AddRow"])
{
btnAddRow();
btnAddRow();
}
else
{
btnDisRow();
}
}
}
else
{
Session["AddRow"] = "Yes";
}
if ("Yes" == (string)Session["AddRow"])
{
btnAddRow();
Session["AddRow"] = "";
}
}
<asp:scriptmanager id="ScriptManager1" runat="server">
<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:gridview id="grdnew" runat="server" enableviewstate="false" style="z-index: 100; <br mode=" hold=" /">left: 53px; position: absolute;top: 81px" CellPadding="4" ForeColor="#333333"
GridLines="None" AutoGenerateColumns="false">
<footerstyle backcolor="#990000" font-bold="True" forecolor="White">
<rowstyle backcolor="#FFFBD6" forecolor="#333333">
<selectedrowstyle backcolor="#FFCC66" font-bold="True" forecolor="Navy">
<pagerstyle backcolor="#FFCC66" forecolor="#333333" horizontalalign="Center">
<headerstyle backcolor="#990000" font-bold="True" forecolor="White">
<alternatingrowstyle backcolor="White">
<columns>
<asp:templatefield>
<headertemplate>
<asp:label id="lblimg" runat="server" text=" ">
<asp:label id="Label1" runat="server" text="Name">
<asp:label id="Label2" runat="server" text="ContactNo">
<asp:label id="Label3" runat="server" text="Email">
<asp:label id="Label4" runat="server" text="Designation">
<itemtemplate>
<asp:imagebutton id="btnimgadd" runat="server">
ImageUrl="~/add.gif" ToolTip="Add Row" OnClick="Button1_Click" />
<asp:textbox id="TextBox1" runat="server">
EnableViewState="true" Text='<%# Eval("Name")%>' Width ="100px" />
<asp:textbox id="TextBox2" runat="server">
EnableViewState="true" Text='<%# Eval("contactNo")%>' Width ="100px" />
<asp:textbox id="TextBox3" runat="server">
EnableViewState="true" Text='<%# Eval("email")%>' Width ="100px"/>
<asp:textbox id="TextBox4" runat="server">
EnableViewState="true" Text='<%# Eval("designation")%>' Width ="100px" />
<triggers> <asp:asyncpostbacktrigger controlid="bUpdate1" eventname="Click">
<asp:button id="bUpdate1" runat="server" text="Click Here" onclick="bUpdate1_Click">
<asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="UpdatePanel1">
<progresstemplate>
Getting Data From Server.....
=======cs file=======
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MySql.Data.MySqlClient;
public partial class Default2 : System.Web.UI.Page
{
DataSet ds;
MySqlConnection mcon;
MySqlCommand mcmd;
MySqlDataAdapter mda;
DataTable dt;
DataRow dr;
protected void btnAddRow()
{
dt = CreateDataTable();
grdnew.DataSource = dt;
grdnew.DataBind();
}
protected void btnDisRow()
{
dt = (DataTable)ViewState["DataTable"];
grdnew.DataSource = dt;
grdnew.DataBind();
}
protected DataTable CreateDataTable()
{
DataTable dtvalues = (DataTable)ViewState["DataTable"];
if (dtvalues == null)
{
dtvalues = new DataTable();
dtvalues.Columns.Add(new DataColumn("", typeof(string)));
dtvalues.Columns.Add(new DataColumn("Name", typeof(string)));
dtvalues.Columns.Add(new DataColumn("contactNo", typeof(string)));
dtvalues.Columns.Add(new DataColumn("email", typeof(string)));
dtvalues.Columns.Add(new DataColumn("designation", typeof(string)));
ViewState["DataTable"] = dtvalues;
}
else
{
dr = dtvalues.NewRow();
dtvalues.Rows.Add(dr);
ViewState["DataTable"] = dtvalues;
}
return dtvalues;
}
protected void bUpdate1_Click(object sender, EventArgs e)
{
}
}
|
|
|
|
|
Ankit At Codeproject wrote: how can i add new row in gridview using ajax toolkit
ASP.NET render Gridview as HTML table. So I guess update panel can't update this. I am not sure
|
|
|
|
|
I have been able to save time with a better version GridViewEx from www.MyCustomControls.com...there is a lot of precise documentation there as well on how to do everything you need, plus it's super economical
|
|
|
|
|
hey thanks
but i can not make find the example that actually i want..
i want to add new rows in gridview that is ajax supported
and also in that gridview columns i want texbox as well as dropdownlist
thanks
|
|
|
|
|
try to make Datatable as Static and see whether this works for u or not.
Amit Agarwal
|
|
|
|
|
hey amit
i want to addnew row or u can say that empty grid with some rows.
i want to add new rows in gridview that is ajax supported
and also in that gridview columns i want texbox as well as dropdownlist
but i can not find better solution
thanks
|
|
|
|
|
i m using ASP.NET with C# (.net 2005, 2.0 framework)
i m more interest to read and practice WEB SERVICE concepts and willing to create simple GUI applications... where can i find these things?
i searched in google.but the HELLO WORLD example only coming........ help me
|
|
|
|
|
If you learn how to use the hello world example, you don't find it hard to create another WS method. Also MSDN has many articles on this subject.
|
|
|
|
|
|
server date and system is same are not...
how to find the server date in .net with c#
|
|
|
|
|
Stop spamming.
Apurva Kaushal
|
|
|
|
|
Repeating the same question over and over again won't help you get an answer
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
You have also been asked not to use the subject "question". Every single one of yourposts on CP have used this subject 
|
|
|
|