|
I think you are following to my reply for your last post yesterday. In that I haven't meant to use a list box. I was suggesting to use List<string> class. It has a Contains() method and you can take the string easily from it.
|
|
|
|
|
Hi!!
try the below code
for (int i = 0; i <= ListBox1.Items.Count - 1; i++)
{
if (ListBox1.Items[i].ToString() == TextBox1.Text)
{
//your statement
}
}
|
|
|
|
|
cheers that sorted my problem thanks!!
I decided not to use the string method nav you discussed as I knew the listbox a bit more
thanks
|
|
|
|
|
Why are you not just databinding to the table?
|
|
|
|
|
Hi,
I have a webservice in ASP.NET 2.0 and I am using DebugView to trace a
problem
with my webservice.
My webservice basically passes back a dataset after passing it a SQL
statement string
and a connection string.
I found a problem with the service that my connection string was wrong so I
passed it a new
string with the change but the service keeps giving me the same error and
when I look at
DebugView it shows the same connectstring that I had passed the first time
with the error.
It does not matter what I pass my service DebugView is showing the orignal
parameters.
Weird!!!!!
Any ideas why this might be happening? Is it cahing the parameters somehow?
Malcolm
|
|
|
|
|
Erhm, maybe you should post some code or something we can examine to help you... Just the message 'something goes wrong' just isn't enough...
|
|
|
|
|
Probably the connection string is being read from an old source, for example if you are running it with a reference to the release build and have only build the debug again since you changed the string.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Strange ! Have you made any changes to the webservice and forgot to update the web reference in the application ?
|
|
|
|
|
I created the webservice proxy using the WSE 3.0 wsewsdl3.exe tool
But when I updated my service as the interface has not changed I
did not regenerate the proxy.
Could that be why?
Also I am trying to get a SOAP message viewer to see what the service is getting.
|
|
|
|
|
NO the regenerated proxy gives the same error.
When i debug the code I can see the that the service call
parameters are been passed the new changed connectstring so......
Any other ideas?
|
|
|
|
|
Hi all!
I have a Calender control on my Page, with a map underneath (The map uses a rather large amount of band-width)
Now, due to the map's code, it has to be created on Page_Load (I didn't code it... But HAVE to use it - Work -_-)
What I'm wondering, is if there's a way to make the Calender control stop causing my Page to refresh every time the date is changed, or if not, if there's a different Calendar control besides
<asp:calendar id="Calendar1">
I've seen some site's with those litle Calendar Icons that you click, and they display a Calender... (They don't cause the page to refresh)... Ideas Anyone?
Thanks!
- Reelix
|
|
|
|
|
those are javascript calendars....
available free online...just search on google...dude
Ashish Sehajpal
|
|
|
|
|
You might find a calendar in the ajax controls.
Maybe the reason the other calendar is refreshing is because they are posting back to the server and then come back in a different state.
|
|
|
|
|
Better , Try with Ajax
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Hello friends
In my app i have ti transfer some text from one textbox to another textbox.
for that i want to retriev the element by its ClientID but how to get it my JS file.
Please help me............
Deepak Nigam
|
|
|
|
|
You can get it from Browser's View source
Thank& Regards
Vijay s
|
|
|
|
|
Use the ClientID property of the control on the server side, and inject it as javascript so that you have a variable that contains that value, on the client side.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Read Client ID
var txtTextBox="<%=txtMyTextBox.ClientID %>";
Get Value From This
var myValue=document.GetElementByID("txtTextBox");
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
exact approach dear
but use
var myValue=document.getElementByID(txtTextBox);
instead of
var myValue=document.GetElementByID("txtTextBox");
or we can save a variable by using
var myValue=document.getElementByID("<%=txtMyTextBox.ClientID %>");
Ashish Sehajpal
modified on Wednesday, April 9, 2008 4:12 AM
|
|
|
|
|
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Ashish Sehajpal wrote: but use
var myValue=document.getElementByID("txtTextBox");
instead of
var myValue=document.GetElementByID("txtTextBox");
LOL - I think you meant to remove the quotes there somewhere.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
even u have not noticed the SYNTAX of function dear.....
Ashish Sehajpal
|
|
|
|
|
Oh, I see. Yes, the G needed to be a g, AND the name needed not to be in quotes, so as to use the variable that was being declared.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Friends,
I have one doubt,i m doing quiz questions in my webform so that i need to display time on the above web form it should decrease the time and when it reaches end it should display a message.Can any one help me how to do this.
Thanks & Regards
Senthil kumar.T.S
|
|
|
|
|
senthilsstil wrote: I have one doubt
But where is you doubt? Did you get any problem to implement it ?
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|