Click here to Skip to main content
16,017,857 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: creating new control in code behind Pin
Anudeep Jaiswal31-Jul-08 1:39
Anudeep Jaiswal31-Jul-08 1:39 
QuestionProblem with GridView updating all records in database Pin
Dannyrod30-Jul-08 2:23
Dannyrod30-Jul-08 2:23 
AnswerRe: Problem with GridView updating all records in database Pin
Dannyrod30-Jul-08 2:57
Dannyrod30-Jul-08 2:57 
GeneralRe: Problem with GridView updating all records in database Pin
Dannyrod4-Aug-08 3:48
Dannyrod4-Aug-08 3:48 
QuestionUnable to connect to an asp.net 2.0 using IP address with it is possible to connect using localHost [modified] Pin
Hassan Amaar30-Jul-08 2:04
Hassan Amaar30-Jul-08 2:04 
AnswerRe: Unable to connect to an asp.net 2.0 using IP address with it is possible to connect using localHost Pin
dadda_mac30-Jul-08 11:27
dadda_mac30-Jul-08 11:27 
QuestionJavascript implementation Pin
windhopper30-Jul-08 1:53
windhopper30-Jul-08 1:53 
Questiondisplaying user controls on form Pin
shruti tupkari30-Jul-08 1:46
shruti tupkari30-Jul-08 1:46 
first of thnx for all who r answering my questions
now m dealing vd the user controls i have created 3 classes in App_code folder

1----->clsCombo1
public class clsCombo1 : CompositeControl
{
public event System.EventHandler SelectedIndexChanged;

public string CategoryId
{
get
{
//TextBox txt = (TextBox)FindControl("UserName");
//return txt.Text;
DropDownList ddl = (DropDownList)FindControl("CategoryID");
return ddl.Text;
}
set
{
//TextBox txt = (TextBox)FindControl("UserName");
//txt.Text = value;
DropDownList ddl = (DropDownList)FindControl("CategoryID");
string abc = value;
}
}
protected override void CreateChildControls()
{
Panel pnl = new Panel();
DropDownList ddlCategoryID = new DropDownList();
ddlCategoryID.AutoPostBack = true;
ddlCategoryID.SelectedIndexChanged += new EventHandler(ddlCategoryID_SelectedIndexChanged);
ddlCategoryID.Items.Add("a");
ddlCategoryID.Items.Add("a");
Controls.Add(pnl);
//add categoryid row
pnl.Controls.Add(new LiteralControl("
"));
pnl.Controls.Add(new LiteralControl("CategoryID:"));
pnl.Controls.Add(new LiteralControl("
"));
pnl.Controls.Add(ddlCategoryID);
pnl.Controls.Add(new LiteralControl("
"));
//setup control properties
pnl.Style.Add("background-color", "silver");
pnl.Style.Add("width", "275px");
ddlCategoryID.ID = "CategoryID";
ddlCategoryID.Style.Add("width", "170px");
}
void ddlCategoryID_SelectedIndexChanged(object sender, EventArgs e)
{
if (SelectedIndexChanged != null) SelectedIndexChanged(this, e);
}
}

same way i have created 2 classes which also loads the dropdownlist like this class
now on the web form(TestAllControls .aspx) m writing

public partial class TestAllControls : System.Web.UI.Page
{
protected void Page_Init(object sender, EventArgs e)
{
clsCombo1 p1 = new clsCombo1();
form1.Controls.Add(p1);
p1.SelectedIndexChanged += new EventHandler(p1_SelectedIndexChanged);
}
void p1_SelectedIndexChanged(object sender, EventArgs e)
{
clsCombo1 p1 = (clsCombo1)sender;
Response.Redirect("~/Default.aspx");
clsCombo2 p2 = new clsCombo2();
form1.Controls.Add(p2);
p2.SelectedIndexChanged += new EventHandler(p2_SelectedIndexChanged);
}
void p2_SelectedIndexChanged(object sender, EventArgs e)
{
clsCombo3 p3 = new clsCombo3();
form1.Controls.Add(p3);
p3.SelectedIndexChanged += new EventHandler(p3_SelectedIndexChanged);
}
void p3_SelectedIndexChanged(object sender, EventArgs e)
{
clsCoConfused | :confused: mbo3 p3 = (clsCombo3)sender;
Response.Redirect("~/Default.aspx");
}
}

what i want 2 do is on the selected index change of 1st dropdwnlist the second dropdoenlist should be loaded n same 4 third one....
but nothing is happening on the selected index change of first one....


can anyone help me....plsss
QuestionImage display problem on crystal report in asp.net page Pin
Nagraj Naik30-Jul-08 1:26
Nagraj Naik30-Jul-08 1:26 
AnswerRe: Image display problem on crystal report in asp.net page Pin
azizogluali221-Dec-09 22:44
azizogluali221-Dec-09 22:44 
AnswerRe: Image display problem on crystal report in asp.net page Pin
Debashree257-Apr-10 23:19
Debashree257-Apr-10 23:19 
Questionupdatepanel inside modalpopup Pin
legend_of_zanado30-Jul-08 1:26
legend_of_zanado30-Jul-08 1:26 
AnswerRe: updatepanel inside modalpopup Pin
Venkatesh Mookkan30-Jul-08 1:34
Venkatesh Mookkan30-Jul-08 1:34 
GeneralRe: updatepanel inside modalpopup Pin
legend_of_zanado30-Jul-08 1:47
legend_of_zanado30-Jul-08 1:47 
Questionhide my form window............, Pin
Member 387988130-Jul-08 1:08
Member 387988130-Jul-08 1:08 
JokeRe: hide my form window............, Pin
Venkatesh Mookkan30-Jul-08 1:16
Venkatesh Mookkan30-Jul-08 1:16 
Questionauto resiging images in asp.net2.0 Pin
nileshsaraf30-Jul-08 1:05
nileshsaraf30-Jul-08 1:05 
AnswerRe: auto resiging images in asp.net2.0 Pin
Venkatesh Mookkan30-Jul-08 1:19
Venkatesh Mookkan30-Jul-08 1:19 
QuestionAsp.net Validation Controls are not working in Mozilla. Pin
Khawar Abbas130-Jul-08 1:01
Khawar Abbas130-Jul-08 1:01 
AnswerRe: Asp.net Validation Controls are not working in Mozilla. Pin
eyeseetee30-Jul-08 1:09
eyeseetee30-Jul-08 1:09 
GeneralRe: Asp.net Validation Controls are not working in Mozilla. Pin
Khawar Abbas130-Jul-08 1:19
Khawar Abbas130-Jul-08 1:19 
AnswerRe: Asp.net Validation Controls are not working in Mozilla. Pin
umeshdaiya30-Jul-08 1:55
umeshdaiya30-Jul-08 1:55 
AnswerRe: Asp.net Validation Controls are not working in Mozilla. Pin
ElSpinos30-Jul-08 5:11
ElSpinos30-Jul-08 5:11 
Questionhow to clear the page values Pin
lakshmichawala30-Jul-08 0:36
lakshmichawala30-Jul-08 0:36 
AnswerRe: how to clear the page values Pin
J4amieC30-Jul-08 0:50
J4amieC30-Jul-08 0:50 

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.