|
I have a date field and a dropdown list on web form. The dropdown list contains 3 values.
I want that when I populate the Date field the dropdown list will be automatically set to one of the values in the drop down namely dated.
Has anyone any ideas how to do this?
thanks,
macca
|
|
|
|
|
you could use the tag member to store any non-displayed object on your combobox (useful when used to search on another point than the caption...)
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I have a label called department and a text box called text department. In my code I am retriving the department Id which is A.
What I want is that if the department Id is A then I want the above label and textbox to appear on the web form but if the dpartment Id is not A I want the above label and textbox not to appear on the web form.
In the code I have something like this:
deptId = P
If DeptID = A then
label = active
textbox = active
else
label = inactive
textbox = inactive
can anyone help with this?
macca
|
|
|
|
|
Try using visible property
Something like
If DeptID = A then
label1.visible = false
textbox1.visible = false
else
label1.visible = true.......
- ashish
|
|
|
|
|
Thanks Ashish,
That worked a treat.
macca
I have another question for you:
I have a date field and a dropdown list on web form. The dropdown list contains 3 values.
I want that when I populate the Date field the dropdown list will be automatically set to one of the values in the drop down namely dated.
Have you any ideas how to do this?
thanks,
macca
|
|
|
|
|
You may like to set AutoPostback property of control to true. Then you should be able to handle the control values using codebehind.
- ashish
|
|
|
|
|
I'm not sure how to do this, would you have any examples?
macca
|
|
|
|
|
sir i created one vb application in that i am genarating excel reports. first time am clicking report command button then it running executing correctly if i am click once again the report command button it is not running.
iam using this commnad for add sheets Sheets.Add before:=Worksheets(Worksheets.Count)
the error for second time click is
worksheets.count=
|
|
|
|
|
Hi
Anyone knows how to do multiple items drag n drop between listboxes.
Thanks in advance.
- ashish
|
|
|
|
|
Imports System.Web.Mail, this name sapce is giving a error message as
"namespace 'mail', imports 'system.web.mail' not found"
this namespase is working fine in other from but not working in another why is this? can some help me with this?
kiran
|
|
|
|
|
You didn't add a reference to System.Web.dll in your new project.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanks Dave!
i got the connection.
|
|
|
|
|
Hi
I am using the cyrstal report viewer control in my .Net application. My Client wants that when the report display the data, if he clicks lets say on AccountID field then the Accounts Form should get opened. Please will anybody let me know how i will come to know which field has been clicked and what is the value of that field.
Thanks in Advance
Arshad
|
|
|
|
|
In a winform , Me.Close() will active a close event.
However , this event could not be edited in vs.net 2005 beta 2.
Why?
|
|
|
|
|
It's an event, you subscribe to it, you don't override it.
It's explained in the VS 2005 beta 2 docs, do a search there.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I search in google with these keywords:
VS 2005 beta 2 docs close event winform
The result is not good.
Should I write the close event myself?
|
|
|
|
|
Search http://msdn.microsoft.com[^] for "Form.Close" or "Form.Closing event".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Why didn't you install the documentation when you installed beta 2 ? If you don't have the docs on your hard drive, do what Dave said.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I need help urgently. I have to develop a program that, after entering decimal values into it, converts it into hexadecimal and writes it into a .xls file.
I have managed to complete the conversion portioon but when i write the values to the file, it writes the values vertically downwards, starting with the last records entered.
I need help to write the values horizontally and only in 3 columns....SOMEONE PLEASE HELP!!!!!
|
|
|
|
|
|
hi, how to connect a console app. to another app. running on a VPN server over http?
|
|
|
|
|
hello, I need help on the readline method.
I am working on a project that requires me to read from a textfile and import it to an excel worksheet.
I have a problem reading from the textfile. Can someone help me on this matter.
my code looks similar to this:
dim str as string = ""
dim fr as new streamreader(filename)
do
str = fr.readline
str = str.substring(22,6)
loop until fr.peek<0
I've got a problem when using the substring method.
I need to get the information on that spesific location, but I got an error msg saying that my index and length is out of bounds.
But When I check on my original file, the line has enough length and index.
This is an example:
original file:
"I have a problem with readline method"
But my str:
"I have a proble"
This only happens to some of the lines in the file. I wonder why that is.
Someone please help :p
Thank You
|
|
|
|
|
Why are you using the substring method? I assume you are looking to take only a part of the actuall string. If that is the case your line str.substring(22,6) tells me to start at position 22 and read the next 6 characters. Does that sound right??
I use the following way to read from a text file
Dim str as string = string.Empty
Dim sr as new StreamReader(filename)
Do while sr.Peak > -1
str = sr.readline
'Do what ever needs to be done with the string.
Loop
|
|
|
|
|
hellow to all
i am looking for a way to put a string into array so that i can slide to anywhere i wana to in the array and pick up letters ..
thxx for anyhelp .
|
|
|
|
|
What i have understood from your question that you want to store the string into array of characters.
For this, function (ToCharArray) is provides already in String Class and u just need to do like this.
Dim str as string = "Khurram"
Dim char() as char = str.ToCharArray()
and u will get array of each character from the string.
|
|
|
|