Click here to Skip to main content
15,910,118 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to make Username password page ??? Pin
Sathesh Sakthivel25-Jun-07 1:18
Sathesh Sakthivel25-Jun-07 1:18 
GeneralRe: How to make Username password page ??? Pin
ankur010125-Jun-07 1:48
ankur010125-Jun-07 1:48 
GeneralRe: How to make Username password page ??? Pin
Sathesh Sakthivel25-Jun-07 2:38
Sathesh Sakthivel25-Jun-07 2:38 
QuestionPublishing website problem ... Pin
amin_behzadi25-Jun-07 0:01
professionalamin_behzadi25-Jun-07 0:01 
AnswerRe: Publishing website problem ... Pin
Paddy Boyd25-Jun-07 0:27
Paddy Boyd25-Jun-07 0:27 
AnswerRe: Publishing website problem ... Pin
badgrs25-Jun-07 0:29
badgrs25-Jun-07 0:29 
GeneralRe: Publishing website problem ... Pin
amin_behzadi25-Jun-07 19:57
professionalamin_behzadi25-Jun-07 19:57 
QuestionProblem with userControl Pin
AnhTin25-Jun-07 0:01
AnhTin25-Jun-07 0:01 
hi all
I am developing a web application.
And I have problem with event in UserControl.

i have userControl is search.ascx
With usercontrol search.ascx have three Control is : two DropDownList (ddlCategory and ddlProduct) and Button(search).
in Function Page_Load of search.ascx have function "LoadCategory load all category" for ("ddlCategory"). When user choose category it will Load All Product of category ("ddlProduct") with event ddlCategory_SelectedIndexChanged(). after that user choose product(“ddlProduct”) and finally click button "search".

note: ddlCategory is postback = "true" and event ddlCategory_SelectedIndexChanged()
ddlProduct is postback = "false" and event SelectedIndexChanged = “”

I have a page Default.aspx and in Page_Load

UserControl ucl = new UserControl();
divControlLeft.Controls.Clear();
ucl = (UserControl)LoadControl("search.ascx ");
divControlLeft.Controls.Add(ucl);

but have problem:

so it don't get SelectedValue "ddlProduct".and into usercontrol it run to Load_page() function then to ddlCategory_SelectedIndexChanged() finally btlSearch_ServerClick().

"i dont understand why it run to ddlCategory_SelectedIndexChanged() ?????" when i click button search . And the ddlCategory and ddlProduct dont store value when i click search button ???

How can I get value in ddlProduct and don’t run event ddlCategory_SelectedIndexChanged() in search.ascx UserControl ????

Could u show me ???

If i drag usercontrol to “desgin” default.aspx page it run ok !!! it dont run to ddlCategory_SelectedIndexChanged() function when i click to search button and it get value ddlProduct is successful.

AnswerRe: Problem with userControl Pin
Chetan Ranpariya25-Jun-07 0:24
Chetan Ranpariya25-Jun-07 0:24 
QuestionRe: Problem with userControl Pin
AnhTin25-Jun-07 16:16
AnhTin25-Jun-07 16:16 
AnswerRe: Problem with userControl Pin
Chetan Ranpariya25-Jun-07 22:02
Chetan Ranpariya25-Jun-07 22:02 
QuestionCheckbox is checked or not? Pin
Abubakarsb24-Jun-07 23:55
Abubakarsb24-Jun-07 23:55 
AnswerRe: Checkbox is checked or not? Pin
Tarik Guney25-Jun-07 0:59
Tarik Guney25-Jun-07 0:59 
GeneralRe: Checkbox is checked or not? Pin
Abubakarsb25-Jun-07 1:54
Abubakarsb25-Jun-07 1:54 
GeneralRe: Checkbox is checked or not? Pin
Abubakarsb25-Jun-07 2:19
Abubakarsb25-Jun-07 2:19 
GeneralRe: Checkbox is checked or not? Pin
Abubakarsb25-Jun-07 2:29
Abubakarsb25-Jun-07 2:29 
AnswerRe: TO PUT LOGIC IN SIGN OUT LINK Pin
Zafar Iqbal24-Jun-07 23:40
Zafar Iqbal24-Jun-07 23:40 
AnswerRe: TO PUT LOGIC IN SIGN OUT LINK Pin
Christian Graus24-Jun-07 23:42
protectorChristian Graus24-Jun-07 23:42 
QuestionDisplaying Image To Web Page Pin
Ajeet mittal24-Jun-07 23:39
Ajeet mittal24-Jun-07 23:39 
AnswerRe: Displaying Image To Web Page Pin
Zafar Iqbal24-Jun-07 23:47
Zafar Iqbal24-Jun-07 23:47 
Questioni Pin
fmlove24-Jun-07 23:07
fmlove24-Jun-07 23:07 
AnswerRe: i Pin
Sylvester george24-Jun-07 23:20
Sylvester george24-Jun-07 23:20 
GeneralRe: i Pin
fmlove24-Jun-07 23:50
fmlove24-Jun-07 23:50 
AnswerRe: i Pin
badgrs24-Jun-07 23:22
badgrs24-Jun-07 23:22 
GeneralRe: i Pin
fmlove24-Jun-07 23:51
fmlove24-Jun-07 23:51 

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.