Click here to Skip to main content
15,881,600 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: About search from start Date to End Date Pin
Aman Bhullar29-Jan-09 0:57
Aman Bhullar29-Jan-09 0:57 
QuestionCan anybody help me pleaseeeeee Pin
AnuMaria29-Jan-09 0:31
AnuMaria29-Jan-09 0:31 
AnswerRe: Can anybody help me pleaseeeeee Pin
Paddy Boyd29-Jan-09 2:48
Paddy Boyd29-Jan-09 2:48 
QuestionTextEditor Pin
sajjadlashari29-Jan-09 0:18
sajjadlashari29-Jan-09 0:18 
AnswerRe: TextEditor Pin
Tad McClellan29-Jan-09 11:06
professionalTad McClellan29-Jan-09 11:06 
AnswerRe: TextEditor Pin
samira_sm13-Nov-09 7:16
samira_sm13-Nov-09 7:16 
QuestionDropdownlist is getting null refernce eventhough there is a proper reference Pin
meeram39529-Jan-09 0:14
meeram39529-Jan-09 0:14 
QuestionHow to get Textbox value from dynamic generated onClick EventHandler Pin
Karan_TN28-Jan-09 23:09
Karan_TN28-Jan-09 23:09 
public void ValidateBtn_OnClick(object sender, EventArgs e)

{

// How to get the value for each generated dynamic Textbox ?

}

public void BindRelatedProductsGrid()
{
SqlConnection Conn = SqlServer.GetConnection("test");
SqlCommand Command = new SqlCommand("select * from Related_Product_Types", Conn);
Command.Connection.Open();
SqlDataReader dr = Command.ExecuteReader(CommandBehavior.CloseConnection);
TableRow r1 = new TableRow();
TableRow r2 = new TableRow();
TableRow r3 = new TableRow();
TableCell c1 = new TableCell();
TableCell c2 = new TableCell();
TableCell c3 = new TableCell();
int counter = 1;
while (dr.Read())
{
// ADDS FIRST ROW (LABELS)
c1 = new TableCell();
c1.Text = dr["relatedtype"].ToString();
r1.Cells.Add(c1);
// ADDS SECOND ROW (GRIDVIEW)
//Creates GridView instances
c2 = new TableCell();
c2.VerticalAlign = VerticalAlign.Top;
GridView g = new GridView();
g.ID = "GridViewRelatedProducts" + counter;
g.AllowPaging = true;
g.AllowSorting = true;
g.AutoGenerateColumns = false;

string sql = "SELECT relateditems_uid, relatedproduct_uid, item_sku, product_uid FROM Related_Products_Items WHERE relatedproduct_uid = " + dr["relatedproduct_uid"].ToString() + "and product_uid= " + Session["product_uid"].ToString();

g.DataSource = GetDataSource(sql);
//g.DataSourceID ="SqlDataSource2";
g.EmptyDataText = "There are no data records to display.";
g.SkinID = "GridViewStandard";
g.AllowSorting = true;
BoundField bf1 = new BoundField();
bf1.DataField = "relateditems_uid";
bf1.SortExpression = "relateditems_uid";
g.Columns.Add(bf1);

BoundField bf2 = new BoundField();
bf2.DataField = "item_sku";
g.Columns.Add(bf2);
c2.Controls.Add(g);
r2.Cells.Add(c2);
// ADDS THIRD ROW (BUTTON AND TEXTBOX)
c3 = new TableCell();
//Adds textbox control
TextBox t = new TextBox();
t.SkinID = "StandardTextBox";
t.ID = "TextboxSKU" + counter.ToString();
t.Width = 70;
c3.Controls.Add(t);
//Adds literal control
Literal l = new Literal();
l.Text = "<br>";
c3.Controls.Add(l);
//Adds button control
Button b = new Button();
b.Text = "Add Item";
b.Click += new EventHandler(ValidateBtn_OnClick);
b.SkinID = "StandardButton";
c3.Controls.Add(b);
r3.Cells.Add(c3);
g.DataBind();
counter++;
}

TblRelatedProducts.Rows.Add(r1);
TblRelatedProducts.Rows.Add(r2);
TblRelatedProducts.Rows.Add(r3);
dr.Close();
Conn.Close();
}
AnswerRe: How to get Textbox value from dynamic generated onClick EventHandler Pin
Tad McClellan29-Jan-09 17:22
professionalTad McClellan29-Jan-09 17:22 
Questionincrement the texbox value on mouse down[modified] Pin
yathika sekar28-Jan-09 23:03
yathika sekar28-Jan-09 23:03 
AnswerRe: increment the texbox value on mouse dow Pin
Tad McClellan29-Jan-09 17:24
professionalTad McClellan29-Jan-09 17:24 
Questionhow to convert awebsite from two tier archtecture to three tier archtecture Pin
anujbanka178428-Jan-09 23:02
anujbanka178428-Jan-09 23:02 
AnswerRe: how to convert awebsite from two tier archtecture to three tier archtecture Pin
SeMartens28-Jan-09 23:09
SeMartens28-Jan-09 23:09 
GeneralRe: how to convert awebsite from two tier archtecture to three tier archtecture Pin
anujbanka178428-Jan-09 23:22
anujbanka178428-Jan-09 23:22 
GeneralRe: how to convert awebsite from two tier archtecture to three tier archtecture Pin
SeMartens28-Jan-09 23:24
SeMartens28-Jan-09 23:24 
GeneralRe: how to convert awebsite from two tier archtecture to three tier archtecture Pin
anujbanka178428-Jan-09 23:27
anujbanka178428-Jan-09 23:27 
AnswerRe: how to convert awebsite from two tier archtecture to three tier archtecture Pin
Paddy Boyd29-Jan-09 2:48
Paddy Boyd29-Jan-09 2:48 
QuestionHow to refresh the Datagrid(WPF DataGrid) for every 5 minutes in WPF Browser application Pin
reach2narahari@gmail.com28-Jan-09 22:13
reach2narahari@gmail.com28-Jan-09 22:13 
Question[newbie] Retrieving values Pin
jon-8028-Jan-09 22:05
professionaljon-8028-Jan-09 22:05 
AnswerRe: [newbie] Retrieving values Pin
SeMartens28-Jan-09 22:09
SeMartens28-Jan-09 22:09 
GeneralRe: [newbie] Retrieving values Pin
jon-8028-Jan-09 22:38
professionaljon-8028-Jan-09 22:38 
GeneralRe: [newbie] Retrieving values Pin
SeMartens28-Jan-09 23:05
SeMartens28-Jan-09 23:05 
GeneralRe: [newbie] Retrieving values Pin
jon-8028-Jan-09 23:59
professionaljon-8028-Jan-09 23:59 
QuestionTooltip Possitioning problems Pin
Docarctiss28-Jan-09 21:54
Docarctiss28-Jan-09 21:54 
QuestionProblem with pdf convertor Pin
sarang_k28-Jan-09 21:33
sarang_k28-Jan-09 21:33 

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.