|
want to create a Panel in ASP.NET ) with a check box as a header that disables all contained controls when unchecked. How do i so???
|
|
|
|
|
You can do it either by server side code or client side code.If you want to do it in server side use OnCheckedChanged event of checkbox.
|
|
|
|
|
I want to work on client side.
|
|
|
|
|
Add onclick attribute to checkbox and disable controls in the onclick event.
something like,
chkName.Attributes.Add("onclick", "return DisableControls();");
|
|
|
|
|
i can't find click event for a check box plz send me the code for onchange event
|
|
|
|
|
In the page load event do like this,
if (!IsPostBack)
{
chkSelect.Attributes.Add("onclick", "Check();");
}
and in html do like this,
<script type="text/javascript">
function Check()
{
}
</script>
haleemasher wrote: plz send me the code
Another thing is if somebody is giving you an idea then plz just try it out first by using online resources or MSDN help and if you feel any difficulties then we'll help if we know that.
Anyway happy to help you.
|
|
|
|
|
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Helo All,
I have defined one usercontrol UserDropdownlist and that UserDropdownlist i have bind in render method as per my requirement (Control render method) and on page when i hit submit one control load event i get item.count = 0 i don't why this happpen event data display on viewstate?
If that issue resolved if i am binding UserDropdownlist list in onload method of control so can you please tell me what is reason for that?
Thanks in Advance,
Anish Patel
|
|
|
|
|
anish27patel wrote: i have bind in render method
Its better to know the event cycle to solve this problem.
Your problem is because you are binding in Render.So it won't be there in ViewState.As u told use load for binding drop down.
Search MSDN for Event life cycle in ASP.NET.
|
|
|
|
|
Hi Experts,
I am using a simple text box and a hidden checklist control to get a multiselect text when i click on text box i just display the checklist by javascript methods and now i want to hide th checklist when i lose focus to the text box.
i have implemented onblur event for text box but when i try to click on checklist item the onblur event is fired and the checklist control is getting hidden.
Please help me to resolve this(may be in javascript only)
thanks
Sathish
modified on Friday, September 4, 2009 12:22 AM
|
|
|
|
|
I think better to make it as a usercontrol and try to add focus out attribute for the usercontrol.
|
|
|
|
|
I'm working on a project with basically two sections per page - the header and the content. I'd like stretch the content section (in a DIV) from normal to full-screen and back when another control (i.e. checkbox) is clicked. Any good examples of how to do this? Caveat: my header div has floating menus - I need to keep these on top of the content DIV.
Thanks!
Rob
http://tagyurit.com
|
|
|
|
|
Hi,
I have 2 Gridviews on an aspx page. When I select a record in the first GridView, the second Gridview should display details of the record selected.
How would I go about doing this?
Illegal Operation
|
|
|
|
|
GridView offers a SelectedIndexChanged[^] event. Handle this event for the first gridview and bind second gridview from here.
|
|
|
|
|
I don't have much experience with them yet, but I believe you will probably have some good luck with updatepanels. I'd format one of the columns of the parent grid with a hyperlink (including some sort of ID of the record), then use a postback event handler to get the details of the child grid and bind the details to the grid.
Good luck.
Rob
http://tagyurit.com
|
|
|
|
|
Hello
When I run my website which have some tables the lines of table will appear. (no border)
it is where that colour of table is different from other table. a line is appear that is for bgcolour.
I hope that you understand what I said...
What should I do for disappaering these lines?
Thanks a lot
|
|
|
|
|
Try with CellPadding,CellSpacing or Border.May be it'll work.
|
|
|
|
|
As Arun suggested, check for CellSpacing and Padding.
Which browser are you using ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I want to send emails from site to gmail.But i don't have domain name registered.Please expain with name spaces that i have to include.
|
|
|
|
|
Send through your localhost... 127.0.0.1
Or if you want, you can also use your GMAIL server to send mails. ..
check this
<a="http: www.codeproject.com="" kb="" ip="" sending_emails_from_gmail.aspxail.aspx"="">Send Mails[^]
|
|
|
|
|
What is the use of namespace gmail...can it be done without that
|
|
|
|
|
I got it lol... thnx...
|
|
|
|
|
You are most welcome..
If you like to thank me always click on "Good Answer" Link associated with each message.
Thank you.
|
|
|
|
|
hello, i need to build a website as my project for final year.
basically its a community website (like orkut , myspace or hi5)
where you ask for login and pass in starting page...
then if user have account then it is redirected to its account.
if not... then register.. here is problem im having..
as when we register that person..the data is fed into database... like name address , about me etc..etc...
then how can i use that data to represent it like as it orkut...
and how to auto generate webpage as a person is sucessfully register
and has account.....
thanks in advance buddies
|
|
|
|
|
Well,nobody will not do your homework.
Start doing something by yourself and when you stuck then post here specific problem then sure you will get help from this forum.
Regards.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|