Click here to Skip to main content
16,005,236 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Refresh iframe and javacript into ajax Pin
Abolfazl Sheikhloo6-Apr-07 20:26
Abolfazl Sheikhloo6-Apr-07 20:26 
QuestionRe: Refresh iframe and javacript into ajax Pin
AnhTin6-Apr-07 23:02
AnhTin6-Apr-07 23:02 
AnswerRe: Refresh iframe and javacript into ajax Pin
Abolfazl Sheikhloo6-Apr-07 23:22
Abolfazl Sheikhloo6-Apr-07 23:22 
GeneralRe: Refresh iframe and javacript into ajax Pin
AnhTin7-Apr-07 0:54
AnhTin7-Apr-07 0:54 
Questionvisual studio 2005 web application and apache Pin
shabonaa6-Apr-07 11:12
shabonaa6-Apr-07 11:12 
AnswerRe: visual studio 2005 web application and apache Pin
Not Active6-Apr-07 12:43
mentorNot Active6-Apr-07 12:43 
GeneralRe: visual studio 2005 web application and apache Pin
shabonaa6-Apr-07 20:55
shabonaa6-Apr-07 20:55 
QuestionWeb Custom Control Problem Pin
faiqshah6-Apr-07 8:01
faiqshah6-Apr-07 8:01 
Hi All

I have problem regarding WebCustom Control
I am trying to develop a generic WebCustomControl for searching purpose.
What i am trying to do is to pass UI Controls such as labels textboxes etc from the hosting page to the webcustom control. I have a method in WebCustomControl Class that add these control to the Control Collection of the WebCustomControl.
The logic of the method is

public void AddControls(Controls[] UIControls)
{
foreach (Control control in UIControls)
{
this.Controls.Add(control );
}


}


The Method is called from the Hosting Page as

TextBox txt1 = new TextBox();
txt1.ID = "txtname";
Control[] c ={ txt1};
search.AddControls(c);

I creat a control array and store my textbox in it i then pass the array to the method of webcustom control.

Now the problem is that when render method of the control is called the control collection of webcutomcontrol lost its value. the logic of RenderContents is as

protected override void RenderContents(HtmlTextWriter output)
{

foreach (Control control in UIControls)
{
control .RenderControl(output);
}


}

D'Oh! | :doh: This is fairly simple but i don't know where the problem is

Any assistance will be appreciated

Regards

Faiq shah Afridi



QuestionDataGrid (or is it DataView) and a selection... Pin
soutener6-Apr-07 6:34
soutener6-Apr-07 6:34 
AnswerRe: DataGrid (or is it DataView) and a selection... Pin
SABhatti6-Apr-07 6:52
SABhatti6-Apr-07 6:52 
GeneralRe: DataGrid (or is it DataView) and a selection... Pin
soutener6-Apr-07 8:23
soutener6-Apr-07 8:23 
GeneralRe: DataGrid (or is it DataView) and a selection... Pin
SABhatti6-Apr-07 10:50
SABhatti6-Apr-07 10:50 
QuestionHow to set the tab index on Button Pin
sjs4u6-Apr-07 5:54
sjs4u6-Apr-07 5:54 
AnswerRe: How to set the tab index on Button Pin
SABhatti6-Apr-07 6:51
SABhatti6-Apr-07 6:51 
GeneralRe: How to set the tab index on Button Pin
Abolfazl Sheikhloo6-Apr-07 20:54
Abolfazl Sheikhloo6-Apr-07 20:54 
QuestionCHECKBOX (DYNAMIC CREATION WITH DIRECTIVES-CLASSIC ASP) Pin
hifiger20046-Apr-07 5:28
hifiger20046-Apr-07 5:28 
AnswerRe: CHECKBOX (DYNAMIC CREATION WITH DIRECTIVES-CLASSIC ASP) Pin
Not Active6-Apr-07 5:30
mentorNot Active6-Apr-07 5:30 
GeneralRe: CHECKBOX (DYNAMIC CREATION WITH DIRECTIVES-CLASSIC ASP) Pin
hifiger20047-Apr-07 13:29
hifiger20047-Apr-07 13:29 
Questionproblem in url rewriting Pin
NidhiKanu6-Apr-07 3:17
professionalNidhiKanu6-Apr-07 3:17 
Questioncan we execute datalist from code behind Pin
monuSaini6-Apr-07 1:34
monuSaini6-Apr-07 1:34 
AnswerRe: can we execute datalist from code behind Pin
_mubashir6-Apr-07 2:46
_mubashir6-Apr-07 2:46 
GeneralRe: can we execute datalist from code behind Pin
monuSaini6-Apr-07 3:30
monuSaini6-Apr-07 3:30 
GeneralRe: can we execute datalist from code behind Pin
Not Active6-Apr-07 4:59
mentorNot Active6-Apr-07 4:59 
Questioniframe Pin
AnhTin6-Apr-07 0:14
AnhTin6-Apr-07 0:14 
AnswerRe: iframe Pin
Not Active6-Apr-07 2:08
mentorNot Active6-Apr-07 2:08 

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.