|
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)
{
clsCo 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
|
|
|
|
|
Hi all,
I am using crystal report 10 and framework 1.1 to develop a website.
I have created 1 report which contain a company logo image.It is working perfectly on local system,but when I release it on testing environment it doesn't show company logo image on report(other all default images print,crytal logo are visible).
If I export this report to .pdf it display logo image in .pdf file.
Do I need to any access to IIS user or anything else.
Please let me know the solution if anybody have any idea about the same.
Thanks,
Nagraj
|
|
|
|
|
got the same problem any solutıon?
|
|
|
|
|
check if web config does not contains one of the assemlies
add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
|
|
|
|
|
i have 2 dropdownlists in a panel with modalpopupextender ..
one of them show the companies and the other shows the branches of this company ..
i put the dropdownlist which shows the branches in an updatepanel .. and set the trigger to the company dropdownlist selectedindexchanged ..
when i make any change in the company dropdownlist the popup panel disappear ..
any solutions ??
|
|
|
|
|
legend_of_zanado wrote: set the trigger to the company dropdownlist selectedindexchanged ..
What type of trigger? PostbackTrigger? The page postback will reset the Updatepanel value, I believe since you are using ModalPopupExtender.
|
|
|
|
|
its asyncpostback trigger ..
|
|
|
|
|
Hi guys i created one windows application its contained only one form...,
In that form load event i said some operations have to run...,
Its working cool...,
But i dont like show the window of the form to enduser...,
So i tried to hide that using this.hide(); methode in my form load event...,
But its not getting hide...,
how to hide my form window?
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Are you serious? This is ASP.NET Forum not Windows Forum
|
|
|
|
|
I stored my images in ms-access database.I want to automatically resizing stored images as in orkut.
please help to so that i can display automatically resized images in my web page.
please help me
nilesh kumar saraf
|
|
|
|
|
|
Asp.net Validation Controls are not working in Mozilla. Any suggestion. I am using Asp.Net 2005.
Do good and have good.
|
|
|
|
|
Which validation controls? I have not found this problem
|
|
|
|
|
Its compare validator
Do good and have good.
|
|
|
|
|
will you show the code which you are use? because this problem is not happens with us. may be you are missing something?
|
|
|
|
|
I experienced this issue some time ago and resolved it by installing the latest service pack of the .NET Framework.
With my situation the validation control worked in IE but failed to do anything in Firefox. This was due to some javascript code which represents the validator at render time not being understood by firefox, the latest service pack makes changes to the validator's render code.
Hope this helps...
/F - .NET Developer
|
|
|
|
|
iam using two user controls u1 and u2 for this usercontrols iam using another user control p1 .and iam applying ajax in the page where these usercontrols are there .the problem is when i click one button the u1 is getting fired . and it is comming like a popup because iam using ModalPopupExtender with out flickering the page.but when iam giving some values and closing the popup and agin opening then the old values in the control u1 is not clearing and at the same time since iam using a uc p1 in the u1 .now wen iam opening the u2 .using javascript im handling some function where this p1 controls are not identified in the u2 .how this problem is solved
|
|
|
|
|
Step back, take a deep breath, and try writing in legible English. That is with sentences and paragraphs.
|
|
|
|
|
Hi,I am changing the text property of a textbox by javascript.
<asp:textbox id="txtName" runat="server" onfocus="change(this)" xmlns:asp="#unknown">
function change(obj){
var txt=obj;
txt.value='0';
Upto this point the code is running fine.But I want the TextChanged event to be fired whenever the value is changed to '0'.The TextChanged event is not being fired.The AutoPostBack property of the textbox is set to "true".
|
|
|
|
|
you're welcome
Try continuing the same thread rather than starting a new one.
|
|
|
|
|
hello
how to add form name.
where our project name display like
Project name Microsoft internet exlorer.
ex. chanakya Microsoft internet exlorer
in that line how to add form name.
thks
Gayatri
|
|
|
|
|
|
niki_nilu wrote: in that line how to add form name.
You can set it dynamically by using Page Title Property
this.Page.Title="My Page Title Here";
please don't forget to vote on the post that helped you.
|
|
|
|
|
You will have to set the title programmatically using code. Or you can create a base page and customize it to format the title as required and provide this functionality to all the pages. You may want to check my blog on this topic
asp.net pages and proper titles
HTH
|
|
|
|
|
hello sir
i am using master page.
then my aspx page is in contentplaceholder.
then how to write title.
my code
this code i write in
score.aspx.cs
and i used master page for this page.
string strMasterPageName = Master.MasterPageFile;
this.Master.Page.Title = "Score";
thks
Gayatri
|
|
|
|