User Profile

Collapse

Profile Sidebar

Collapse
JLC
JLC
Last Activity: Mar 12 '08, 05:41 PM
Joined: Sep 13 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JLC
    replied to C# - Web App - how to call another page...
    in .NET
    I want to have the site open a new window with that page in it...

    is that still the same way to do it? with a redirect?

    Thanks!
    See more | Go to post

    Leave a comment:


  • JLC
    started a topic C# - Web App - how to call another page...
    in .NET

    C# - Web App - how to call another page...

    Hi,

    This seems like this would be easy, but I am not getting what I thought I should.

    I have a GridView_RowCom mand where inside I am doing a comparison of a couple of things...if one of them is true, then I want to open a separate page that I have already written code for.

    So to avoid the cut and paste...how do I call this page?

    I thought I could do something like:

    UpdateClusterSt atus...
    See more | Go to post
    Last edited by JLC; Mar 11 '08, 05:20 PM. Reason: added one line at end

  • JLC
    started a topic won't find buttonfield?
    in .NET

    won't find buttonfield?

    For some reason I am getting this error.

    Cannot convert type 'System.Web.UI. Control' to 'System.Web.UI. WebControls.But tonField'


    Here is my code for my .aspx file

    Code:
      <asp:ButtonField ItemStyle-Wrap="false" ButtonType="Link" HeaderText="Status" DataTextField="clusterStatusName" CommandName="update" />
    and here is the code...
    See more | Go to post

  • JLC
    started a topic C#-WINAPP: How to get to attributes of xml
    in .NET

    C#-WINAPP: How to get to attributes of xml

    Hi,
    I am somewhat new to C# and definitely new to XML, but I have been asked to write a program that stores passwords in an xml file.

    The file will be set up like this:

    Code:
     <root>
    <securitygroup name="group one">
      <user name="grouponeun1" password="grouponepw1" /> 
      <user name="grouponeun2" password="grouponepw2"
    ...
    See more | Go to post

  • JLC
    started a topic Accessing the registry...
    in .NET

    Accessing the registry...

    Hi,
    I am trying to write a small windows application that you enter a domain\username and a key and hit enter. When you do this, the program will retrieve the password (which was encrypted, but through the program it spits it out to the user unencrypted). This encrypted password is stored in the registry.

    When I created it, I was an admin on the server where the registry was/is stored. But what I found out later, is that when...
    See more | Go to post

  • JLC
    started a topic Getting ONE item out of a datatable?
    in .NET

    Getting ONE item out of a datatable?

    I want to get one item out of a datatable, but when I click on the row I am getting an error that says: IndexOutOfRange Exception. There is now row at position x (whatever row I clicked)

    Here's my code, I am very new to this...

    What I want to do is get the clusterID from the datatable that was selected by the user and I want to pass that clusterID into a function.

    Am I even on the right path??
    Any...
    See more | Go to post

  • JLC
    started a topic GridView and Datasource
    in .NET

    GridView and Datasource

    Hi,

    I have a GridView that I want to eventually make into a nested GridView. But all the examples I see use DatasourceID="w hatever the datasource is"

    Is this how you have to do it?

    I have a GridView that I populate in a function called BindGrid() which seems to work okay now, but will I run into problems when I create a nested gridview?

    I just want to have an address book with...
    See more | Go to post

  • JLC
    replied to Datasets and Textboxes
    in .NET
    So if the list of values in the drop down list is created from the dataset, can't I just pull out the value I want from the dataset to populate the text box instead of creating a switch statement?

    does asp:dropdownlis t have another place I could store a string (which would come from my dataset) so I could use it in my text box?

    Thanks,
    See more | Go to post

    Leave a comment:


  • JLC
    started a topic Datasets and Textboxes
    in .NET

    Datasets and Textboxes

    Hi,
    I have a dropdown list that I have populated with a dataset.

    Code:
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataService.DataService myData = new DataService.DataService();
                DataSet domainData = myData.GetDomainData();
    
                StatusDropDownList.DataSource = domainData.Tables[0];
    ...
    See more | Go to post

  • Ok I got it...thanks so much for the help!
    JLC...
    See more | Go to post

    Leave a comment:


  • Ok so I changed it to this:

    Code:
        function EmailChecked(checkboxid)
        {     
            if(checkboxid.defaultChecked == true)
            {
                document.getElementById('EmailTextBox').disabled=true;
            }
            else
            {
                document.getElementById('EmailTextBox').disabled=false;
            }
    
        }
    and it works...
    See more | Go to post

    Leave a comment:


  • Well I think I sort of got it, but it still isn't working correctly. I have it so when the page loads, the check box is checked. And when you uncheck the check box, the text becomes disabled. But when you recheck the check box, nothing happens.

    Here's my code...I'm not sure why I am not getting this to work.
    Thanks...

    Code:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="NotifyDialog.aspx.cs"
    ...
    See more | Go to post

    Leave a comment:


  • Ok I am scrapping that last post...

    This is now my code...I just want to enable/disable the text box based on if the check box is checked.
    here's the code:

    .cs file
    Code:
        protected void Page_Load(object sender, EventArgs e)
        {
           EmailCheckBox.Attributes.Add("OnClick", "javascript: EmailChecked(" + EmailCheckBox.Checked + ")");
        }
    ...
    See more | Go to post

    Leave a comment:


  • Hi,

    Thanks for the links.
    This is the code I have so far, but so far it's not working.
    What I want to do is if the check box is checked I want to show some boilerplate text that will be set by the choice in the dropdownlist box. But I was trying to just get the checkbox to show or not show text at all before moving on to what I described above.

    Here's the code in my .cs file.
    Code:
        protected
    ...
    See more | Go to post

    Leave a comment:


  • want to show/hide text in asp:textbox depending on if asp:checkbox is checked

    Hi,

    I am creating a page in asp.net that has a checkbox and a textbox. When the checkbox is checked I want the textbox to become active and show text. If the checkbox is unchecked, I would like the text box to become disabled and show no text.

    Is this possible to do via javascript? I would like to handle it all client side.

    Thanks,
    JLC
    See more | Go to post

  • want to show/hide text in asp:textbox depending on if asp:checkbox is checked

    Hi,

    I am creating a page in asp.net that has a checkbox and a textbox. When the checkbox is checked I want the textbox to become active and show text. If the checkbox is unchecked, I would like the text box to become disabled and show no text.

    Is this possible to do via javascript? I would like to handle it all client side.

    Thanks,
    JLC
    See more | Go to post

  • Frinny,

    It works! I do not know why it didn't work when you sent that part the first time.

    The .value doesn't show up in intellisense so I was trying others (obviously with no luck).

    what is .value? is that eh Value in the asp:ListItem?

    Thank you so much for all the help...I am relieved!

    JLC...
    See more | Go to post

    Leave a comment:


  • Ok so here is my html code from when I am running my site. I think it's still called 'EmailTextBox', but I don's see the <input type='text'> part.
    am I missing something?

    Code:
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    ...
    See more | Go to post

    Leave a comment:


  • Yeah that makes sense...

    EmailTextBox is the ID of my asp:TextBox

    I added the document.getEle mentByID... but still nothing.

    just a blank text box.

    does it need to be a regular html text box? or can I use an asp:textbox?

    Thanks,...
    See more | Go to post

    Leave a comment:


  • ok thanks for all the help
    I appreciate it......
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...