|
The Web Hosting provider would be the best to help you.
Normally, they provide you with dieffernt easy to use tools to upload your site.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi Guys,
I really not working extensively in classic asp, and I am having problem with getting the value of onclick. How would I know if this particular button is clicked? I just wanted to know which button has been clicked
Please check my small code below:
sample
]]>
hifiger2004
|
|
|
|
|
What's with this <!'CDATA{....]]> nonsense? Get rid of that, for starters.
Have you any idea what you're doing? I strongly suggest you start from scratch with a good beginners book on ASP, if you must use it. Or try the w3schools site.
The page below, if saved as "hifinger.asp" will tell you what button you clicked:
<html>
<head>
<title></title>
</head>
<body>
<form name="f1" method="post" action="hifinger.asp">
<input type="submit" name="Button1" value="One" />
<br />
<input type="submit" name="Button2" value="Two" />
<br />
<%
If Request("Button1") = "One" Then Response.Write "You clicked Button 1"
If Request("Button2") = "Two" Then Response.Write "You clicked Button 2"
%>
</form>
</body>
</html>
|
|
|
|
|
Hi Phil,
Your sample, works.
But when I changed it to...
This doesn't work...
Why, is it because of the type that it should be "submit". In my actual application I am using the type="image". Is this possible?
Thanks Phil
hifiger2004
|
|
|
|
|
Have you even tried to solve this yourself? Sigh...
<html>
<head>
<title></title>
<SCRIPT language="JavaScript">
function submitform(x)
{
document.getElementById("t1").value=x;
document.getElementById("f1").submit();
}
</SCRIPT>
</head>
<body>
<form name="f1" id="f1" method="post" action="hifinger.asp">
<img src="image1.gif" onclick="submitform(1)" />
<img src="image2.gif" onclick="submitform(2)" />
<input type="hidden" name="t1" id="t1" />
<%'
If Request("t1") = "1" Then Response.Write "You clicked image 1"
If Request("t1") = "2" Then Response.Write "You clicked image 2"
%>
</form>
</body>
</html>
|
|
|
|
|
Yes, I tried using querystring. But your solution is what I want.
It really work!
Thanks man
hifiger2004
|
|
|
|
|
Hi Guys,
I am working with an application that has a session variable, but it doesn't work. So I created a sample test asp in order for me to simulate the process. But still the session value doesn't change. Please check my sample code below if what's lacking. The session variable is Session("temp")
Sample test.asp
]]>
")
if Session("temp") = "next" then
Session("temp") = ""
Session.Contents.Remove("temp")
intNum1 = 5
intNum2 = 5
end if
if Session("temp") = "prev" then
Session("temp") = ""
Session.Contents.Remove("temp")
intNum1 = 6
intNum2 = 6
end if
Response.Write("temp -- " & Session("temp") & " ")
%>]]>
The total is: <%=intTotal%>
ifiger2004
|
|
|
|
|
I think you're in the wrong forum - try Coding Horrors[^]...
What on earth are you trying to do?!?!?!
|
|
|
|
|
I'm using an asp:Label control inside a DataList. The control renders as a TD, but the contents are truncated if too long. How can I make the text content wrap without inserting breaks?
|
|
|
|
|
If you set a width for the TD then the contents of it should be wrapped.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
I have no direct access to the TD. One TR/TD is rendered for each item in the DataList control. I've tried setting a width on the DIV in my item template, but that has no effect.
|
|
|
|
|
Use this css
.WordWrap
{
word-break: normal;
word-wrap: break-word;
}
|
|
|
|
|
Use Firebug or equiv, check out the styles on your TD and its parents - my guess is, either the white-space:nowrap style is set somewhere, or there's an old nowrap attribute floating around. Kill it, and you'll get what you want (assuming there's sufficient white space for wrapping).
If your question is more "how do i get the DataList to act right", then try the ASP.NET forum.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Thanks, I'll check that out.
Shog9 wrote: If your question is more "how do i get the DataList to act right", then try the ASP.NET forum.
No, I'm trying to concentrate on getting the templated content, i.e. rendered basic HTML, of the DataList to act right.
|
|
|
|
|
Hi All,
I used Cascading dropdownlists for Coutry & State.
I wrote webdervice to fill the dropdownlists.
Its all working fine.
But when i trying to get SelectedIndex of Dropdownlists, its always giving SelectedIndex as 0 (Zero).
ex:
int index =ddl_Country.SelectedIndex;//Giving '0'
Please suggest me where i went wrong.
Thanks in advance,
sekhar
|
|
|
|
|
sekhar.k wrote: Please suggest me where i went wrong.
I'd rather point you in the right direction - to the ASP.NET forum[^].
|
|
|
|
|
Hi,
Just a small suggestion, you can access the SelectedValue property of the first CascadingDropDown control in order to populate the next CascadingDropDown control.
Hope it helps,
Thx,
Gayani
|
|
|
|
|
Hi,
I don't know if it's possible or what.. I need a script or something where I can right text on like (Note Pad) and in a certain day the text is shown on the site.
For example if today there is a game it on the website is shown the date, time and place. and the next day the next match (date, time and place) replaces the old one.
Thanks alot!!
|
|
|
|
|
Yes, its possible. You need some sort of storage for your text (database, file etc) and some code to check the dates and display it.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Can you please help me?
If possible I want to use a simple note pad to insert the data in it (ie the date, time and place)
maybe javascript.
plssssssss!
THX!!
|
|
|
|
|
Member 3448296 wrote: Can you please help me?
Yes and no.
The yes part - try rentacoder or similar.
The no part - the idea of CP is YOU write some code, and when it doesn't work you post and someone wll try and help.
Its pretty obvious you have no idea about what is really required, so I suggest you employ someone.
|
|
|
|
|
That's why I posted this problem in the first place as I have no idea how to make it idiot!
|
|
|
|
|
Member 3448296 wrote: I have no idea how to make it idiot
You originally asked could it be done and how. I told you. You then asked if I could help you do it. I explained that thats not how CP works, and if you want code writing for you try sites like rentacoder.
So how does that make me an idiot?
Get some manners you tosser
Bob
Ashfield Consultants Ltd
|
|
|
|
|
the type of message was a joke... can't anyone take a simple joke?
|
|
|
|
|
Fair enough, I missed the message type. If you'd put a in the message it would have helped though.
Bob
Ashfield Consultants Ltd
|
|
|
|