Friday, January 22, 2010

In asp.net(vb) when iwant tosee aprogram in browser ,the browser doesnt show anyof my controls on thepage,why?

i have IIS installedIn asp.net(vb) when iwant tosee aprogram in browser ,the browser doesnt show anyof my controls on thepage,why?
Hi,


If you have installed the .net 1.0 or 2.0 framework before IIS, the page will not render. In that case run aspnet_regiis.exe -i
  • eye make up
  • How do you add controls to a form at runtime in ASP.NET?

    I can use form1.Controls.Add(myControl) or page.Controls.Add(myControl)





    but all of the controls are laid out left to right. I need to insert line breaks so they go top to bottom





    instead of label textbox label textbox label textbox





    I need





    label





    textbox





    label





    textbox





    I have tried adding an HTML linebreak to labels but that doesn't do anything. The code i'm working with is posted below:











    string[] files = GetCode();





    Color labelColor = Color.Red;





    Label spacer = new Label();





    spacer.Text = ';
    ';;





    for (int i = 0; i %26lt; files.Length;)





    {





    // currently set to the file name





    // create a label for the code





    Label label = new Label();





    label.ForeColor = labelColor;





    label.Text = files[i];








    i++; // move on to the code





    // currently set to code for this file





    // create a TextBox for this file





    TextBox textBox = new TextBox();





    textBox.Text = files[i];








    i++; // set up i for the next file





    // add the controls to the site





    form1.Controls.Add(label);





    Page.Controls.Add(spacer);





    form1.Controls.Add(spacer);





    form1.Controls.Add(textBox);





    form1.Controls.Add(spacer);





    form1.Controls.Add(spacer);





    }How do you add controls to a form at runtime in ASP.NET?
    if you acquire DRAM it will reset

    Is there any built in controls(button,table,grid view etc) like asp.net in php?

    There are a huge amount of Php scripts and classes to do whatever you want: just google ';php classes'; and ';php scripts';.


    (There is a site that is called something like ';phpclasses.com';)Is there any built in controls(button,table,grid view etc) like asp.net in php?
    and to really answer you question. No. There is nothing native to PHP what will create a window object like vb etc.


    You will have to create your own through static html.





    JavaScript does, vb does, but not PHP.


    http://us.php.net/

    Can any one help me..with this interview queistion...Describe Server Controls u have built(asp.net)?

    I am looking for the jobs in .Net ..Recruiter mailed me two questions...asking for my answers...


    can any one help me out with these questions....


    I really need this project....and i don't want to loose this opportunity


    by giving some random answers...





    it would be grateful if i can get gud answers that impresses my recruiter ...


    questions are:





    1) Describe server controls u have built


    2) Describe your experience with c# and asp.netCan any one help me..with this interview queistion...Describe Server Controls u have built(asp.net)?
    Don't start lying at your first interview. If you don't have the required basic experience before applying, go out and acquire it, then reapply.Can any one help me..with this interview queistion...Describe Server Controls u have built(asp.net)?
    Have YOU made any server controls, what is YOUR experience with c#? If you don't know something then just say that you haven't done something, it's ok.

    Any One can explain about New Services, Controls, and Features in ASP.NET 2.0?

    An Overview of the New Services, Controls, and Features in ASP.NET 2.0


    On the four short years since it was first unveiled, ASP.NET has become the gold standard for Web applications run on servers powered by Windows, adding runat=';server'; to the vocabularies of Web developers everywhere. It has also provided a revealing glimpse into the future of Web programminga future that revolves around server-side controls that render HTML and script, and that fire events.


    In the next major release of the Microsoft .NET Framework, ASP.NET 2.0 sheds its new-kid-on-the-block status and matures into a full-blown adult. Its aim is to reduce the amount of code required to accomplish common Web programming tasks by 70 percent or more. The goal is a lofty one, but also one that's achievable thanks to a diverse assortment of new services, controls, and features that promise to make ASP.NET 2.0 almost as dramatic an improvement to ASP.NET 1.x as ASP.NET 1.x was to ASP.


    Read more about An Overview of the New Services, Controls, and Features in ASP.NET 2.0 at http://www.buzzycode.com/ShowArticles-id鈥?/a>

    ASP.NET how to refer dynamic controls?

    i have dynamically created a few controls in a place holder called PlaceHolder_Item.





    when process, i need to retrieve the data in those controls, how to read back those controls?





    i did set ID property for each controls but it doens't work out,





    here are my codes:





    Dim txtItem As TextBox = New TextBox


    txtItem.ID = ';txtItem'; %26amp; i


    txtItem.Text = item


    PlaceHolder_Item.Controls.Add(txtItem)





    when retrieve :


    Dim txtItem As TextBox = New TextBox


    txtItem = PlaceHolder_Item.FindControl(';txtItem'; %26amp; i)








    pls help thank you.ASP.NET how to refer dynamic controls?
    You should pay attention to PostBacks. Are you adding the controls again? This state management can be a pain...





    Try referencing the control simply through its ID instead of using the FindControl() method of the PlaceHolder.





    Hope this helps.ASP.NET how to refer dynamic controls?
    smutty is right he knows alot about those electrical boxes

    How to create controls for PHP like in ASP.NET or VB6?

    Is there a way to create reusable controls for PHP just like it is done in .NET, Delphi, VB6, etc?How to create controls for PHP like in ASP.NET or VB6?
    Controllers are classes in ASP and VB, so u kan just make classes in PHP and u will get the result...How to create controls for PHP like in ASP.NET or VB6?
    absolutetly however since you are asking this question I would not recomend you trying it as it can create many loop holes in your application in a webpage, server, or intranet. :) take care
  • eye make up
  •