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.

    What is asp.net login controls?

    The ASP.NET login controls provide a robust login solution for ASP.NET Web applications without requiring programming.





    http://msdn.microsoft.com/en-us/library/鈥?/a>





    http://www.asp.net/QuickStart/aspnet/doc鈥?/a>What is asp.net login controls?
    In asp.net 2.0/3.0/3.5 there are controls you can use in pages which add fields and buttons for authentication.





    These controls are as follows


    Login form: %26lt;asp:Login ID=';Login1'; runat=';server';%26gt;%26lt;/asp:Login%26gt;


    Login view: %26lt;asp:LoginView ID=';LoginView1'; runat=';server';%26gt;%26lt;/asp:LoginView%26gt;


    Password recovery: %26lt;asp:PasswordRecovery ID=';PasswordRecovery1'; runat=';server';%26gt;%26lt;/asp:PasswordRecovery%26gt;


    Login status: %26lt;asp:LoginStatus ID=';LoginStatus1'; runat=';server'; /%26gt;


    Login name: %26lt;asp:LoginName ID=';LoginName1'; runat=';server'; /%26gt;


    Password recovery: %26lt;asp:ChangePassword runat=';server';%26gt;%26lt;/asp:ChangePassword%26gt;





    There is also create user wizard to create new users for your app.





    In visual studio 2005 and 2008 these controls can be found under the login section of the toolbox when editing a web form.

    ASP.NET Validation controls r not working on uploaded site??

    they work well on my localhost...whats reason???


    http://atharvajobs.com/PostResume.aspxASP.NET Validation controls r not working on uploaded site??
    Yes I have an idea why.





    There are Javascript files under your Drive: \Inetpub\wwwroot \aspnet_client that might be missing from the server's root folder.





    Make sure you copy them there. If they are already there, there might be other Javascript files which ASP.NET uses that are missing. Make sure they are all there.





    If your application is being hosted by a third party, contact them and tell them your problem. They should fix it for you through copying these Javascript files to the server.





    Hope this helps.

    How to clear containts all controls in asp.net?

    I want to clear all the data entered by user at the time of post back.


    Is there any special command to clear all the containts on web form. I am using vb.net as serverside and text/javascript as client side language.How to clear containts all controls in asp.net?
    1) Since you want to clear everything on Page PostBack, then you can write a function (subroutine in VB.NET) to clear the controls manually one by one.


    ex:


    Private Sub Clear()


    TextBox1.Text = ';';


    DropDownList1.SelectedIndex = -1


    .


    .


    .





    End Sub





    2) In general there is no special way to do it but If you disable ViewState for the controls one by one, the controls will stop storing their state in ViewState and will clear by themselves. However this might introduce unexpected bugs in the later stages of development.





    3) Note: You can add an input of type ';reset'; to clear everything on the client side, however this will clear the results without posting the page back to the server i.e. before you can get to read the entered values by the user


    %26lt;input type=';reset'; value=';Clear';%26gt;





    4) Another way to clear those on the client is to use Javascript to clear them one by one. However as in 3) the page will not post back to the server





    Best Regards

    Asp .net web controls not rendering in internet explorer 6.0?

    I'm working on a web application in asp .net but I seem to be having a problem with displaying web controls such as textbox or buttons in the browser. Not sure what could be causing this, I would appreciate any help or suggestions, thank you in advance :)Asp .net web controls not rendering in internet explorer 6.0?
    I'd start by determining if security is blocking the controls from working, temporarily remove any security/virus blocking software along with placing of the site in your 'trusted' zone (Internet Options - Security Tab.) If security isn't the issue, try checking for any patches to be applied to IE6 (e.g. SP2, security-related). If none of this works, then the likely source is a problem with your development code, try walking the code and determining what is going on with each line of code checking values. Provide a few more details and repost your question (such as never has worked in any browser, more details on the methods used to build the controls.)

    Hidden Controls - ASP.NET?

    I have an ASP.NET program that has Hidden Controls. When I click on a particular button, the control should become visible. This works on some computers and not others, therefore I think it is an Internet Explorer setting that is causing this problem. What Internet Explorer setting could cause this to occur? Any suggestions would be appreciated. Thanks!Hidden Controls - ASP.NET?
    Are these controls HTML or server side?
  • eye make up
  • What are ASP.NET controls?

    These are very basic questions. Shouldn't Yahoo answers provide categorizations to the level of complexity for the questions submitted?What are ASP.NET controls?
    They are pre-made UI solutions built in to ASP.NET to solve common programming problems. For example, the ASP.NET TextBox control has built-in handling for retrieving the submitted value, and formatting the input field, without having to code that manually. The server worries about generating the correct HTML for the target browser type and all of the necessary accompanying code. As you can imagine, with much more sophisticated controls, It saves the developer a great deal of time by not having to worry about the common functionality that all sites and web applications must have.What are ASP.NET controls?
    Before ASP.NET controls, the developer was completely in charge of the entire HTML output from the browser by virtue of the server-side code he wrote.





    Although this might seem ideal, it created a problem because each browser interpreted the HTML given to it in a slightly different manner.





    ASP.NET server controls overcomes this problem. When using the server controls provided by ASP.NET, you are not specifying the HTML to be output from your server-side code. Rather, you are specifying the functionality you want to see in the browser and letting the ASP.NET decide for you on the output to be sent to the browser.





    When a request comes in, ASP.NET examines the request to see which browser type is making the request, as well as the version of the browser, and then it produces HTML output specific to that browser.





    ASP.NET provides two distinct types of server controls鈥擧TML server controls and Web server controls.


    Each type of control is quite different and, as you work with ASP.NET, you will see that much of the focus is on the Web server controls.





    PS~ I don't think that Yahoo can afford to categorise the questions under programming %26amp; Design right now. Sometimes I see very basic questions being answered by ppl who have no clue what they're talking about. Categorising the questions requires that you have a greater number of people with credibility who can answer.

    ASP.NET Controls ?

    Whats the difference between Literal Control and Label Control in ASP.NET.ASP.NET Controls ?
    Read the second to last post





    http://www.velocityreviews.com/forums/t1鈥?/a>

    ASP.NET. VB.NET: How to access value of checkbox field in the gridview control.?

    I have pulled data from SQL Server into a GridView control.


    Two of the columns are checkbox fields.





    During run-time,I am to click those columns to enter a check.


    But how can I find out if the values of those items during run-tim





    I need to allow the user to indicate whether they approve or deny a request; and then, I shall be able to update the corresponding columns in the originating database table.





    What must I do to solve this problem?





    During run-time, I added these two columns to the already existing ones:





    [code]





    Dim myCol1 As New DataColumn(';Approved';)


    Dim myCol2 As New DataColumn(';Denied';)





    myCol1.DataType = System.Type.GetType(';System.Boolean';)





    myCol2.DataType = System.Type.GetType(';System.Boolean';)





    myDataSet.Tables(0).Columns.Add(myCol1鈥?br>

    myDataSet.Tables(0).Columns.Add(myCol2鈥?br>

    myDataSet.Tables(0).AcceptChanges()


    [/code]





    I have code in myGridView_RowUpdating():





    [code]





    Try


    'For Each column As GridViewRow In myGridView.Rows(myGridView.EditIndex)


    ' Access the CheckBox


    'Dim cb As CheckBox = column.FindControl(';Approved';)





    'Perhaps could also check to see if the index of the row equals myGridView.EditIndex


    For Each row As GridViewRow In myGridView.Rows


    ' Access the CheckBox


    Dim cb As CheckBox = row.FindControl(';Approved';)








    If cb IsNot Nothing AndAlso cb.Checked Then


    Console.WriteLine(';Found';)





    'Here, I want to see if the Approved checkbox is checked.





    End If


    Next


    Catch ex As Exception


    Console.WriteLine(ex.Message)


    End Try[/code]








    This is the code that I placed in myGridView_RowCommand():





    [code]





    Static intCount As Integer


    Dim intRowIndex As Integer








    'If intCount = 0 Then


    intRowIndex = CInt(e.CommandArgument.ToString())


    'dim intColumnIndex as Integer = cint(Request.Form([';__EVENTARGUMENT';])





    myGridView.EditIndex = intRowIndex 'Place this particular row of the GridView control in edit mode.





    intCount += 1


    'End If 'If intCount = 0





    Dim intResponse As Integer


    Dim strAnswered As String








    If (e.CommandName.Equals(';Edit';)) Then





    ElseIf (e.CommandName.Equals(';Update';)) Then


    Console.WriteLine(';Update';)





    ' If myGridView.Rows(intRowIndex).Cells.Item(鈥?And myGridView.Rows(intRowIndex).Cells.Item(鈥?Then





    ' End If





    'intResponse = MsgBox(';Are you sure that you want to approve this request?';, MsgBoxStyle.YesNoCancel, ';Confirmation Required';)


    ElseIf (e.CommandName.Equals(';Cancel';)) Then





    Else


    'Nada


    End If 'If (e.CommandName.Equals(';Edit';))





    If intResponse = vbCancel Then


    MsgBox(';The record has not been changed.';, MsgBoxStyle.OkOnly, ';No Action Taken';)








    Exit Sub


    End If





    If intResponse = vbYes Then


    'Retreive the value of the key





    Dim strKey As String








    'strKey = myGridView.DataKeys(intRowIndex).Values(鈥? 'Oops! There has been nothing assigned to DataKeys.





    'Note: myGridView.Rows(intRowIndex).Cells.Item(鈥?is ';';, since it is the column of DELETE buttons.





    'This gives the contents of the first row, first column. It would have been Cells.Item(0), had it not been


    ' displaced by the row of EDIT buttons.


    strKey = myGridView.Rows(intRowIndex).Cells.Item(鈥?br>




    'Call the handling routine, with strKey as a parameter.


    'SupervisorResponse(strKey)


    End If 'If intResponse = vbYes


    [/code]ASP.NET. VB.NET: How to access value of checkbox field in the gridview control.?
    from code I have doing the same type of thing but going after a textbox





    Dim item as DataGridItem


    foreach item in DataGridCart.Items


    cartInfo = cartController.Get(CInt(DataGridCart.Dat鈥?br>

    cartInfo.Quantity = Convert.ToInt32((directcast(item.Cells(3鈥?br>

    next





    The code was converted to VB for you from CSharp on the fly...but that's the basic idea.ASP.NET. VB.NET: How to access value of checkbox field in the gridview control.?
    http://it.maconstate.edu/tutorials/

    List all possible Interview Questions on ASP.NET controls

    A List of all possible Interview Questions on ASP.NET controls can be found at the following URL


    http://venkataspinterview.blogspot.com/2008/07/interview-questions-on-aspnet-controls.html

    How do I use CSS with ASP.NET server controls?

    In regular HTML, you could define a style as follows that would apply to all the labels on a page.





    label{


    font-family: #000000;


    }





    Using ASP.NET and %26lt;asp:Label%26gt; how do I style all the labels on my page?How do I use CSS with ASP.NET server controls?
    You just need to make a style sheet, basically the same as CSS but save it as a .asp file then you will need to include the file with your .asp page





    %26lt;!--#include file=';../style.asp'; --%26gt;

    How to get 'focus' to mobile web control in mobile web form in ASP.Net?

    It is working fine for setting the initial focus as well as for setting focus to the other TextBox controls subsequently.


    %26lt;script runat=';server';%26gt;


    Protected Sub Page_Load(ByVal sender As Object,


    ByVal e As System.EventArgs)


    If (Not Page.IsPostBack) Then


    ControlFocus(';txtTable';)


    End If


    End Sub





    Private Sub ControlFocus(ByVal ControlName As String)


    Dim f As StringBuilder = New StringBuilder()


    f.Append(';%26lt;script language='JavaScript'%26gt;';)


    f.Append(';function setFocus() {';)


    f.Append(';document.getElementById('';)


    f.Append(ControlName)


    f.Append(';').focus();}';)


    f.Append('; window.onload=setFocus;';)


    f.Append(';%26lt;/';)


    f.Append(';script%26gt;';)


    Page.RegisterStartupScript(';Focus';, focusString.ToString)


    End Sub


    %26lt;/script%26gt;


    However, when I use the above code in my mobile web


    application (ASP.NET with VB.NET server code). I am not getting 'focus'in a mobile web TextBox.How to get 'focus' to mobile web control in mobile web form in ASP.Net?
    Page.SetFocus() is all you need for ASP.NET. Note that the ability to set focus depends upon the capabilities of the mobile browser. A lot of basic mobile browsers won't support javascript so you may not be able to pull this off as consistenly as you would on a desktop browser.
  • eye make up
  • How to upload file in ASP.Net C# without using the FileUpload web control?

    I'm trying to upload files using ASP.Net (C# based) but using only programming. I mean i don't want to use the FileUpload web control, i know it much easier but I want to know how to make the browse dialog, and when selecting a file i put it in a textbox, then i know the rest where you read the file as a stream and then save it locally on your computer or in the server, I know that in windows application just use the OpenFileDialog and that's it, but in ASP.Net it's different, and when I've added the System.Windows.Forms reference, it didn't work correctly.


    Please I need your helpHow to upload file in ASP.Net C# without using the FileUpload web control?
    The only possible way to do something like this would be to upt the file upload control on the page, but hide it with CSS and then use javascript to recreate everything.





    The reason you can't use System.Windows.Forms reference is because it expects the presentation layer to be on the same box as the rest of the code. In ASP.NET, you are using HTML for your presentation layer, which will be on another computer and may not even be Windows.

    Is it easy to control HTML/CSS code when using ASP.NET?

    I want to learn to use ASP.NET for web sites. I've done some Java, and some lame PHP stuff (a page that filled a table from a DB) and some static HTML/CSS newbie sites.





    I like the ability to exercise complete control on my HTML/CSS code so that it not only remains standard compliant, but also so that it stays lightweight and that I can understand every line in it and that it stays readable to me.





    With PHP, it was easy to do so since I would use a text editor, write the HTML code and drop some PHP here and there.





    With ASP.NET (3.5), if I use some of it's productivity features such as web controls (which I still know nothing about), will I still be able to easily control my HTML output so it contains only readable stuff? I'm just worried about my pages becoming heavy and looking like Frontpage '97 code..





    Please do not just tell me about web controls. I know little about ASP.NET so I assume I will use other stuff as well. I mentioned web controls only because I don't really know what I'm talking about yet.Is it easy to control HTML/CSS code when using ASP.NET?
    Prepare yourself for a shock, losing control was the main thing that I found hard to confront when I first attacked ASP.NET.





    Of course, there is no reason why you can't generate all your own html/css/javascript but that's not the .NET way.





    My advice is to take advantage of the existing controls and where they do not perform as you require then derive your own control Class from them or write another from scratch. If, like me, you habitually View Source then you are going to see a mess. You might be able to tidy things up a bit by implementing Delegates to do the rendering for you.




















    _

    Access User Control on Master Page From Content Page ASP.net?

    I would like to access a treeview in a content control on my master page fron my default.aspx page. How can I get there?





    Thanks in advance...


    SMAccess User Control on Master Page From Content Page ASP.net?
    You need to make a Public accessor to the TreeView:





    Public TreeView Tree


    {


    get


    {


    return treeViewCtrl;


    }


    }





    Then from the page, simply call this.Master.Tree

    Within ASP.NET, is it possible to set the __EVENTARGUMENT for a control?

    Im using ASP.NET v1.1. I have an HtmlControl INPUT button on the page that has a postback event attached to it. I want to know if its possible set the __EVENTARGUMENT value on postback once the button is clicked.





    TxWithin ASP.NET, is it possible to set the __EVENTARGUMENT for a control?
    I think it might create problems for you if you have asp.net controls on your page with their AutoPostBack property set to true.





    Check out these articles for more info


    http://www.codeproject.com/useritems/htm鈥?/a>


    http://www.xefteri.com/articles/show.cfm鈥?/a>

    Can i use require field validator control inside upadate panel (AJAX) in asp.net?

    client side validation with update panelCan i use require field validator control inside upadate panel (AJAX) in asp.net?
    Yes you can use require field validator control inside update panel (AJAX) in asp.net...





    Take a look on this as an example...





    %26lt;asp:ScriptManager ID=';ScriptManager1'; runat=';server';%26gt;


    %26lt;/asp:ScriptManager%26gt;


    %26lt;asp:UpdatePanel ID=';UpdatePanel1'; runat=';server';%26gt;


    %26lt;ContentTemplate%26gt;


    %26lt;asp:TextBox ID=';TXTBOX1'; runat=';server';%26gt;


    %26lt;/asp:TextBox%26gt;


    %26lt;asp:RequiredFieldValidator ControlToValidate=';TXTBOX1'; ID=';RC_TXTBOX1'; runat=';server'; ErrorMessage=';RequiredFieldValidator';%26gt;


    %26lt;/asp:RequiredFieldValidator%26gt;


    %26lt;asp:Button ID=';SUBMIT'; runat=';server'; Text=';Button'; /%26gt;


    %26lt;/ContentTemplate%26gt;





    %26lt;/asp:UpdatePanel%26gt;

    Windows media player control in Visual Web Developer 2005 Express Edition ASP.NET?

    Windows media player control in Visual Web Developer 2005 Express Edition ASP.NET How can i get it and use it? I tried adding it from the toolbox but its grayed out!Windows media player control in Visual Web Developer 2005 Express Edition ASP.NET?
    http://channel9.msdn.com/ShowPost.aspx?P鈥?/a>





    http://channel9.msdn.com/rss.aspx?UserID鈥?/a>





    http://coskunc.blogspot.com/





    http://msdn2.microsoft.com/en-us/asp.net鈥?/a>





    http://blogs.msdn.com/express/





    http://msdn.microsoft.com/globalrss/rssa鈥?/a>





    http://forums.asp.net/tags/asp.net.c_230鈥?/a>





    http://dobreprogramy.pl/index.php?dz=2%26amp;i鈥?/a>
  • eye make up
  • Creating a ASP .NET Table Row as a User Control?

    I'm creating a user control in my asp .net application and I need to be able to add the user control to a table as a row. I've already tried just putting TR tags in the user control to get it to render correctly, but I've got to add it dynamically using myTable.Rows.Add(myControl) and since .net is so strongly typed it's not letting me.





    If you guys aren't sure could you point me towards a more specialized forum that's directed towards asp .net that responds as quickly as Yahoo Answers does?





    Thanks ahead of time.Creating a ASP .NET Table Row as a User Control?
    Rather than make it as a user control, have you considered creating it simple as a class that derives from System.Web.UI.WebControls.TableRow?

    How to pass the value to the user control using c#.net with asp.net?

    U nee dto create events n delegates.


    public color p_setuserbackcolor


    {


    get


    {


    value;


    }


    set{


    tetxbox1.backcolor=value;


    }


    }


    Declaring delegate:


    public delegate void abc(object s,eventargs e);


    public event abc myclic;








    Hope u get the concept n can use nowHow to pass the value to the user control using c#.net with asp.net?
    It necessarily depends on where the value is produced.


    If it is on the client side like a field in a form, you can access Request object from the user control, hence the value. You can also use Session object to pass values, but this will consume some memory depending on the value.How to pass the value to the user control using c#.net with asp.net?
    user control is also a class,so you can use the same way to pass the value to the user control as to the class.
    I think you are asking about the Web User Controls, its better to use the session values.





    Set the value on session on the Page_Load()





    use the session value in the User Control Code.

    I created a Registration & login page in asp.net C#.not use the inbuilt control.it works fine with sql db?

    but i need to display the user name when the user gets logged.. in new page..how to do tat ...I created a Registration %26amp; login page in asp.net C#.not use the inbuilt control.it works fine with sql db?
    how should I know when I don't know the layout of your DB or the names of any of the important variables.

    How to create hot keys(Control keys like ctrl+S) in web application in ASP.Net?

    Label Control





    New: Hotkey functionality (accelerator Keys)





    Explanation:


    Hotkey is shortest way for user to initiate any action on Page. For instance, in Internet Explorer using “ctrl +O” brings up Open Dialog box.





    Quick Implementation:


    Hotkeys implemented using “AccessKey” and “AssociatedControlId” attributes.


    AccessKey - shortcut letter


    AssociatedControlId - control to be triggered on using AccessKey.





    Sample code:


    %26lt;p%26gt;


    %26lt;asp:Label id=”lblUserName” Runat=”server” AccessKey=”P” AssociatedControlId=”txtUserName”%26gt;%26lt;/asp:…


    %26lt;asp:TextBox Id=”txtUserName” Runat=”server”/%26gt;


    %26lt;/p%26gt;





    Note:


    Keep in mind, that not all the letters used for this. Microsoft Internet Explorer already uses Alt+F, E, V, I, O, T, A, W, and H. If you use any of these letters, IE overrides anything used on page.








    ▬♂http://www.c-sharpcorner.com/Code/2005/M…How to create hot keys(Control keys like ctrl+S) in web application in ASP.Net?
    You are welcome

    Report Abuse

    Asp.net id not declared in repeater control?

    In asp.net i have a repeater control which shows some news items. With every item i enclosed an edit and delete link so admins can change the news. But if the userlevel is not adeqate for changing i want the buttons to dissapear. So what i tried to do is simply refer to the button like btnEdit.visible = false. The id of the buttons is btnEdit but it keeps on saying it's not declared. Is it possible that it has something to do with the repater control and id's inside it?Asp.net id not declared in repeater control?
    Yes, you have to remember that the buttons are created at run-time since they are inside the repeaters.





    Before I continue, I need to tell you that what you are doing is a poor security practice. Merely hiding the button is not enough. But that's another issue..





    Now back to your question. The buttons can be accessed at the repeater_ItemDataBound event. Your code should be something similar to this:


    %26lt;asp:Repeater ID=';MyRepeater'; runat=';server'; OnItemDataBound=';MyRepeater_DataBound';%26gt;


    %26lt;ItemTemplate%26gt;


    %26lt;asp:button id=';btnTest'; runat=';server'; Text=';Test'; /%26gt;


    %26lt;/ItemTemplate%26gt;


    %26lt;/asp:Repeater%26gt;





    protected void MyRepeater_DataBound(object sender, RepeaterItemEventArgs e)


    {


    if ((e.Item.ItemType == ListItemType. Item) || (e.Item. ItemType == ListItemType. AlternatingItem) )


    {


    ((Button) e.Item. FindControl (';btnTest';) ).Visible = false;


    }


    }





    Hope this helps.Asp.net id not declared in repeater control?
    In the .aspx file, make sure you have id=';btnEdit'; runat=';server';. Sometimes omitting the 'runat' will throw that error

    How we use addrotetor control in web page using asp.net?

    state a programe as exampleHow we use addrotetor control in web page using asp.net?
    Here's a link with stepped instructions and code samples:





    http://support.microsoft.com/kb/305035
  • eye make up
  • ASP .NET - Need recommendations for a free Calendar control with dropdown?

    I need an ASP .NET control for use in a C# web app. It seems like the built-in ASP .NET calendar doesn't support dropdown, I need one that does.ASP .NET - Need recommendations for a free Calendar control with dropdown?
    visit http://www.asp.net %26lt;~~ by MicrosoftASP .NET - Need recommendations for a free Calendar control with dropdown?
    A drop down is a select list in HTML it does not work well with calendars. There are tons of calendars out there you can find one that may suit your needs.





    RJ

    Fill drop down menu control inside details view using asp.net 2?

    I used a details view in asp.net2 using c# . I want to add a drop down list as field inside. this ddl takes its items from enumerated data type by a function FillLookupCombo, but the ddl is never filled with the values. an error appears saying that the object has no reference :(


    ..Please Help me..Fill drop down menu control inside details view using asp.net 2?
    Without seeing your code, it's difficult to figure out your problem. As a rule, if you are not using Option Strict, you can late-bind such controls by using a TemplateColumn and calling your function inline:





    %26lt;asp:TemplateColumn%26gt;


    %26lt;ItemTemplate%26gt;


    %26lt;asp:DropDownList runat=';server'; ID=';theList'; DataSource='FillLookupCombo()' DataTextField=';somefield'; DataValueField=';somefield'; /%26gt;


    %26lt;/ItemTemplate%26gt;


    %26lt;/asp:TemplateColumn%26gt;

    In control panel/user acc/manage accounts-i have:admin/asp.net/guest acc:my question is where and what is the?

    asp.net account doing there ,i can't remember putting it there,is it a 'dialler',did vista put it there,can i delete it,or do we all have it,sorry being a bit long winded,thanx.In control panel/user acc/manage accounts-i have:admin/asp.net/guest acc:my question is where and what is the?
    The .Net framework.... which is used by software to be able to run on your computer. Well the .Net framework creates this account.





    I have this account and eveyrone who has the .net framework installed will also have it. I wouldnt delete it as this causes problems with the framework package.. Infact i dont think you can delete it unless you uninstall the framework package





    Hope this helps!In control panel/user acc/manage accounts-i have:admin/asp.net/guest acc:my question is where and what is the?
    ';The aspnet_wp or ASP.NET Machine Account is created when the Microsoft .Net Framework 1.1 is installed onto a Windows XP computer. The user is created to run the asp.net worker process used in Microsoft's Internet Information Services, which allows ASP.net to run on your local web server (This is pretty much its only use, it is not used to run normal .net managed executables). There is not a need to worry about this user's presence; it was not created in malicious way....';

    Paging in asp.net VB using the repeater control?

    I would like to know where i can find a good article for paging in asp.net with the repeater control. I do not want to use stored procedures and it should only query the records which are visible on the page (not caching the whole dataset at once). Can someone help me in the right direction? Im using vb as languagePaging in asp.net VB using the repeater control?
    Here's an article that teaches you how to page a repeater however all the records are returned from the database.


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





    You can easily query ONLY the records needed by enhancing the above technique. Instead of using the PagedDataSource object, define a Stored Procedure in your database that takes as parameters the PageIndex you are seeking and the PageSize. An example of such a stored procedure can be found here under TIP2:


    http://msdn.microsoft.com/msdnmag/issues鈥?/a>





    If you are using SQL Server 2005 (or even SQL Express Edition), you can refer to this article:


    http://weblogs.asp.net/scottgu/archive/2鈥?/a>





    Hope this helps.

    Some doubts in DataGrid Control to Sort the Values ASP.NET?

    Hai friends, I need to sort the datagrid control in asp.net page. when i click the column header it should be sorted and display. but one condition has to be applied. when i click the sort expression it should not go and sort from the database itself. this is must . how to do pa? anybody could help me to do?Some doubts in DataGrid Control to Sort the Values ASP.NET?
    The following articles will certainly help you :








    Optimized ASP.NET DataGrid Sorting %26gt;


    http://www.codeproject.com/aspnet/Optimi鈥?/a>





    Working with Data Grid:


    http://samples.gotdotnet.com/quickstart/鈥?/a>Some doubts in DataGrid Control to Sort the Values ASP.NET?
    thru oracle as back end u can made


    select * from %26lt;tablename%26gt; orderby %26lt;as u wish%26gt;

    How can i set a limit for the number of selections in an asp.net listbox control?

    sure. you can do that.





    You will have to use JavaScript along with ASP.NET.





    I will try to explain this because i have done this but with a validation situation but never done with the select limit.





    I will assume that you are a pro in web development and JavaScript.





    OK, let's start. Server Controls have an property called ';Attributes';. There Attributes are the ones placed at run time when the control renders to the browser (i.e.; onClick, onChange ..etc.). The trick here is to attach a JavaScript function to monitor the ListBox selection when the user select items from it. Here is the ASP.NET code:





    C#:


    ---


    private void Page_Load(object sender, System.EventArgs e) {





    myListBox..Attributes.Add(';onChange';, ';return CheckItmes();';);





    }


    this code instructs the IIS to add an ';onChange'; event to the ListBox that runs at the client's side and calls the JavaScript CheckItems() function.





    Inside the HTML page, you will write the JavaScript function body that handles the onChange for the myListBox control.





    It's easy, right? try it.





    If you have any question or help contact me:


    yasserhy@yahoo.com
  • eye make up
  • In asp.net. how can i display image in control text box ?

    i want display tag HTML in text box. like as %26lt;b%26gt;mytext%26lt;/b%26gt; but i want my text is boldIn asp.net. how can i display image in control text box ?
    I am not quite sure if I understand you. You want the content of the textbox to be bold text? Is that what you are saying? If so then you need to click on the textbox, then in the property window expand the font property by click on the plus sign. Then locate bold right under font and make it true.In asp.net. how can i display image in control text box ?
    You can easily style the font in your text box through using CSS.





    Just add the following to your stylesheet


    input { font-weight:bold; }





    If you're using this in selected TextBoxes, you can add a class to your CSS:


    .BoldText { font-weight:bold; }


    and you assign the class to your textBox


    %26lt;asp:TextBox id=';txt'; runat=';server'; CssClass=';BoldText'; /%26gt;








    Hope this helps.

    How can i control parallel port using asp.net web application using visual c#?

    What you will have to do is create a regular desktop application that controls the port and set a web interface to turn on the process and terminate it. Use System.Diagnostic.process in C# for example to control process execution from a web interface. You will also need to change permissions on the server that runs the application mainly to elevate the ASP.NET user to an administrator. Also add the IIS to act as the operating system in the security policies. Not simple I admit but doable.

    Problem in registration of third party control on website in asp.net?

    i m using asp.net 2003 version and i m using some third party controls, when i m going to host my site and call the page its need registration of that perticular control.





    but this same thing is worked in my local pc successfully...





    can any one help me???Problem in registration of third party control on website in asp.net?
    Thats a pretty vague question because nobody knows how you used the third party controls or what they are.





    What do you mean by needs registration? Have you run some sort of installer before using the controls in your application locally?

    In asp.net how to create textbox, command button in datagrid control help me?

    its simple, drag and drop ur controls from tool box,


    In tool box u have textbox,command button and datagrid .In asp.net how to create textbox, command button in datagrid control help me?
    if you are using asp.net 2.0, it is better to use a GridView instead of a DataGrid.





    With a DataGrid, you can add a template column. Here are some examples


    http://www.codeproject.com/KB/webforms/M鈥?/a>


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


    http://harishmvp.blogspot.com/2005/11/as鈥?/a>





    With a GridView you can use a template field. Here are some examples:


    http://msdn.microsoft.com/en-us/library/鈥?/a>


    http://msconline.maconstate.edu/tutorial鈥?/a>





    HOpe this helps.

    How to add a user control dynamically to an asp.net web page?

    It depends on what kind of control where you want to put it but something like





    UserControl uc = new UserControl();


    Page.Controls.Add(uc);

    How to create and validate asp.net controls at runtime?

    Hai friends, I want to create asp.net controls at runtime. I need to get the values of that controls and also want to validate the control using javascript. How to do that? any one pls.How to create and validate asp.net controls at runtime?
    use the Controls collection of the page itself, or any child control. Using it, you can create any kind of control that you need to and the call





    somecontrol.Controls.Add(some other control)





    at runtime. You can also get access to them using the same collection, either by knowing the index of the control you're looking for, or by using





    somecontrol.Controls.IndexOf( the control you're looking for);





    Hope that helps.
  • eye make up
  • Define server control and explain in asp.net?

    no links plzDefine server control and explain in asp.net?
    A server control is an object that is managed, controlled, and rendered by the server. Server controls always contain the runat=';server'; attribute.





    like:


    %26lt;asp:Button id=';button1'; runat=';server'; Text=';Click me!'; OnClick=';submit';/%26gt;





    Having this ';runat=server'; attribute will tell asp.net that this control can be controlled in your code (you can set the label of the button above in your asp.net code). It will also tell it that things like viewstate/etc is being tracked (so that once you change the label it will stay changed even after the next postback). ... and it also will cause the object to be rendered to HTML (by using code that implements the server control) rather then just output as normal text/html.Define server control and explain in asp.net?
    server controls are something that executes on the server side like the validation controls. which makes a call to the server and gets the reply back and shows the error (if any) in client.





    some server controls can be implemented in client side as well that will not make a call to the server instead it will validate the process in the client side and provide you the result (JavaScript validation)





    Hope this helps...





    cheers

    ASP.NET 2.0 treeview control related problem?

    I want to run a javascript function on click of the expand image(+) of the treeview. How do i specify an event and bind my function call to it, only for the + image?ASP.NET 2.0 treeview control related problem?
    event.srcelement is IE-only. The comparable DOM 2 property is event.target.





    don't go there!

    User Control error in ASP.Net?

    The following is my ascx file.And which is showing an error -';The directive 'control' is unknown.';





    %26lt;%@ Control Language=';C#'; AutoEventWireup=';true'; CodeFile=';header.ascx.cs'; Inherits=';header'; %%26gt;





    %26lt;%


    string clsMenuHome=';';;


    string clsMenuAboutUs=';';;


    string clsMenuAdmin=';';;


    string clsMenuLogin=';';;


    string clsMenuContactUs=';';;


    clsMenuHome=(menuPage==';Home';)?';liSelect…


    clsMenuAboutUs=(menuPage==';AboutUs';)?';li…


    clsMenuAdmin=(menuPage==';Admin';)?';liSele…


    clsMenuLogin=(menuPage==';Login';)?';liSele…


    clsMenuContactUs=(menuPage==';ContactUs';)…








    %%26gt;








    %26lt;ul%26gt;








    %26lt;li class=';%26lt;%=clsMenuHome %%26gt;';%26gt;%26lt;a href=';#';%26gt;Home%26lt;/a%26gt;%26lt;/li%26gt;


    %26lt;li id=';liSep';%26gt;%26lt;/li%26gt;


    %26lt;li class=';%26lt;%=clsMenuAboutUs %%26gt;'; %26gt;%26lt;a href=';AboutUs.aspx';%26gt;About Us%26lt;/a%26gt;%26lt;/li%26gt;


    %26lt;li id=';liSep';%26gt;%26lt;/li%26gt;


    %26lt;%if(Session[';UserType';].ToString()==';Ad…


    {


    %%26gt;


    %26lt;li class=';%26lt;%=clsMenuAdmin %%26gt;';%26gt;%26lt;a href=';UserManagementUI.aspx';%26gt;Admin%26lt;/a%26gt;%26lt;/…


    %26lt;li id=';liSep';%26gt;%26lt;/li%26gt;





    %26lt;% } %%26gt;


    %26lt;li class=';%26lt;%=clsMenuLogin %%26gt;'; %26gt;%26lt;a href=';Login.aspx';%26gt;Logout%26lt;/a%26gt;%26lt;/li%26gt;


    %26lt;li id=';liSep';%26gt;%26lt;/li%26gt;


    %26lt;li%26gt;%26lt;a href=';#';%26gt;Contact Us%26lt;/a%26gt;%26lt;/li%26gt;





    %26lt;/ul%26gt;








    Please help me.User Control error in ASP.Net?
    There is something wrong in your MYSQL Server try to fix it from ur hosting control Panel

    ASP.NET 2.0: Login Control or Customized Login Form?

    Which is better?





    ThanksASP.NET 2.0: Login Control or Customized Login Form?
    A little vague. What do you mean Custom?





    If you mean build your own control you will simply be overriding the login control with your own look. They are basically the same thing with you adding things you feel is needed.





    Maybe you want address email etc fields.ASP.NET 2.0: Login Control or Customized Login Form?
    Make a custom login form because you will be able to customize it according to your requirments.

    Some doubts in DataGrid Control to Sort the Values ASP.NET?

    Hai friends, I need to sort the datagrid control in asp.net page. when i click the column header it should be sorted and display. but one condition has to be applied. when i click the sort expression it should not go and sort from the database itself. this is must . how to do pa? anybody could help me to do?Some doubts in DataGrid Control to Sort the Values ASP.NET?
    The following articles will certainly help you :








    Optimized ASP.NET DataGrid Sorting %26gt;


    http://www.codeproject.com/aspnet/Optimi鈥?/a>





    Working with Data Grid:


    http://samples.gotdotnet.com/quickstart/鈥?/a>

    Monday, January 18, 2010

    ASP.net 2.0 login control using MS Access rather tnah default SQL?

    Im trying to setup a login (without hard coding it) in ASP.Net 2.0 and i saw a video showing how easy it all is using the login controls but i want it to run from a Microsoft Access database rather than the SQL it is set to work with anyone got any idea how to change this or make Access available as an option?ASP.net 2.0 login control using MS Access rather tnah default SQL?
    here is a link to using ado connection strings for various databases:





    http://www.carlprothman.net/Default.aspx鈥?/a>
  • eye make up
  • How can I create a control dynamically in C# / ASP.NET?

    All of the controls that you can drag onto the designer are objects that can be referenced and declared in code.





    TextBox txt = new TextBox; // Declares a textbox control


    txt.ForeColor = System.Drawing.Color.Red; // Assigns the text color to red





    this.Controls.Add(txt); // Adds the textbox control created above to the page/form's control heirarchy.

    How to read Repeater control's row in ASP.NET?

    How to read entire row in a repeater control when i click its respective Link or ButtonHow to read Repeater control's row in ASP.NET?
    even though I have no idea what your talking about I agree 100% with smutty because his my long lost brother.:)


    ....... I MISS YOU BROHow to read Repeater control's row in ASP.NET?
    Your question is a bit vague. To edit Items, I suggest you resort to a DataList. It offers EditTemplates which make your life easier. Anyways, here's a simple example on a repeater. The Details link makes use of the row info and sends the user to Customer Details page with appropriate QueryString.





    %26lt;%@ Page Language =';C#'; %%26gt;





    %26lt;%@ Import Namespace =';System.Data'; %%26gt;


    %26lt;%@ Import Namespace =';System.Data.SqlClient'; %%26gt;





    %26lt;script runat =';server';%26gt;


    protected void Page_Load (object sender, EventArgs e)


    {


    if ( !Page.IsPostBack )


    {


    BindRepeater();


    }


    }





    private void BindRepeater()


    {


    SqlConnection MyConnection;


    SqlCommand MyCommand;





    MyConnection = new SqlConnection(';server=. ; DataBase=Northwind; uid=sa;pwd=;';);


    MyCommand = new SqlCommand( ';SELECT TOP 10 * FROM CUSTOMERS ';, MyConnection );





    DataTable dt = new DataTable();


    SqlDataAdapter da = new SqlDataAdapter( MyCommand );


    MyCommand. Connection.Open();


    da.Fill(dt);


    MyCommand .Dispose();


    MyConnection .Dispose();





    repeater. DataSource = dt;


    repeater.DataBind();





    }


    %26lt;/script%26gt;





    %26lt;html xmlns=';http://www.w3.org/1999/xhtml';%26gt;


    %26lt;head runat=';server';%26gt;


    %26lt;title%26gt;Untitled Page%26lt;/title%26gt;


    %26lt;/head%26gt;


    %26lt;body%26gt;


    %26lt;form id=';form1'; runat=';server';%26gt;


    %26lt;table border=';0'; cellpadding =';0'; cellspacing =';0';%26gt;


    %26lt;asp:Repeater ID=';repeater'; runat =';server'; %26gt;


    %26lt;ItemTemplate%26gt;


    %26lt;tr%26gt;


    %26lt;td%26gt;


    Customer Id:%26lt;/td%26gt;


    %26lt;td%26gt;


    %26lt;%# Eval( ';CustomerID'; ) %%26gt;


    %26lt;/td%26gt;


    %26lt;td style=';width: 50px;';%26gt;


    %26lt;/td%26gt;


    %26lt;td%26gt;


    Customer Name:


    %26lt;/td%26gt;


    %26lt;td%26gt;


    %26lt;%# Eval('; ContactName ';)%%26gt;


    %26lt;/td%26gt;


    %26lt;td%26gt;


    %26lt;a href='CustomerDetails.aspx? CustomerId= %26lt;%# Eval( ';CustomerID';) %%26gt;' id =';lnkCustomerDetails'; %26gt;Details%26lt;/a%26gt;


    %26lt;/td%26gt;


    %26lt;/tr%26gt;


    %26lt;/ItemTemplate%26gt;


    %26lt;SeparatorTemplate%26gt;


    %26lt;tr%26gt;


    %26lt;td colspan=';6';%26gt;


    %26lt;hr /%26gt;


    %26lt;/td%26gt;


    %26lt;/tr%26gt;


    %26lt;/SeparatorTemplate%26gt;


    %26lt;/asp:Repeater%26gt;


    %26lt;/table%26gt;


    %26lt;/form%26gt;


    %26lt;/body%26gt;


    %26lt;/html%26gt;

    Is there any Control for printing in ASP.NET?

    Is there any control in .NET Frame work or AjaxIs there any Control for printing in ASP.NET?
    No there isnt,


    You can use :


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    %26lt;input type=';button'; value=';Print this page'; onclick=';printpage()'; /%26gt;





    %26lt;script type=';text/javascript';%26gt;


    function printpage()


    {


    window.print();


    }


    %26lt;/script%26gt;


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    in your ASP File

    How can I restore state of a user control from postback request in ASP.Net?

    Use Viewstate





    in most of the cases, ASP.Net manages this task i.e. restore the state after post backHow can I restore state of a user control from postback request in ASP.Net?
    I've never really understood how to make it work right, but look up saving and loading viewstate.How can I restore state of a user control from postback request in ASP.Net?
    CDye amoozeshe ASP.NET tebghe mabahes hast biroon


    fek konam age karet barname nevisi ba ASP.net bashe be dardet bokhore


    fadat

    HOW TO DISABLE ALL THE DATES BEFOR TODAY'S DATE IN CALANEDER CONTROL...IN ASP.NET...?

    Without using ';DAYRANDER EVENT'; of calander control











    protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)


    {


    if (e.Day.Date.CompareTo(DateTime.Now.Date) %26lt; 0)


    {


    e.Day.IsSelectable = False;


    }


    }











    we use this coding for calander control to disable all the dates before today's date


    but after that non of event fire....we try to solve this problem but we can't


    so please provide solution to us as early as possible....HOW TO DISABLE ALL THE DATES BEFOR TODAY'S DATE IN CALANEDER CONTROL...IN ASP.NET...?
    ';False'; spelling mistake ,it will be ';false';

    Working with ASP.NET Multiple fileupload control?

    I have 3 fileUpload Controls on .aspx page with single upload button..





    I want the files to be uploaded to respective folder on basis of file extension.





    for example..


    .mp3,m3u,amr to audio folder





    .jpeg,.gif to images folder





    --------------------------------------鈥?br>

    Code behind file...





    Dim filepath As String = ';C:\Uploads';


    Dim uploadedFiles As HttpFileCollection = Request.Files


    Dim i As Integer = 0





    Do Until i = uploadedFiles.Count


    Dim userPostedFile As HttpPostedFile = uploadedFiles(i)





    Try


    If (userPostedFile.ContentLength %26gt; 0) Then


    Label1.Text += ';%26lt;u%26gt;File #'; %26amp; (i + 1) %26amp; ';%26lt;/u%26gt;%26lt;br%26gt;';


    Label1.Text += ';File Content Type: '; %26amp; _


    userPostedFile.ContentType %26amp; ';%26lt;br%26gt;';


    Label1.Text += ';File Size: '; %26amp; _


    userPostedFile.ContentLength %26amp; ';kb%26lt;br%26gt;';


    Label1.Text += ';File Name: '; %26amp; _


    userPostedFile.FileName %26amp; ';%26lt;br%26gt;';





    userPostedFile.SaveAs(filepath %26amp; ';\'; %26amp; _


    System.IO.Path.GetFileName(userPostedFil鈥?br>




    Label1.Text += ';Location where saved: '; %26amp; _


    filepath %26amp; ';\'; %26amp; _


    System.IO.Path.GetFileName(userPostedFil鈥?%26amp; _


    ';%26lt;p%26gt;';


    End If


    Catch ex As Exception


    Label1.Text += ';Error:%26lt;br%26gt;'; %26amp; ex.Message


    End Try


    i += 1


    Loop


    End SubWorking with ASP.NET Multiple fileupload control?
    You can use a FileInfo object to find the extension of the posted file. From there, just use the SaveAs() method of the PostedFile class to save it to its appropriate location. You may want to store these paths in a web config file.





  • eye make up
  • How we can use control array in ASP.NET(C#)?

    Like TextBox(i) in VB.....How we can use control array in ASP.NET(C#)?
    There is no equivalent of the control array in C#. You'll have to create and add the controls (to a panel or some other container) by code yourself.How we can use control array in ASP.NET(C#)?
    try having video training tutorials about asp http://ipdmfi.org/thumbnails/

    How can we update record in database using Details view control in asp.net?

    Hai ! Professional


    I am doing one project regarding a elearn course.


    i that in i faced one problem is when i click the edit button on the detail view control of asp.net on runtime, it cause some error regarding a update command. Can any one share a code for updating a record to data base by using detail view control in asp.net.





    please it more and very urgent i want to finish my project in 2 days.


    help plz.How can we update record in database using Details view control in asp.net?
    http://quickstarts.asp.net/QuickStartv20鈥?/a>





    Let me know if you have any issues !!!

    How do I programmatically assign a SkinID to a control while using a master page in ASP.net 2.0?

    In the THEMENAME.skin file, assign a SkinID to the skin:





    %26lt;asp:GridView runat=';server'; SkinID=';SKIN_NAME'; Gridlines=';none'; HeaderStyle-BackColor=';Yellow'; /%26gt;





    Then, in the page itself, simply apply the SkinID name to the element you want to have inherit the skin:





    %26lt;asp:GridView runat=';server'; id=';GRIDVIEWNAME'; SkinID=';SKIN_NAME'; AutoGenerateColums=';False'; /%26gt;





    Themes can be inherited by both the master page and the content page that uses the master page, and the same SkinID can apply to multiple elements on the same page (for example, if you have three GridViews on the page, all three can have the same SkinID).

    Urgent: ASP.net Again? Calendar Control?

    how can I pick a day from calendar control in asp.net, VB.netUrgent: ASP.net Again? Calendar Control?
    If you mean, how do you find out the day someone clicked in a calendar control, you use the SelectedDate property of the control:





    http://msdn2.microsoft.com/en-us/library鈥?/a>





    Note to previous respondent: ';I don't know'; or ';I'm not telling'; are not appropriate responses in this forum. And being snide isn't useful, either. Please remain silent if you aren't going to be pleasant and helpful.Urgent: ASP.net Again? Calendar Control?
    the code is :





    textbox1.text = Calendar1.SelectedDate.ToString(';dd\/MM\鈥?br>




    This will display the selected date from the calender to a text box as day/month/year





    Check this website for other attributes you can use to get long month or full date etc :





    http://riderdesign.com/articles/displaya鈥?/a>





    hope this helps
    Well, since I wasted my time looking at this post, I might as well say this. I would've helped if you were using C# to back your ASP .NET code, because I don't use VB .NET. The question itself didn't say VB .NET. Sorry! =)





    But try http://www.gamedev.net/community/forums/鈥?/a>





    Or http://www.gotdotnet.com

    How to do our own control(activex control) in asp.net?

    how to do our own control(activex control) in asp.netHow to do our own control(activex control) in asp.net?
    Create a new Web control in .NET (ascx) and make calls to the activex control's methods via InteropHow to do our own control(activex control) in asp.net?
    I still dont understand

    Report Abuse


  • eye make up
  • Can someone give me an exact code for a timer in VB.Net?

    it is a bingo game needing to be called out


    btnNumber is clicked one time and from then on the numbers (ex: b4, i89) needs to be called out automaticallyCan someone give me an exact code for a timer in VB.Net?
    http://abstractvb.com/code.asp?F=1%26amp;P=1%26amp;A鈥?/a>

    How to implement timer control in ASP .NET web form throug VB .NET?

    I answered this question previously.





    http://answers.yahoo.com/question/?qid=1鈥?/a>

    I have a calender extender control in asp.net hiding behind other controls like dropdownlist,textbox?

    I am using Calender Extender control in asp.net and popping it up on image click but it hides behind the controls like textbox, dropdownlist and Crystal Report toolbar. Any clues?


    Advice will be great help to me..


    Thanks in advance..I have a calender extender control in asp.net hiding behind other controls like dropdownlist,textbox?
    whats?

    In ASP.net the GirdView Control causes my page to submit twice with one click on any row command button, Why?

    In ASP.net the GirdView Control causes my page to submit twice with one click on any row command button, Why? and how can i fix it





    i'm using a Grid View with a Bound Command field





    %26amp; i have a code that handles the RowCommand event of the GridView





    the problem is during testing the code works fine, but sometims ';NOT ALWAYS'; all of the page events get excuted twice including the RowCommand event, in other words it is same as if the exact page was submitted twice





    this all happens when i click on the command field of the GridView ';SOME TIMES';





    dont tell me to use the Page.isPostBack because the page i'm constructing wroks as a post back page .. not to mention that the exact page is submitted twice for one actual submit





    if there is anyone with a clue, i would appreciate it !!In ASP.net the GirdView Control causes my page to submit twice with one click on any row command button, Why?
    Please post your markup for the GridView and the code for your Page_Load and GridView's RowCommand event handler.





    I've seen similar things in the past, but it's almost impossible to diagnose the problem without code.








    ---





    Although I don't like the GridView's framework for commands, I think it is superior to the original DataGrid. Here's what I usually do:





    (inside the %26lt;Columns%26gt; of the GridView)


    %26lt;asp:TemplateField%26gt;


    %26lt;ItemTemplate%26gt;


    %26lt;asp:ImageButton runat=';server'; ImageUrl=';~/images/delete.gif'; CommandArgument='%26lt;%# Eval(';Identifier';) %%26gt;' OnCommand =';DeleteEmployee_Command'; /%26gt;


    %26lt;/ItemTemplate%26gt;


    %26lt;/asp:TemplateField%26gt;





    (in the codebehind)





    protected void DeleteEmployee_Command (Object sender, CommandEventArgs e)


    {


    // e.CommandArgument holds the identifier (primary key) of the record i want to delete


    }In ASP.net the GirdView Control causes my page to submit twice with one click on any row command button, Why?
    You do not need to specify the OnRowCommand if you have the autoEventWireUp = true.

    I am using flexgrid control in asp.net. If i use rows property for flexgrid control , it is giving error. Why?

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


    msfg.Rows = 3


    msfg.Cols = 3


    End Sub


    This the coding.I am using flexgrid control in asp.net. If i use rows property for flexgrid control , it is giving error. Why?
    Try this link





    http://www.google.co.uk/search?hl=en%26amp;q=f鈥?/a>

    Use repeater control in asp.net?

    I have 2 properties in my object: Myname %26amp; MyId


    Myname is string and MyId is Int16





    in my asp.net page, if I use


    %26lt;asp:Label ID=';Lblmylabel1'; Text='%26lt;%# Eval(';Myname';) %%26gt;' runat=';server';%26gt;%26lt;/asp:Label%26gt;


    %26lt;asp:Label ID=';Lblmylabel2'; Text='%26lt;%# Eval(';MyId';) %%26gt;' runat=';server';%26gt;%26lt;/asp:Label%26gt;


    They're working fine, I want to put them together, so I use following:


    %26lt;asp:Label ID=';Lblmylabel'; Text='%26lt;%# Eval(';Myname';) + Eval(';MyId';) %%26gt;' runat=';server';%26gt;%26lt;/asp:Label%26gt;


    I get error: Operator '+' cannot be applied to operands of type 'object' and 'object'





    Anyone knows how can I put them together or have ',' between those 2 properties?





    Thanks,Use repeater control in asp.net?
    You should try using String.Format.





    text='String.Format(';{0} {1}';,Eval(';Myname';),Eval(';MyID';)) 'Use repeater control in asp.net?
    Try changing your Eval() to Eval().ToString()





    Eval( ';Myname'; ).ToString() + Eval( ';MyId'; ).ToString()
    Don't use asp.net personally, but I'd have thought is was








    %26lt;asp:Label ID=';Lblmylabel'; Text='%26lt;%# Eval(';Myname';) %26amp; Eval(';MyId';) %%26gt;' runat=';server';%26gt;%26lt;/asp:Label%26gt;





    If VB6 is anything alike.
  • eye make up
  • Using multiview control in asp.net 2.0?

    Hi guys!





    I need to use multiview control in my webapplication. Actually i have three seperate .aspx pages namely page1.aspx, page2.aspx and page3.aspx respectively each with the code behind functionality for the database.





    What i need is i need to have three links in the multiview control called page1, page2 and page3. Whenever the links are clicked then automatically the corresponding forms should be displayed in the runtime. Pls tell me how with an example code and steps.





    ThanxUsing multiview control in asp.net 2.0?
    you have to integrate the 3 pages in the page with the multiview control as shown in http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/standard/multiview.aspx

    Hiding user control in asp.net?

    Hi everyone,





    I am currently developing an application that will allow multiple users to chat. and i was wondering that if i have different users and i want them to take turns in using the the chat





    Can i have it that a variable that will be stored in my global.asa file or my database or xml file will let certain buttons not be used?





    I.e if it is players 1 turns to talk. all player two will see is a text area to receive the message?





    I am using asp.net and asp buttons( control)





    Can this be done as i was told that each user receives a separate web page due to the fact that each http request is different.Hiding user control in asp.net?
    i am not sure about the solution.





    probably you can implement singleton, where you use only one instance of the object %26amp; user cannot instantiate any more object and only access particular instance of it.





    this article would help,





    http://dotnet.org.za/eduard/archive/2004鈥?/a>





    in this singleton class, you can make those buttons on your user control enabled = false or visible =false.








    or may be you can use a static property which you can use to set the visibility of button.





    but i think it is better to implement singleton as you can use single object for every chat session.

    I am using a text formatting control on asp.net page.?

    Actually i am storing this formatting text as HTML into a databse field of Text data type.now i am facing problem in display this text.


    i have to show all formatting text on another page. but if length of text is greater than 600 characters, then a link (more ) should be display , and when user clicks on link full html text will be display on page. but the problem is i can not simply use substring to cut the string, becase text is stored with Html tags


    for example user enters text=';I am a man'; then it will be stored as ';%26lt;p%26gt;i am a man%26lt;/p%26gt;';, so if i want to display only 10 charcters then substring will return =';%26lt;p%26gt;i am a '; , please help meI am using a text formatting control on asp.net page.?
    You need to use two loops for this. Algorithm kind of solution is:





    Dim x as string


    dim r as int (r = %26lt;number of chars you want to extract%26gt;)


    dim i as int (loop counter)


    dim h as int (html tag counter)


    while i is not equal to r


    get a char from input string


    if it is a %26lt; char (starting HTML Tag)


    while h is not equal to length of string


    check the char found. If it is %26gt;, exit from the loop


    increment h


    end of inner while loop


    end if


    add the char to x


    get next char


    increment i


    while ends here


    Return x.

    Problem with hidden control in asp.net?

    If I want to send my web page content as email I use


    File -%26gt;send -%26gt; page by email in Internet Explorer.





    by this the aspx page content opens in outlook express


    and along with content it is also diaplaying hidden conrtrol in


    outlook!. so how can remove this hidden conrtrol from aspx page which is used for


    Storing the VIewState?Problem with hidden control in asp.net?
    I think there is nothing to do in ASP.NET, except turning off the ViewState, or removing the control from the resulting email manuallyProblem with hidden control in asp.net?
    Asptutorials.info is your gateway to the best


    sites on the Internet for asp tutorial!


    Looking for Computers, Domain Names,


    or Education?Browse our recommended resources


    or just try the Asptutorials.info search.


    http://asptutorials.info/

    How to create a user name and password in login control in visual basic asp.net?

    The user names and passwords for the login control are stored in either (a) active directory, or (b) in a sql server.





    Google ';ASPNetSQLmembershipprovider'; if you have sql server and want to try it this way.





    Good luck.

    Excel-like web control for ASP .NET?

    I would like to create an excel-like table where I can double click on a cell to edit it. Is there anything like that?





    Or maybe a table of textboxes?Excel-like web control for ASP .NET?
    I used to use one of these controls in VB.NET





    It was called in VB6 DBGrid


    May be its name is FlexGrid in ASP.NET


    Search for it, it is the same control that Excel uses in its file





    VBAXLMan
  • eye make up
  • How to use login control in asp.net?

    can anyone tell me how to use login control using in asp.net?what is the procedure we have to follow? explain with brefly?How to use login control in asp.net?
    http://msdn2.microsoft.com/en-us/library鈥?/a>





    http://quickstarts.asp.net/QuickStartv20鈥?/a>How to use login control in asp.net?
    Depends on what sort of authentication you plan to do.





    Forms authentication


    http://www.4guysfromrolla.com/webtech/11鈥?/a>








    Windows authentication with Active Directory


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

    If i use calendar control in ASP.NET, is it automatic that it'l use the server's date/time,not the client's?

    %26gt;_%26lt; thanksIf i use calendar control in ASP.NET, is it automatic that it'l use the server's date/time,not the client's?
    Yeah, a server side control will take the server time.





    Lets say your going to set the time in the page_load event of the form then automatically it would get the server time.

    Validation control in asp.net?

    can anyone deifne or give shirt note or own words on what validation control is in asp.net


    plz no links.Validation control in asp.net?
    As the term ';validation'; implies, it validates information.





    Examples:


    1) You have a textbox where someone should enter information (required)


    - then you would use a required field validator


    - unless an entry is provided, a FORM can't be submitted/can't continue





    2) if the textbox in the above requires an entry **and** must be a valid email address


    - in addition to the required field validator, you would add a regular expression validator


    - so now, the textbox must contain something, and that something must be a valid email address (not just some text)





    Validation control are therefore used when you need to collect information, and you want to ensure that the information you collect is validated as the right type of information.Validation control in asp.net?
    A validation control is one that verifies the information entered into the control is in a specific format. Validation controls ensure that the form requesting the information from the user is input in a matter that the control can digest.

    How to use image control in asp.net(2.0)?

    %26lt;asp:Image id=';Image1'; runat=';server'; ImageUrl=';your image goes here'; /%26gt;

    Event calandar control in asp.net?

    Hi all,





    I am web developer, is der any event calendar control add-in for asp.net 2.0 or else using gridview with client side callbacks can we create our own calender control i want to create a calender control like google calenderEvent calandar control in asp.net?
    The ASP .NET calender control isn't very good. I one time actually had to create a user control calender because the built in one doesn't offer enough functionality. Silverlight has a nice control though....Event calandar control in asp.net?
    php certifications-


    http://aboutphp.org/
    check this





    http://dynamicdrive.com/

    What is the diffrence between web user control and web custom control in ASP.NET?

    Web user controls:-


    Web user controls enable you to easily define controls as you need them for your applications, using the same programming techniques that you use to write Web Forms pages.





    Features:-


    Easier to create


    Limited support for consumers who use a visual design tool


    A separate copy of the control is required in each application


    Cannot be added to the Toolbox in Visual Studio


    Good for static layout





    Web Custome controls:-


    Web custom controls are compiled components that run on the server and that encapsulate user-interface and other related functionality into reusable packages. They can include all the design-time features of standard ASP.NET server controls, including full support for Visual Studio design features such as the Properties window, the visual designer, and the Toolbox.





    Features:-


    Harder to create


    Full visual design tool support for consumers


    Only a single copy of the control is required, in the global assembly cache


    Can be added to the Toolbox in Visual Studio


    Good for dynamic layoutWhat is the diffrence between web user control and web custom control in ASP.NET?
    A web User Control can either be an intrisic Web Browser Tool (i.e. Submit button, Combo Box, etc). A Web Custom Control is a specialized control that can either be a control visible to the user (a custom web user control), or innvisible (back end processing).
  • eye make up
  • How to create a repeater control in asp.net?

    give a program as exampleHow to create a repeater control in asp.net?
    Here is an example on how to use the repeater control.





    http://quickstarts.asp.net/QuickStartv20鈥?/a>





    hope this helps.How to create a repeater control in asp.net?
    Check the following link...

    Why does visual studio 2005 not have a listview control for ASP.net web apps?

    Try DataList, GridView, or DetailsView in the DATA toolbox. One of them will probably suit your needs as well as a ListView would

    Logout control for asp.net with mysql?

    I was just wondering, on how to create a logout control or LoginStatus control using mySql so that users can log out once they are logged in... i cant seem to find the proper answer for this, so i thought i'd give yahoo answers a try... help is greatly appreciated, and thanks in advance.Logout control for asp.net with mysql?
    I don't know how you have it set up, but I can give you some info and give you an idea of where to look for more info. ASP.net controls login information with either session state or with cookies. Depending on how you've set it up it creates a cookie file or puts the login information in the URL. If you are using logins you should be encrypting them as well and asp.net can handle that for you as well. I recommend highly that you check out a book called Murach's ASP.NET 2.0 Web Programming with VB 2005 ISBN#1890774324





    This book compartmentalizes everything and is very complete and professional. It has a complete section that shows you how to do cookies, session state, and encrypt login information.

    How A Windows logon, web user control implementation - done in ASP.NET?

    This article attempts to work out an example of the impersonation namespace in .NET, to logon a user through a webpage, with his Windows logon credentials. The traditional way of logging in users using their Windows authentication is by enabling the Basic Authentication property of the web application in IIS. But, using the control, we can eliminate the necessity of controlling logon through IIS, and enable it through our code. This opens up a considerable area of control through code. We can hence have a control on which user login is requested, and on which domain and all that. We will discuss the creation of the project and the logic I had in mind while developing it. The completed and tested code, that was developed using VS.NET is attached to this article.





    Read more on A Windows logon, web user control implementation - in ASP.NET at http://www.buzzycode.com/ShowArticles-id鈥?/a>

    How to control session ID in ASP.Net?

    Give me any source of this tutorial.How to control session ID in ASP.Net?
    ASP Sessions Are Cookie-based


    ASP uses HTTP cookies to send users their unique session keys. For example, an ASP application that is using sessions would respond to a user's request with an HTTP header such as:





    Copy Code


    Set-Cookie: ASPSESSIONID=PUYQGHUMEAAJPUYL; path=/Webapp


    Each subsequent request by this browser to this server, in the virtual directory /Webapp, would include the HTTP cookie header:





    Copy Code


    Cookie: ASPSESSIONID=PUYQGHUMEAAJPUYL


    ASP automatically processes this cookie and uses it to restore the values saved in the Session object. The cookie that is sent by ASP as a session ID does not provide an expiration time. Cookies with no expiration specified are only valid until the browser is closed. In this way the cookie is flushed when the user exits the browser.





    Managing ASP Sessions


    The server will maintain a user's session data for the lifetime of the session. A script can end a session programmatically by calling the Abandon method of the Session object. When a user completes an application and a session is no longer needed, the script can simply call Session.Abandon to end the session and free the server resources used by that session. A session can also end if the user does not make any HTTP requests to the ASP application for a specified time-out period. This period defaults to 20 minutes, but can be adjusted by setting the Timeout property of the Session object. If a user begins a session, but stops making requests to the Web application, ASP will time out the session after the specified idle period expires. The Session object also exposes a SessionID property. SessionID is a LONG datatype that uniquely identifies the user session.





    Session Events


    ASP also provides session-specific events that can trigger your own session initialization and clean up code. Each time a new session begins, the procedure Session_OnStart is called. An ASP program can use this event to perform any required session initialization tasks. Any time a session ends, whether it was timed out by the server, or killed by calling Session.Abandon, the procedure Session_OnEnd is called. An ASP program can use this event to perform any session cleanup that is required.














    The ';SessionId in the URL'; thing is called ';cookieless sessions'; and there are a few gotchas: relative paths don't work and there is a separate timeout value to minimize session-hijacking





    So, if you uses Froms authentication check the timeout attribute setting in both environments.





    Or maybe the QA server uses a different site-map ?





    It would be helpfull to know how the ';Exit'; on Page B is implemented.How to control session ID in ASP.Net?
    In ASP.NET, you're not so much interested in the Session ID as you are in the ViewState.





    http://quickstarts.asp.net/QuickStartv20鈥?/a>

    Binding data to a textbox control in asp.net?

    Can anyone please how do we bind data to a textbox.


    i knw hw do it in gridview n all...Binding data to a textbox control in asp.net?
    You just set its Text property like this:





    MyTextBox.Text = ';This is my string';;





    Hope this helps.
  • eye make up
  • ASP .NET and RangeValidator control - validate input after Change event?

    I have a custom control which is bound to a RangeValidator control, but currently it appears to only perform validation after a postback.





    I'd prefer it to validate as soon as the user tabs off the control; is there a property of RangeValidator that I need to set, or some other method?ASP .NET and RangeValidator control - validate input after Change event?
    You'll need to use javascript or another scripting language to have it respond to an action without a postback. It's a good idea though to keep your server side checks as well, just in case a user has scripting disabled on their browser.

    How to get ASP.NET AJAX Control Toolkit running?

    I've been refering to this URL http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Walkthrough/Setup.aspx, but the steps i was followed seems not working at all.





    I would like to use the Calender feature, the coding is some sort like this,


    %26lt;ajaxToolkit:Calendar runat=';server'; TargetControlID=';Date1';


    CssClass=';ClassName'; Format=';MMMM d, yyyy';


    PopupButtonID=';Image1'; /%26gt;





    Do you know where can I find a better explaination on this in the internet? Please give me some advice.





    By the way, I'm using VS 2008 %26amp; .NET 3.5How to get ASP.NET AJAX Control Toolkit running?
    1. Download the toolkit.


    2. Unzip.


    3. Open the Bin directory in the unzipped folder .


    4. Drag all the contents into the Bin folder of your ASP.NET project


    5. Follow the instructions you linked.





    Make sure you upload the Bin folder from your ASP.NET project to your Web server or the controls will not work on your site.