The instructions are there in codeplex. Also, you can probably get an idea of what to do from the AJAX forum on this site. There's probably a FAQ for AJAX installation.
I love to display the non-secure items...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
javascript calling a server side function? javascript is for client side only. It runs on the client computer. You can use it to tell the server to execute a server side function, but why go through all that when you can just have a server side asp control
do that for you?
Are you sure you downloaded the right toolkit? There's a 2.0 (or 1.1 or something) and a 3.5; which .Net framework are you using?
BTW, you are confused (an adjective) and you are in a state of confusion (a noun). I hope that doesn't confuse (a verb) you further. English is a very confusing (a gerund which is a form of verb which can be used as a noun or adjective depending
on context) language. [;)] And you thought C++ was hard...
I love to display the non-secure items...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Protected Sub FormView2_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles FormView2.DataBound
If Page.IsPostBack = True Then
Dim t2 As TextBox = TryCast(FormView2.FindControl("tes"), TextBox)
Dim l1 As Label = TryCast(FormView2.FindControl("costLabel"), Label)
Dim b As Button = TryCast(Me.FormView2.FindControl("button1"), Button)
b.Attributes.Add("onclick", "return DisplayConfirmation(" & l1.Text & ",'" & t2.ClientID & "')")
End If
End Sub
the label and textbox can detect in javascript...
but if i use session, it can not detect in javascript. i don't know about the true code...
my code use session like this:
Protected Sub FormView2_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles FormView2.DataBound
If Page.IsPostBack = True Then
Dim t2 As TextBox = TryCast(FormView2.FindControl("tes"), TextBox)
Dim l1 As Label = TryCast(FormView2.FindControl("costLabel"), Label)
Dim b As Button = TryCast(Me.FormView2.FindControl("button1"), Button)
Session("l") = l1
Sorry, but for the next 50 years or so, English will remain the common tongue of commerce, computer science and aviation. Then it will probably become Chinese. Pity us poor lo-fan programmers and keyboard manufacturers. I've seen people write "I am confusion"
before, and I gotta tell you, you have a much better chance of getting an English speaker to answer a question if you ask it in proper English; that way we know that we understand the question and you understand the answer and we're not going to waste time
on mistranslations.
I'm not super strong on VB, but when you say it can't detect, what error are you getting?
I love to display the non-secure items...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
<asp:HyperLink
ID =
"Hyperlink1" Target="https://localhost:1042/Ta/login.aspx "
runat="server"
ImageUrl="~images/button.gif"
/>
There's no reason I know of that you can't point a hyperlink at a SSL web page from http. There may be a IIS question there though.
I love to display the non-secure items...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
I love to display the non-secure items...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
hardy
Member
350 Points
477 Posts
Re: javascript and label is firing in the formview with condition..
Jan 24, 2008 02:26 PM|LINK
ok, i have download it.
what should i do next?
thx..
Charles Asbo...
Contributor
5512 Points
1186 Posts
Re: javascript and label is firing in the formview with condition..
Jan 24, 2008 02:43 PM|LINK
The instructions are there in codeplex. Also, you can probably get an idea of what to do from the AJAX forum on this site. There's probably a FAQ for AJAX installation.
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
hardy
Member
350 Points
477 Posts
Re: javascript and label is firing in the formview with condition..
Jan 25, 2008 12:37 PM|LINK
charles...
i have try ajax toolkit, it use c#, and many error..
i am confusion...
do u know about how to insert data to database use javascript?
is it possible?
because as i know, the javascript is only display something..
thx....
Charles Asbo...
Contributor
5512 Points
1186 Posts
Re: javascript and label is firing in the formview with condition..
Jan 25, 2008 01:52 PM|LINK
javascript calling a server side function? javascript is for client side only. It runs on the client computer. You can use it to tell the server to execute a server side function, but why go through all that when you can just have a server side asp control do that for you?
Are you sure you downloaded the right toolkit? There's a 2.0 (or 1.1 or something) and a 3.5; which .Net framework are you using?
BTW, you are confused (an adjective) and you are in a state of confusion (a noun). I hope that doesn't confuse (a verb) you further. English is a very confusing (a gerund which is a form of verb which can be used as a noun or adjective depending on context) language. [;)] And you thought C++ was hard...
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
hardy
Member
350 Points
477 Posts
Re: javascript and label is firing in the formview with condition..
Jan 26, 2008 12:16 PM|LINK
okay... master.... [cool]
i have know you are good in english...
maybe i need to learn english from u while ask about asp.net problem... [:D]
okay... i can use label and textbox in javascript, but now, i am using session, but can not detetct in javascript.
my javascript:
<script type="text/javascript">
function DisplayConfirmation(cost,textboxid)
{
var s=document.getElementById(textboxid).value;
if(s>cost)
{
if(confirm('Are u sure'))
{
document.getElementById('<%=HiddenField1.ClientID%>').value = "true"
}
else
{
document.getElementById("<%=HiddenField1.ClientID%>").value = 'false'
}
}
else
{
}
}
</script>
my code in vb:
Protected Sub FormView2_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles FormView2.DataBound
If Page.IsPostBack = True Then
Dim t2 As TextBox = TryCast(FormView2.FindControl("tes"), TextBox)
Dim l1 As Label = TryCast(FormView2.FindControl("costLabel"), Label)
Dim b As Button = TryCast(Me.FormView2.FindControl("button1"), Button)
b.Attributes.Add("onclick", "return DisplayConfirmation(" & l1.Text & ",'" & t2.ClientID & "')")
End If
End Sub
the label and textbox can detect in javascript...
but if i use session, it can not detect in javascript. i don't know about the true code...
my code use session like this:
Protected Sub FormView2_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles FormView2.DataBound
If Page.IsPostBack = True Then
Dim t2 As TextBox = TryCast(FormView2.FindControl("tes"), TextBox)
Dim l1 As Label = TryCast(FormView2.FindControl("costLabel"), Label)
Dim b As Button = TryCast(Me.FormView2.FindControl("button1"), Button)
Session("l") = l1
b.Attributes.Add("onclick", "return DisplayConfirmation(" & Session("l").tostring & ",'" & t2.ClientID & "')")
End If
End Sub
it can not detect...
what should i change it?
thx...
Charles Asbo...
Contributor
5512 Points
1186 Posts
Re: javascript and label is firing in the formview with condition..
Jan 28, 2008 03:03 PM|LINK
Sorry, but for the next 50 years or so, English will remain the common tongue of commerce, computer science and aviation. Then it will probably become Chinese. Pity us poor lo-fan programmers and keyboard manufacturers. I've seen people write "I am confusion" before, and I gotta tell you, you have a much better chance of getting an English speaker to answer a question if you ask it in proper English; that way we know that we understand the question and you understand the answer and we're not going to waste time on mistranslations.
I'm not super strong on VB, but when you say it can't detect, what error are you getting?
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
hardy
Member
350 Points
477 Posts
New!!! change to https...
Jan 28, 2008 05:13 PM|LINK
emmm...
it means after 50 years, the international language is change to chinese ....
but after 50 years, we have be grandfather, and can not work in program again...
ok, i will study english step by step from english speaker...
oh.. yea... the value of session can not detect in javascript..
there is no way to do that..because i have get many answer from all source, so use
label1.text=session("data")
because the js only detect label and textbox value...
ok..
ooo...,i have one problem in https...
can i ask in this thread?
if can, this problem:
i have 2 page are default.aspx and login.aspx..
i write url http://localhost:1042/Ta/default.aspx in internet explorer , and it display default page.
i want when i click loginbutton in default page, it run to login.aspx with the url name https://localhost:1042/Ta/login.aspx
how to make it?
thx...
Charles Asbo...
Contributor
5512 Points
1186 Posts
Re: New!!! change to https...
Jan 28, 2008 06:22 PM|LINK
There's no reason I know of that you can't point a hyperlink at a SSL web page from http. There may be a IIS question there though.
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
hardy
Member
350 Points
477 Posts
Re: New!!! change to https...
Jan 29, 2008 11:37 AM|LINK
okay2, thx.. i have got answer from forums.iis.net..
thx very much...
see u in other next problem...
Charles Asbo...
Contributor
5512 Points
1186 Posts
Re: New!!! change to https...
Jan 29, 2008 03:27 PM|LINK
Glad it all worked out.
Charlie Asbornsen
Dont forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.