|
Do you have the CheckboxList in C# 1.0 ?
if yes then use that one
or if ou don't have then check the Request object it will contain values of of all checked checkboxes
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
How t o achieve form authentication for login page?
|
|
|
|
|
|
Hi all,
From my DATABASE i get Dataset to my GRIDVIEW.
On run time I want to change the value of a cell.
For example:
Instead of "0" i want to write "N/A".
let's make it clear - I don't want to update the value in the DB
just change the specific value of the cell that the user will see on the web.
Hope I made my self clear.
Thanks for your help!!!
|
|
|
|
|
Check the fallowing url will get many articels regarding the Gridview
http://gridviewguy.com/CategoryDetails.aspx?categoryID=7[^]
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
OnRowDataBound Event
Find Control,Get values and Set Values
For Example
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{<br />
If(((Label)e.Row.Findcontrol("lblId")).Text=="0")<br />
{<br />
((Label)e.Row.Findcontrol("lblId")).Text="N/A";<br />
}<br />
}
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Wow......
It is OK now!!!!
thanks so much for your help!!!!
Omer
|
|
|
|
|
i want to know about the basics of crystal report in asp.net
|
|
|
|
|
|
Nice one
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Dear All,
I have proble in devloping .net webservice.
I have to share comman state to all user
this is all using .net web service
this is what i want visible comman state to all online connected user
as i want to devlop online poker
Vira
Web devloper
Mumbai
-- modified at 7:15 Thursday 6th September, 2007
|
|
|
|
|
I guess you are working on .NET remoting concept. There are differences between Webservices and Remoting though they does the same work like it allows you to communicate between the client applications and components. Both can act as a middleware but can't do anything with the textBox.try to understand the concept first and see how it can be done and decide which one will suit best for you situation and then proceed....
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
thanks,
i am going to devlop online casino game.
and i want card on desk will shown to all onliine user that is one object to all user.
so i want to use .net web service but how maintain single state that is comman state to all user that i don't know to i am doing R&D on that
if u find solution then reeplay
thanks
|
|
|
|
|
You can achive this through static variables in your webapplication. And onething more we dont use controls in webservice.
Shujaat
|
|
|
|
|
I have a page which has certain required fields.In order to validate them i am using Required Field Validators.
Now on my save button i have added the attribute
btnSave.Attributes.Add("OnClick", "return OnSaveClick();");
function OnSaveClick()
{
if(document.getElementById('ctl00$ContentPlaceHolder1$txtOneTouchUserName').value.length >0 && document.getElementById('ctl00$ContentPlaceHolder1$txtOneTouchPassword').value.length >0)
{
if(window.confirm("Are you sure you want to save configuration settings and log off ?"))
return true;
}
}
This java script function basically displays a Confirmation box ...
Now , the problem is that when i click save post back occurs and then the .net validation occurs, in case i dont add the HTML onclick event to the save button then the validation occurs without post back.
How do i prevent post back without removing the onclick java script.
|
|
|
|
|
return false;
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
In case i return false in javascript ,the postback dosent occur but neither does the validation ocuur
|
|
|
|
|
would you explain one more as i am not getting properly what you have written
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
When i click save button postback occurs even though validations are in place.
What i have noticed is that if i dont add the javscript function to the save button no post back occurs and the validations work as they are supposed to but then i cant get the confirmation message.
But if i use JavaScript function , the page posts back and on refreshing the validations show up .
One solution i came up with was to remove "Return" from "Return OnSaveClick()"
But in this case if i click "Cancel" the post back occurs.
|
|
|
|
|
Make sure that your required field validators are ClinetScriptEnable=true
BTW what validation are firing after post back
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Yes i have done that still the post back occurs.
Required Field Validators are firing after post back....which fire before post back in case java script function is not added
|
|
|
|
|
Yes when you are attaching the javascript to button then validations at the client side will not fire as you are returning the bool from the function because of that validation of client side are not firing you can check by just by commenting all return from javascript function and from registration in PageLoad. I think its clear now ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
If i remove return it will post back when i click cancel in the Confirm Prompt.
|
|
|
|
|
If you use javascript then validator controls will not file.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
remove the required field validator and add the javascript validation that will check the text box are empty or what ? i don't have proper sloution right now but this is another way to do it .............
but whats the problem if the page is getting post back and then displaying error message ...........
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|