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!
User Profile
Collapse
-
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... -
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
and here is the code...Code:<asp:ButtonField ItemStyle-Wrap="false" ButtonType="Link" HeaderText="Status" DataTextField="clusterStatusName" CommandName="update" />
-
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"
-
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... -
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... -
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... -
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,Leave a comment:
-
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]; -
-
Ok so I changed it to this:
and it works...Code:function EmailChecked(checkboxid) { if(checkboxid.defaultChecked == true) { document.getElementById('EmailTextBox').disabled=true; } else { document.getElementById('EmailTextBox').disabled=false; } }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"
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 + ")"); }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
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 -
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 -
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...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" >
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,...Leave a comment:
-
No activity results to display
Show More
Leave a comment: