|
Hey
I have created a metode to create RadiobuttonList dynamically but when i show it in my page end i chec them to false or true and when i click the button all radiobutton is coming back to true.
I have a function to read wgat user have selected :
Hope i can help. her is som code to create radiobuttonlist:
foreach (DataRow dr in ds.Tables[0].Rows)
{
Label li = new Label();
System.Web.UI.WebControls.ListItem ls = new System.Web.UI.WebControls.ListItem();
RadioButtonList rl = new RadioButtonList();
rl.Items.Add(new System.Web.UI.WebControls.ListItem("Inkl", dr["Type"].ToString()));
rl.Items.Add(new System.Web.UI.WebControls.ListItem("Eks", dr["Type"].ToString()));
rl.RepeatDirection = RepeatDirection.Horizontal;
Panel2.Controls.Add(li);
Panel2.Controls.Add(rl); //tilføjer dem til panelet
}
then when i click a button hwo called checkthevalue, i called this metode:
foreach (Control cr in Panel2.Controls)
{
if (cr is RadioButtonList)
{
RadioButtonList rb = (RadioButtonList)cr;
foreach (System.Web.UI.WebControls.ListItem ls in rb.Items)
{
if (ls.Selected && rb.SelectedItem.Text == "Eks")
{
//this ad a line to pdf file
document.Add(new Paragraph("-" + rb.SelectedItem.Value.ToString(), FontFactory.GetFont(FontFactory.TIMES_ROMAN, 12)));
}
}
}
}
Hope i can help me.
|
|
|
|
|
how to create the chating program pls give coding from .net with c#
its same as gmail chating program
|
|
|
|
|
Every single one of the messages you've posted have had the subject "Question". Don't you think everything posted on these (technical) boards is a question?
Oh, and no, were will not provide you full code for a chat application. Get a clue!
|
|
|
|
|
but wait surely we should be expected to write his app for him
I mean we arent getting paid for it, he is, what better incentive is that
|
|
|
|
|
I am intrested to know who voted for that question also
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Voting 1 mns u abused some one
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
I'll do it for $10,000.
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 )
|
|
|
|
|
Have u any server For chating application
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
|
i think he want to make any massenger like Gtalk and yahooo msgr.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
I am using PayPal for online payment. I want to use DoExpressCheckoutPayment method of PayPal.
Is it possible to pay through this method without login or signup in the PayPal site.
Thanks in Advance
regards
Samrat Mandal
|
|
|
|
|
Well, paypal are the people to ask, surely ?
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 )
|
|
|
|
|
Thanks for the reply...
But I do not understand your answer. My question is Online Payment using PayPal I want to use DoExpressCheckoutPayment method of PayPal. Is it required to login in the PayPal site for that user.
With Thanks
regards
Samrat Mandal
|
|
|
|
|
Why are you asking us instead of the people at PayPal?? They wrote and own the API you have to use, su they would probably be the most appropriate people to ask about how to use their API, right??
|
|
|
|
|
Unable to cast object of type 'System.Web.Configuration.HttpCapabilitiesBase' to type 'System.Web.HttpBrowserCapabilities'
what is this error?
|
|
|
|
|
type it into google and you might find out!!!
|
|
|
|
|
Please read the article I link to. It has a section on how to learn more about error messages.
If someone is paying you to code, then hang your head in shame. If you're a hobbyist, I hope you enjoy yourself, but you're a long way from being able to write code that anyone can use, don't get ahead of yourself.
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 )
|
|
|
|
|
was that directed at me that comment?
|
|
|
|
|
.netman wrote: was that directed at me that comment?
He didn't reply to your comment.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi
I have a gridview which has lots of rows
I need to select a row where a value is one less then the current selected one
How would I do the following pesudo code in sql
Select field from table where order is one less then 3?
thanks
|
|
|
|
|
Are you looking for the just lower value? then
may be WHERE Max(Value) < Value
Or you require "1" Less than the current value ?
Thanks
Laddie
Kindly rate if the answer was helpful
modified on Friday, April 11, 2008 6:16 AM
|
|
|
|
|
Hi I was looking for 1 less than the current value, but I managed to do it through a c# calulcation instead.
thanks for the reponse
|
|
|
|
|
How about using the subtraction operator (-) to subtract the literal value one (1) from the value?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hello all,
I'm designing a profile for my website with asp.net with C#.
i have this code with vb.net:
Profile.name=CType(FCLogin View.FindControl("txtname"),TextBox).text
but i couldn't convert this to C#.
please help me,
thank you
|
|
|
|
|
give this a go
just tried it on one of the online converter tools:
Profile.name = ((View.FindControl[])(FCLogin));
"txtname";
Unknown,TextBox;
Unknown.text;
|
|
|
|