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
  • In ASP.Net, what is main difference between Server controls and HTML Controls?

    Server controls are converted to HTML when the ASP.net engine processes the request. Also server controls are classes ( can be treated as objects with attributes and methods )

    Asp.net, How can I hide controls....?

    How can i hide a .Net control (lets say listbox) without postback the page??


    using scripts!!!!Asp.net, How can I hide controls....?
    The problem you face is that ASP.NET will rename your controls, which makes it difficult to locate them by ID in JavaScript.





    You need to use Atlas, the JavaScript add-on for ASP.NET 2, or wait for ASP.NET 3 to come out, which will incorporate Atlas.





    http://ajax.asp.net/default.aspx?tabid=4鈥?/a>Asp.net, How can I hide controls....?
    set its visiblility to false

    From which website can i get the complete source code for all the asp.net(C#.net) controls & applications?

    i am developing one project so i need codes for datagrid,datepicker,Filters using operators,etc.so i need to know from which website we can get all type of our codes for any type of tools we use in dotnet?From which website can i get the complete source code for all the asp.net(C#.net) controls %26amp; applications?
    You can't get the source code, that's proprietary code written by Microsoft.

    ASP.Net Dynamic user controls problem?

    I have a datalist on a usercontrol. In that datalist there is 4 linkbuttons. On linkbutton1 click a modalpopup will open (using modalpopup extender). In that modalpopup there is a panel and inside the panel there is a placeholder. In that placeholder on the linkbutton1 click i load another usercontrol. On that usercontrol there is a textbox and a linkbutton2. Everything is working fine till here but if a tried to eneter some text in textbox and click on linkbutton2 the modalpopup vanishes without firing the linkbutton click event? What is the problem and how can i solve this problem??ASP.Net Dynamic user controls problem?
    ah i dont know what your talking about if you simpled up the question you migh get more answers

    Life cycle of controls in asp.net?

    The life cycle of controls is associated with page life cyle.


    Check this.





    1)Init--- after reconstruction of all the controls , here


    the properties of the controls are set





    2)load-- databinding is done(when viewstate of controls are disabled)





    3)pre-render-- controls can register script blocks





    4)render





    5)unload-- clean up code





    Hope this may help you.Life cycle of controls in asp.net?
    Check out ASP.NET Page Life Cycle Overview from http://msdn2.microsoft.com/en-US/library鈥?/a>

    ASP.NET cannot find controls which are made in another subroutine?

    Hi (again) ,


    My page is now looking like this





    Sub page_load


    if not page.ispostback then


    getData()


    End Sub





    Sub getData()


    Read db records


    Create dynamic controls


    End Sub





    Sub saveData()


    get dynamic controls info


    save results to db


    call getData()


    End Sub





    Now the problem is that in the saveData() i cannot seem to access my dynamic controls anymore using Dim questionQuery As TextBox = questionHolder.FindControl(';questionQuer鈥?The error this throws at me is %26lt;%26lt;Object reference not set to an instance of an object. %26gt;%26gt;.


    Does anyone have a clue what this might cause?





    Thanks in advance for your time


    Greetings


    MarkASP.NET cannot find controls which are made in another subroutine?
    If you are declaring and creating the controls inside the getDate sub then the controls will only exists while your code is inside that sub. As soon as you leave it, the scope of the application changes and anything done inside the sub is lost.





    If you want to have something last throughout execution you will need to declare it at a higher level so that any sub under that level can use it.





    You may want to try to create a control class to hold your dynamic controls. That way, you can access the class from inside any sub.ASP.NET cannot find controls which are made in another subroutine?
    it looks like the questionholder is null
  • eye make up
  • What r the type validation controls in asp.net?

    what r the type of validation controls in asp.net..What r the type validation controls in asp.net?
    I couldn get ur question properly!


    This is wat i understood from ur question.





    Wat are all the validation controls available in ASP.NET?





    you have server-side controls,





    1.Required field validator


    2.RegularExpression


    3.Range Validator


    so on...





    These control, though its an server-side control, these have the capability to validate in the client side itself. These controls while rendering froms client-side javascript.What r the type validation controls in asp.net?
    You know in advance programming sometimes we have to validate values.


    The best example is Email ID and Password.


    This is a kind of validation.





    so we have different kind of validation such as :


    1.Required field validator


    2.RegularExpression


    3.Range Validator


    4.Custom Valdiator





    each of them does an special task of validating.


    for example one of them is RangeValditaor : you give a range of number .


    for example 3-6.


    if the number entered by the user was in this range it would return true and else false.





    you can learn more at msdn or msdn2.
    http://msdn.microsoft.com/library/defaul鈥?/a>





    Microsoft.com has everything you need for asp.net

    Can any one help me creating dynamic controls in asp.net???

    Hi,


    I want to create some dynamic input box (text boxes) in asp.net using in C# or vb.net.


    I have tried a lot it creates the boxes but the values of previous boxes wipes out and it removes the data. so its a big trouble for me now. I want to keep the data in the fields above and also want to add a dynamic text box below the form.


    If you want to see the example you can go to Google's Edit contact list where it has a option like ';add more info';.





    Pls. pls. pls help me out with this.





    Thanks in advanced.Can any one help me creating dynamic controls in asp.net???
    - Yes


    - The following links take to create dynamic controls in-depth.


    - http://aspnet.4guysfromrolla.com/article鈥?/a>


    - all the best


    -----------------

    Does anyone know how to use telerik controls for asp.net?

    Your question is very general. Try to include more details. Telerik controls come with a help file which includes the details of how each control works. You might find this file of great help/Does anyone know how to use telerik controls for asp.net?
    Try a search on one of the major search engines for ';telerik controls asp.net';. Might find an answer there. Hope this helps.

    New controls in asp.net 3.0?

    There is a NET 3.0 runtime but asp .net is still known as asp .net 2.0. The Ajax/Atlas add-on is new. Of course you have access to the NET 3.0 framework in your code-behind C# pages.





    So the ASP ,NET server controls are still the same as in net 2.0, namely HTML, standard asp net, validation controls, data controls.





    Some very innovative controls can be developed with the (beta) SIlverlight technology. MSDN has downloads and webcasts.New controls in asp.net 3.0?
    the controls r as follows;;;;





    %26lt;html%26gt;


    %26lt;body bgcolor=';yellow';%26gt;


    %26lt;center%26gt;


    %26lt;h2%26gt;Hello W3Schools!%26lt;/h2%26gt;


    %26lt;p%26gt;%26lt;%Response.Write(now())%%26gt;%26lt;/p%26gt;


    %26lt;/center%26gt;


    %26lt;/body%26gt;


    %26lt;/html%26gt;








    you have not listed which control do you want?//////////

    Wednesday, January 20, 2010

    I was try to do do dropdown list with gridview controls in asp.net 2.0 and was try to learn from tutorial ?

    online but after do it i still find my dropdownlist is empty even i Create dataset and i add table from northwind DB name categories any one can help me please here the site of the tutorial


    http://www.asp.net/learn/data-access/tutorial-07-vb.aspx


    I was try to do do dropdown list with gridview controls in asp.net 2.0 and was try to learn from tutorial ?
    Um ... if you can't follow that tutorial, no one else is going to be able to help you.

    Can u give me the name of websites which provide the asp.net coding of controls and can free downloading them?

    you can try www.planet-source-code.com
  • eye make up
  • What are ASP.NET Controls?

    from wiki:





    ';ASP.NET Web User Controls is a small section of a ASP.NET page that can include static HTML code and web controls. User Control, while easy to create visually under IDE such as Microsoft Visual Studio, can be reused in multiple page in the same Web application. Due to the ease in creating user controls, and the benefits reuse provides, many Programmers turn to user controls for rendering the headers, footers, navigation links, and other common user interface elements of a page.';





    Check the sources I've listed for more information.What are ASP.NET Controls?
    Web server controls are .NET Framework objects that are converted by ASP.NET to HTML elements at run time. When a browser requests a page that contains Web server controls, ASP.NET generates HTML output based on the definition of the Web server controls on the page and returns that output to the browser. For example, if you have added a DropDownList Web server control to a Web page, ASP.NET sends a SELECT HTML element to browser. The SELECT element is the HTML equivalent of a DropDownList Web server control.





    Web server controls include not only form-type controls such as buttons and text boxes, but also special-purpose controls such as calendars and tree views.





    Hope this helps.