|
|
hello while I was searching on code project I found ur good question, i need the solution cause it is good to put it on all of ur done websites,
may u please send me the solution that u got in more details cause i didnt undrstand the solution
Thanks alot
Hamody
|
|
|
|
|
|
hi, morning,
i made a small website with 2 web forms, i put the script code u sent me on the top of the web form 1 but it disabled the back to the whole of the web site, i want it to disable the back on specific web form, so how it will be???
Thanks alot
Hamody
|
|
|
|
|
|
gubba wrote: This method is working fine for me.
Be aware, all i need to do to break this is to disable Javascript...
----
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
|
|
|
|
|
|
Hi Guys,
I have encountered this problem when I am having my Classic ASP code that was put inside the string variable including the directives (<% varTemp %>). The value of varTemp is coming from my table categories wherein you can find there tha CategoryID. And the value of the CategoryID will be used dynamically as an indicator if the checkbox will be displayed as checked or unchecked.
Page Error:
Microsoft VBScript compilation error '800a0409'
Unterminated string constant
/signup/checkbox4.asp, line 6
&"<%= varTemp
-------------^
Below is my trial Classic ASP code, before moving to my actual ASP Coding. I hope this can be solved. Thanks in advance
<%
Dim sCheckBox
sCheckBox = sCheckBox + "" _
&"/>" _
&"Test Checkbox" _
&""
%>
<%= sCheckBox %>
hifiger2004
|
|
|
|
|
Think you need to remove the <%= and %> from varTemp, since you're already in a code block.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
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
|
|
|
|