|
Oh I am sorry Steve, I think I have to explain further if why I need the "<% VarTemp %>" during the populating of checkboxes.
If I will going to remove the <% VarTemp %> from the string variable, then there's no way the checkbox will be "checked", automatically during the dynamic creation.
Actually it's only a test program for me, and if it is successful then I will transfer the concept in my real ASP programming with tables.
The real concept of the program is this, I have a CustomerCategory Table wherein the value is the CustomerID and CategoryID. From this table I will going to load the Category per Customer in a Form of Checkboxes, and upon creating the checkboxes dynamically based from the data of the CustomerCategory Table, the program will display the checked checkboxes.
Let's say for all 10 categories, only 3 of these categories has to be checked based from the CustomerCategory Table. The question is how it will be done?
What I need is only to know if how can I include the directives or block inside the string variable. Because once this will be solved then the variable inside the block will be - "v" + RecordSet("CategoryID"), which I will be using it based from CustomerCategory Table data.
I hope you have a better idea
Thanks Steve
hifiger2004
|
|
|
|
|
Hi Steve, thanks for the reply
Actually, this is only my test program before transferring the concept to my real classic asp program with tables thru mssql2005 database.
The setup is this - There's a CustomerCategory Table that has a CustomerID and CategoryID. And the value of CategoryID will be used for the dynamic creation of checkboxes.
Let's say for example, for all 10 categories, only 3 of these are being stored in CustomerCategory Table. The question is how can I be able to populate the 3 categories by displaying thru 3 checked checkboxes?
Do you have any idea on how it will be done, dynamically?
Thanks in advance
hifiger2004
|
|
|
|
|
I am fairly new to this, if I have teh following datagrid configruation
<br />
<br />
<asp:DataGrid id="DataGrid1" runat="server" Width="959px" Height="94px" Caption="Lots Currently Running"<br />
AllowSorting="True" <br />
AllowPaging="True" <br />
AllowCustomPaging="True" <br />
OnSortCommand="Sort_Grid" <br />
OnSelectedIndexChanged="Select_CurrentLot" ><br />
<Columns><br />
<asp:ButtonColumn Text="Select" CommandName="SelectCurrentLot" ButtonType =PushButton /><br />
</Columns><br />
</asp:DataGrid></asp:DataGrid><br />
I was thinking that when I clicked a button next to a row it would call the "Select_CurrentLot" procedure, but it does not seem to. (Grid loads fine, button show up fine, just nothing happpens when I click one). Am I mis-understanding this or did I go wrong someplace else?
Thanks in advance
|
|
|
|
|
I guess I need help asking questions... I used the code link but it still seems to have gotten confused on HTML format...
so to simplify the question I have a button next to my grid to click
something like: ButtonColumn Text="Select" CommandName="SelectCurrentLot" ButtonType =PushButton
I defined OnSelectedIndexChanged as above and made a subroutine to handle it, when I click the button I was expecting to run the sub but nothing happens... any idea how to debug or what to fix?
|
|
|
|
|
Hi!
I m developing an application in C# asp.net....when i give value like in my text box and then insert it into sql server by using insert query ....it gives exception message
A potentially dangerous REquest.Form value was detected from the client
is there any way to insert values like this coz i have to do it must
|
|
|
|
|
Before submitting from webpage call JavaScript escape() and submit. You can apply UrlDecode to retrieved the contents back on the server.
|
|
|
|
|
Hello all
I need one favour from u how to send mail from php
code need
many thanks
hai all please clarify mny doubts
|
|
|
|
|
|
If you just need to send some basic email then use the following code:
mail("email@example.com", "Subject", "This is a test message.");
Otherwise go to http://php.net/manual/en/function.mail.php[^] for a much more detailed example.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
|
Hi,
I have developed an application in IIS 5.1. Is it possible to deploy that application on IIS 6.0 or IIS 5.0 and what are the things we need to keep in mind while deploying like above. Please give me the solution. Thanks alot
Thanks and Regards
Venkat
|
|
|
|
|
Brad
Australian
- Bradml on "The ADOTD"
Hey all, did you just use/read an acronym? Pots it HERE, at the ADOTD[^]
|
|
|
|
|
|
I need a div to grow as the text size is increased for accessibility purposes. I got it working fairly well using IE7, but the page has 3-times the hits in IE6. The solutions I have discovered so far are using a percentage of a containing div for the width (ie width: 90%, where I want it to be at least 90% of the container - which pretty much works), and an invisible element that is the minimum width i need. That way the div can grow if need be, but the div will never get smaller than the invisible item. These ideas seem pretty hackish and I would rather have a clean solution (if its possible). I am interested to know if anyone has any better solutions.
Matt Newman
|
|
|
|
|
You can sometimes get by with something along the lines of width: expression(clientWidth < 200 ? 200 : 'auto');
Falls apart pretty easily, but in tightly-controlled scenario it can suffice.
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
Shog9 wrote: You can sometimes get by with something along the lines of width: expression(clientWidth < 200 ? 200 : 'auto');
Falls apart pretty easily, but in tightly-controlled scenario it can suffice.
Eeesh, Looks like there isn't a "good" solution to this problem... Stupid IE6
Matt Newman
|
|
|
|
|
How do I diable a function based on the status of a rollover image.
e.g.
If image element 1 is currently displaying rollImage1, then image element 2 will do nothing when mouseover occurs.
However, if image element 1 is currently displaying rollImage2, image element 2 is not effected.
I'm a JS noob, please be specific.
|
|
|
|
|
Thanks in advance for help with this, by the way
|
|
|
|
|
I have three textbox two for phoneNo One for email
and requirement is that user can fill either phoneNo or email
or both .and phoneNo also have RequiredField validations.
pls any one tell me how can i impliment this.
|
|
|
|
|
HaveYouHeardOfSpacingQuestionsOut?
What language do you want this in?
Brad
Australian
- bryce on "Problems with Code Project"
*sigh* Maunder's been coding again...
|
|
|
|
|
Can you describe more??
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my answer is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
hi all
I am developing application use ajaxcontroltoolkit
When i use control Accordion i saw some problem:
In tag <content> on this control contain control asp.net 2.0 lable hasn't value. In codebihe i assgin value for label on function Page_Load but have error
"Object reference not set to an instance of an object". when i try with any control of asp.net 2.0 and assgin value on function Page_Load so it still error
i dont understrand Some body show me away, how can i assgin value for control on Page_Load so use ajaxcontroltoolkit control Accordion
|
|
|
|
|
I'm using VisStudio 2005 Pro and wanted to be able to invoke
a modal popup from the code, instead of a button click.
Anyone here know how to do that? Was suggested that the
.SHOW method would do it, but it hasn't worked for me
in VB.NET
Any suggestions?
T.I.A
B.Griffin
|
|
|
|
|
Please review your knowledge of HTTP and the web - ie the codebehind runs on the server, a modal dialogue is on the client.....
|
|
|
|
|
that's true, but they aren't totally separate, they work together.
how do I execute a javascript from the code behind? If I can do that,
I can create a script that will popup the window.
Ideas?
Thx in advance.
|
|
|
|