|
I am trying to get the seleted radioButton from a group of radio buttons.
The program is supposed to check on the database for controls that match the selected radiobuttons. The radiobuttons are named High,Medium,Low.
For example
If a person selects High, the program must go through the database and choose all the controls that are rated High and then must load them into a listBox.
My problem is that the code i am using does not see the selected items and does not load the listBox.
I am usig SQL server database and stored procedures to do this.
Any suggestions on how i can go about doing this will be appreciated.
|
|
|
|
|
Not sure if you are doing this in a web page or in a rich client. In a rich client application it is very easy:
Create your group and put all radio buttons in there.
Bind all buttons to a single event handler.
In the event handler write something like this:
foreach ( RadioButton item in myGroup.Controls)
{
if ( item.Checked )
{
}
else
continue;
}
Now for the not-so-rich-and-pissy web interface you should confirm that all of your radio buttons have AutoPostBack=true and see if that helps your situation.
|
|
|
|
|
Hi everyOne.
I am useing Crystal Report in my project and its working well in my computer.But when i inistall it on user's Computer befor starting the program a Message(Need the crystall report be installed) is showen.
When i install crystalReport i work.
I do'nt want to install CrystalReport.What should i do?
Thank u .
CanI
|
|
|
|
|
Roya Rayane wrote: I do'nt want to install CrystalReport.What should i do?
Don't use Crystal Reports.
only two letters away from being an asset
|
|
|
|
|
hi dude,i cant exactly tell u what to do,but i think u should install that version of crystal which is required during setting up ur application.i think u can do it by INSTALLSHIELD ,hope that'll help.
good luck
|
|
|
|
|
Hi
you can add custom prerequisite in your setup application.
|
|
|
|
|
hi all
i wount To Select Row in DataGridView By Using Code C#
the Selected is Physically .
thanks
Thaer
|
|
|
|
|
Thaer Hamael wrote: Selected is Physically .
I suppose this would work better than trying to do it mentally, unless your Stephen Hawking.
Have you even tried searching for an answer or do you expect everyone else to do your work for you? This is something that just about any article on DataGridView should cover.
only two letters away from being an asset
|
|
|
|
|
Thanks Mr
I did not ask to suspend
But asked for help
If you can not help me I would not Alngliq of no benefit
I did not ask for assistance only after the test, Mr.
Thanks
Thaer
|
|
|
|
|
Take it easy there my friend..
Mark is simply saying you could have googled this, but just to get you started
the functionality you require is hidden away under :
DataGridView.Rows[rowindex].Selected = true;
On another note, people won't help you if your're rude.
Regards
Mick Curley
|
|
|
|
|
I'm not rude
I asked and one of them helped me to suspend
The answer obtained by you I know it , but the line chosen not be true only if chose by the mouse
Thanks
Thaer
|
|
|
|
|
Your question did not translate well to English so it may be difficult for anyone to answer.
|
|
|
|
|
I have an application written in C# using VS 2005 that calls a C DLL.
Everything has been working fine until recently. A few days ago I sent a
release build to my client and they reported they are getting a
dllnotfoundexception. We worked through some similar issues some time ago and
up until recently the versions I sent out worked just fine.
Dependency walker tells me that WINMM.DLL calls MSVCR80.DLL, and there may
be a version problem. However, even if I put a version of MSVCR80.DLL in the
same directory, I still get the error. Apparently it is coming from the fact
that IESHIMS.DLL and WER.DLL are not on the system. I don't need ANYTHING in
those DLLs- all my DLL does is some mmsystem based wave playback. But that
does not alter the fact that Windows won't run the release version. The debug
version, by the way, runs fine, but only on a system with VS 2005 installed.
I have seen some references to the fact that the latest version of IE got
rid of IESHIMS.DLL and replaced it with something else. However, the
solutions I've seen posted don't seem to help. I'm running on XP (as is my
client) but this will be a commercial product, so we have to support Vista
and W7.
I have seen remarks dating from around 2005 that say certain manifests need
to be built certain ways to avoid this, but I have not figured out what is
involved. I would appreciate any thoughts on finding a solution to this!
|
|
|
|
|
I would like to take any(unknown types) SortedList and get access to the KeyValuePair data as type object so I can then access the data.
Given
SortedList<string,int> tmp = new SortedList<string,int>(); or
SortedList<int,myObj> tmp = new SortedList<int,MyObj>(); or
......
I need to be able to do something like
foreach(KeyValuePair<object,object> kv in tmp).......
to get access to the objects then use reflection to determine type and such.
Steve
|
|
|
|
|
And what is your question?
What have you tried?
Where are you stuck?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
How can I typecast an object,which is of type SortedList to a SortedList.
public static string UnknownSortedListToStr(object tmp)
{
string res = "";
object n;
object v;
SortedList<object, object> si = (SortedList<object, object>)tmp;
if ((tmp.GetType().FullName.Contains("System.Collections.Generic.SortedList")) ||
(tmp.GetType().BaseType.FullName.Contains("System.Collections.Generic.SortedList")))
{
for (int i = 0; i < si.Count; i++)
{
string s = "";
n = si.Keys[i];
v = si.Values[i];
if (n != null)
s = n.ToString() + "=";
if (v != null)
s += v.ToString();
res += s + "\r\n";
}
}
else throw new Exception("Not a SortedList");
return res;
}
Steve
|
|
|
|
|
Take a look at this[^], particularly the last part of the answer from John Grove.
This[^], particularly Example 40, right near the end.
And finally this blog from Brad Abrahams[^].
One thing they all have in common is that they start with the Type of the collection, and get the parameter types from there. Once you have the types of the parameters, you can go practically anywhere.
You might find other useful/interesting stuff by googling something like reflection generic collections which is how I found the above.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Sound computer advice browsing the web.
I'd already been to 2 of your links but thanks for the effort. When I find the Solution I will be sure to post it.
Steve
|
|
|
|
|
I want to use dynamic background in my winform app, I used GIF image now, it looks not so good, can I use a flash as background? how?
In my opinon, I need to use "AxShockwaveFlash" to play the flash, this object is not under control of my app, so I can't draw on it...
|
|
|
|
|
Embed your flash in a webpage and show it in a WebBrowser [^] control. Set the Dock property to DockStyle.Fill
I are Troll
|
|
|
|
|
But how can I draw some text and image above webbrowser?
|
|
|
|
|
You can drop controls on the webbrowser. Most won't be transparent though.
|
|
|
|
|
Hi all,
Can any one plse tell me the exact use of serialization? in which scenario
we can use it?
Regards
Lijo
|
|
|
|
|
Have you considered "File...Save"?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Honestly, is this[^] really so difficult for you
only two letters away from being an asset
|
|
|
|