|
Hi all,
I have one question very very easy but what I don't know do.
With vb 6 when I want create a group checkbox only I have that copy and paste the same checkbox into panel and vb 6 create the group.
Well, with vb.net and asp.net (v.studio 2008) if I copy and paste the name ID is diferent and is not posible create a group with properties.
Also I have tried select 2 or 3 checkbox with key "control + click" but nothing is not posible.
Later I have tried to put into code the name of group and I don't see errors but I don't know how call later to group, I put you my simple code that I want to do:
<asp:Panel ID="Panel1" runat="server" Width="451px" >
<asp:CheckBox ID="ChkDia1" runat="server" CssClass="negro11b" Text="Lunes" group="ChkDia" />
<asp:CheckBox ID="ChkDia2" runat="server" CssClass="negro11b" Text="Martes" group="ChkDia" />
<asp:CheckBox ID="ChkDia3" runat="server" CssClass="negro11b" Text="Miercoles" group="ChkDia"/>
<asp:CheckBox ID="ChkDia4" runat="server" CssClass="negro11b" Text="Jueves" group="ChkDia"/>
<asp:CheckBox ID="ChkDia5" runat="server" CssClass="negro11b" Text="Viernes" group="ChkDia"/>
<asp:CheckBox ID="ChkDia6" runat="server" CssClass="negro11b" Text="Sabado" group="ChkDia"/>
<asp:CheckBox ID="ChkDia7" runat="server" CssClass="negro11b" Text="Domingo" group="ChkDia"/>
</asp:Panel>
'Ocultar todos chkDia
Dim i As Integer
For i = 1 To 7
ChkDia(i).Visible = False
Next
Thanks for your help!
|
|
|
|
|
Can you explain it more clearly ?
suchita
|
|
|
|
|
Sandraa wrote: With vb 6
Sandraa wrote: with vb.net and asp.net
Well VB6 and asp.net are different. Of course you can use vb.net as code behind.
What exactly are you trying to achieve?
|
|
|
|
|
.NET does not directly support control arrays. See here[^] and here[^]
|
|
|
|
|
You could use the CheckBoxList[^] control instead.
Kelly Herald
Software Developer
|
|
|
|
|
but is not possible call to matrix of checkbox easily, I don't want do it dinamically.
why checkbox accept by code add property "group=" and later is not posible use it?
I only want put visible or not visible "some" checkbox with a For next.
I would like to have a easy sample about it.
Thanks very much
|
|
|
|
|
Hey,
any one can help to give me idea of social submitter project
in asp.net
|
|
|
|
|
That's...more than a little vague, please could you provide a few more details on what it is exactly you are trying to do?
|
|
|
|
|
amit sahu20 wrote: social submitter project
What is Social submitter?
|
|
|
|
|
|
The idea behind it is quite simple. It allows you to post your information with only 1 click to multiple social sites at once. This prevents you from having to post it on every single social site manually.
Basically this is what socialposter itself says:
"Social Submitter is an application that allows to automatically submit your prepared tagged article with a link to target resource to a large set of social bookmarking sites. Our database contains about 250 bookmarking sites and we update it several times a week to ensure the highest quality of submission. The database update runs automatically on program startup, so you won't need to do anything for it."
|
|
|
|
|
then how i can implement this to our project
code behind this logic
|
|
|
|
|
It's a commercial package, so you either have to buy it or fully code it yourself. They have no API available it seems which you can hook in to. Else you have to built it yourself and hook into the API's from these social sites yourselves and write interfaces for them. Most likely you can find several examples for those here on codeproject (and other websites).
|
|
|
|
|
Hi,
Can you please help me with mobile development with Visual studio 2010.
Here i am talking about developing web applications and they fit to mobile screen.
I could see a template for mobile in VS 2003 and VS 2005. But not in either VS 2008 or VS 2010.
Now i am working with VS 2010. I wanted to develop web applications for mobile devices.
So how would i get mobile template and mobile controls in VS 2010
|
|
|
|
|
|
Hi,
I have gone through them.
I didn't find the resources i am looking for.
|
|
|
|
|
|
Hi All
I need some values to insert and get in HashTable globally in my web application.I make a class an declare it public but when i get the value from hashtable in another page it shows no value.How I access a hash table globally in my application.Pls suggest.
Thanks in Advance
Amit Gautam
|
|
|
|
|
The web is stateless. You'll need to persist the populated HashTable between postbacks. Depending on your needs, be they per user or genuinely per web application instance. Look into using the Web Application Cache, the current Session, and the ViewState for the page.
Rhys
"The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it"
They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance."
Terry Pratchett
|
|
|
|
|
|
Hello,
I need some advices please.
I'm trying to build a website for real estate listing. now the data would look like a datagrid. and while clicking on a row, it should open under it the dynamic data related to the specific row. (like an AJAX accordion).
I will try to explain myself in a better way. this website for example ( ignore the language, couldnt find any better example LOL)
http://www.yad2.co.il/Nadlan/rent.php
Now, i've been told that this works by using "Dynamic Div Creation" which i have no idea how it should work this way. Is it possible to make it work by using an Accordion inside a datagrid? or what?!!
If anybody can advice me or give me a sample code of doing such a thing i would be REALLY grateful.
|
|
|
|
|
The accordion control is just a container, a div, for your controls so yes you can have anything you'd like there. Handle the client side click of the datagrid and make an ajax query for the data, populate the controls as necessary and expand the accordion.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi Mark,
i've reached this point, which is close but not what i want
The JS code is :
<script type="text/javascript">
function toggleDivVisibility(id)
{
var divcontrol = document.getElementById(id);
if (divcontrol.style.display == 'block')
divcontrol.style.display = 'none';
else
divcontrol.style.display = 'block';
}
</script>
And Inside the ItemTemplate of the GridView, there is this code:
< ItemTemplate >
< a onclick = 'return void(0);' href="<%# DataBinder.Eval(Container,"RowIndex","javascript:toggleDivVisibility('Div{0}')") %>">
More..</a>
<div id='<%# DataBinder.Eval(Container,"RowIndex","Div{0}") %>' style="width: 112px; display: none; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid;overflow:auto">
< /div >
This really does open a Div but the problem is that it opens it under the ItemTemplate(column) and not under the ROW.
any ideas?
Thanks
|
|
|
|
|
|
Thanks for the links, its useful. is there any way i can open it under the row at the same way im trying to do with a gridview?
|
|
|
|