|
I am using ASP.NET 3.5
I have a dropdownlist called lstCountry with an item in it like this
<asp:ListItem Value="United States">Canada</asp:ListItem>
This will display Canada but in code the value will be "United States". How can i retrieve...
Started by Etienne on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
<asp:ListItem....
Try
lstCountry.SelectedItem.Text
You can try
lstCountry.SelectedItem.Text
add list using
<asp:ListItem Value="United States" Text="Canada"></asp:ListItem>
and then try
DropDownList1.SelectedItem.Text
I found your mistake .
|
|
Cant login to my forum, Cant contact forumotion support, cant send pms, wtf is going on ? by vicbeat on January 15th 2012, 4:39 pm
First off, I hate to complain But I cant recover my password because by default the admin panel disallows passwords to be...
Answer Snippets (Read the full thread at forumotion):
Re: Cant login to my forum, Cant contact forumotion support, cant send pms, wtf is going Re: Cant login to my forum, Cant contact forumotion support, cant send pms, wtf is going on ? by Nera as you have them now....
|
|
Whenever I start my VM (Server 2003) it fails to pick up an IP address. It doesnt matter whether bridged or host and affects more than one image. If I set a static iP in the image on the same subnet as the host I cant ping anything on the network.
Any...
Started by Mark Sutton on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Just restart VMware on the host (Fusion is just a GUI to it):
sudo "/Library/Application Support/VMware Fusion/boot.sh" --restart
Sometimes it gets in some....
Have the VMWare network adapters (on the host) been disabled? If so, then re-enable them .
|
Ask your Facebook Friends
|
No matter what I try, I cant get the following code to work correctly.
ifstream inFile; inFile.open("sampleplanet"); cout << (inFile.good()); //prints a 1 int levelLW = 0; int numLevels = 0; inFile >> levelLW >> numLevels; cout <&...
Started by segfault on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I like to use Notepad++ with "Show all characters....
I would definitely take a hard look at hidden characters in your file (or lack thereof) .
I reproduced and tested your code and file and my output was 11 and both levelLW and numLevels were set as expected .
|
|
Right now im trying to make it so ive got 1 character and 3 enemies if my character dies its suppossed to give game over or something but i cant make it to work(if enemies dies it works tho i dont know why)
here is what im doing bool Exit = false; bool...
Started by Makenshi on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You probably want to rework it to be:
(Exit == false && CharDead == false);
This way, as soon as Exit is not false or CharDead is... .
Your ending condition is:
(Exit == false || CharDead == false);
This will only exit when CharDead AND Exit are both true .
|
|
I have tried till my head hurts and have been reading so much my eyes now bleed.
i have a controller, and i want to get one set of data for the order and one list for the order items.
i have created a order class and a order items class, and trying to...
Started by minus4 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
QuoteViewModel { public QuoteInfo Info { get; set; } public QuoteParts Parts { get; set; } public int QuoteId { get; set; } }
Meke your View strongly typed to this class, and create an instance of it in your class QuotePart { public....
|
|
For some reason, when using this code the file it outputs is just called ".jpg".
<? $title = $GET['title']; $url = $GET['url']; $ourFileName = $title.jpg; $ourFileHandle = fopen($ourFileName, 'w') or die("can't open file"); fclose($ourFileHandle); ...
Started by Patrick on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Are sure there is a value in $_GET['title'];
Surely should be
$title = $_GET['title']; $url = $_GET['url that overwrites any file it has permissions to with a file of an attackers choosing!
Are you sure $GET['title'] is ....
|
|
Prior to upgrading to windows 7, I was able to use Tomcat 6.0, but when I upgraded to the new Windows, and downloaded Eclipse EE, and downloaded the apache content, I am unable to get Apache to run. When I attempt to start my apacher server through either...
Started by CitadelCSCadet on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Could you please explain again?
It could.
And everything worked from then !!! -cm
sorry cm, i didnt get.
|
|
I am trying to get rid of the default bevel and border that most browsers/OS have set as the default on Submit buttons. When I use CSS to add a background image it just displays the image in the background of the button but the bevel is still there. Is...
Started by Graham on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
I would not recommend changing the appearance of the button because it will not be consistent... .
I always think
border: 1px solid black;
looks nice.
You will need to remove the border (bevel) like so:
input { border: 0; }
You can set border attributes in CSS .
|
|
I have an aspx web page (opener) which opens a popup window
In the popup window I need to retrieve the value of a hidden field which exists in the opener page.
So this is all straight forward using Javascript.
However, here’s the problem, I need the value...
Started by Christo Fur on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can process the data server side in action.php (or in ASP.Net/VB file). .
Have a form like can send using GET.
Somevar = window.opener.document.getElementById('id').value;
to get the field's value.
|