Friday, January 22, 2010

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