Click here to Skip to main content
15,903,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Session Problem Pin
monika_vasvani7-Sep-06 3:03
monika_vasvani7-Sep-06 3:03 
GeneralRe: Session Problem Pin
Jay_se7-Sep-06 3:40
Jay_se7-Sep-06 3:40 
Questionproblem in Gried View -urgent Pin
DotnetRafi6-Sep-06 23:40
DotnetRafi6-Sep-06 23:40 
AnswerRe: problem in Gried View -urgent Pin
_AK_7-Sep-06 2:22
_AK_7-Sep-06 2:22 
QuestionFileUpload Control Pin
doyang6-Sep-06 23:11
doyang6-Sep-06 23:11 
Questiondynamic control Pin
ketan.raval6-Sep-06 21:49
ketan.raval6-Sep-06 21:49 
AnswerRe: dynamic control Pin
Paddy Boyd6-Sep-06 23:34
Paddy Boyd6-Sep-06 23:34 
GeneralRe: dynamic control Pin
ketan.raval7-Sep-06 4:10
ketan.raval7-Sep-06 4:10 
public partial class Default3 : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["constr"].ToString());
SqlDataAdapter adp;
DataTable dt;
ListBox lstbx;
ListBox lstbx1;
string temp;
protected void Page_Load(object sender, EventArgs e)
{

if (!IsPostBack)
{

Session["Test"] = false;
}
if ((bool)Session["Test"] == true)
{
lstSource_Created();
//lstName_Created();
}

}

protected void Button1_Click(object sender, EventArgs e)
{
lstSource_Created();

Session["Test"] = true;
}
private void lstSource_Created()
{
adp = new SqlDataAdapter("select Source from feed group by(Source)", con);
dt = new DataTable();
adp.Fill(dt);
lstbx = new ListBox();
lstbx.ID = "lstbx";
lstbx.AutoPostBack = true;
lstbx.EnableViewState = true;
lstbx.DataTextField = "Source";
lstbx.DataValueField = "Source";
lstbx.DataSource = dt;
lstbx.DataBind();
//form1.Controls.Add(lstbx);
lstbx.SelectedIndexChanged += new EventHandler(lstbx_SelectedIndexChanged);
divTest.Controls.Add(lstbx);
}

void lstbx_SelectedIndexChanged(object sender, EventArgs e)
{

Response.Write(lstbx.SelectedItem.Text.ToString());
lstName_Created(lstbx.SelectedItem.Text.ToString());
//Session["Test"] = true;





}
private void lstName_Created(string strData)
{

adp = new SqlDataAdapter("select name from feed where source='" + strData.ToString()+"'", con);
dt = new DataTable();
adp.Fill(dt);

lstbx1 = new ListBox();

lstbx1.AutoPostBack = true;
lstbx1.DataTextField = "Name";
lstbx1.DataValueField = "Name";
lstbx1.DataSource = dt;
lstbx1.DataBind();
// form1.Controls.Add(lstbx1);
divTest.Controls.Add(lstbx1);
lstbx1.SelectedIndexChanged += new EventHandler(lstbx1_SelectedIndexChanged);
}
void lstbx1_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Write("hi");
}

}

this code runs without atlas
but not in atlas
how to sove it
give me some solutions plz
thank you

intresting in asp.net

Questionsql config error Pin
yasar khan6-Sep-06 21:12
yasar khan6-Sep-06 21:12 
AnswerRe: sql config error Pin
RichardGrimmer7-Sep-06 5:35
RichardGrimmer7-Sep-06 5:35 
Questiondatagrid Pin
umaheshchandra6-Sep-06 21:11
umaheshchandra6-Sep-06 21:11 
AnswerRe: datagrid Pin
Sathesh Sakthivel7-Sep-06 0:00
Sathesh Sakthivel7-Sep-06 0:00 
Questionneed help wit data binding with hyperlink Pin
neodeaths6-Sep-06 20:48
neodeaths6-Sep-06 20:48 
AnswerRe: need help wit data binding with hyperlink Pin
Jay_se6-Sep-06 20:59
Jay_se6-Sep-06 20:59 
AnswerRe: need help wit data binding with hyperlink Pin
Exelioindia6-Sep-06 23:51
Exelioindia6-Sep-06 23:51 
AnswerRe: need help wit data binding with hyperlink Pin
RichardGrimmer7-Sep-06 5:37
RichardGrimmer7-Sep-06 5:37 
Questionexecuting url without launching a new browser window Pin
Azel Low6-Sep-06 20:42
Azel Low6-Sep-06 20:42 
AnswerRe: executing url without launching a new browser window Pin
MIHAI_MTZ6-Sep-06 21:10
MIHAI_MTZ6-Sep-06 21:10 
QuestionCan we create more than one try block in asp.net Pin
Prasad.garlapati6-Sep-06 20:05
Prasad.garlapati6-Sep-06 20:05 
AnswerRe: Can we create more than one try block in asp.net [modified] Pin
Jay_se6-Sep-06 20:18
Jay_se6-Sep-06 20:18 
QuestionMigrating fron coldfusion to .net Pin
Sudip67896-Sep-06 19:45
Sudip67896-Sep-06 19:45 
AnswerRe: Help Pin
minhpc_bk6-Sep-06 20:17
minhpc_bk6-Sep-06 20:17 
QuestionTrx Framework [modified] Pin
Tiger4566-Sep-06 17:58
Tiger4566-Sep-06 17:58 
AnswerRe: Trx Framework Pin
Sathesh Sakthivel6-Sep-06 18:04
Sathesh Sakthivel6-Sep-06 18:04 
GeneralRe: Trx Framework Pin
Tiger4566-Sep-06 18:28
Tiger4566-Sep-06 18:28 

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.