Click here to Skip to main content
15,911,306 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: scape sequence in insert query Pin
e-laj3-Oct-06 11:39
e-laj3-Oct-06 11:39 
AnswerRe: scape sequence in insert query Pin
Member 964-Oct-06 13:29
Member 964-Oct-06 13:29 
QuestionCapture onclick event of button in datagrid Pin
cullyk2-Oct-06 23:23
cullyk2-Oct-06 23:23 
AnswerRe: Capture onclick event of button in datagrid Pin
thomas_joyee3-Oct-06 0:56
thomas_joyee3-Oct-06 0:56 
GeneralRe: Capture onclick event of button in datagrid Pin
cullyk3-Oct-06 1:03
cullyk3-Oct-06 1:03 
GeneralRe: Capture onclick event of button in datagrid Pin
thomas_joyee3-Oct-06 1:10
thomas_joyee3-Oct-06 1:10 
GeneralRe: Capture onclick event of button in datagrid Pin
cullyk3-Oct-06 3:47
cullyk3-Oct-06 3:47 
QuestionSend a value through Callback to Server [modified] Pin
sbao0042-Oct-06 22:24
sbao0042-Oct-06 22:24 
Hi,

I was trying to send a number from a HTML textbox to add a value to it at the Server, then return it to an ASP textbox.

But I don't know to to pass the value of the HTML textbox to the server.

The 2 Javascript functions are:

<script type="text/javascript">
//the first function to call the server
function GetNumber() {
UseCallBack();
}

// The function receive the adjusted value from the server and display it into the textbox1

function GetRandomNumberFromServer(arg, context) {
document.forms[0].TextBox1.value = arg;
}
</script>

Here are the server side code, written in the .vb file:


Dim _callbackResult As String = Nothing

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim cbReference As String = Page.ClientScript.GetCallbackEventReference(Me, _
"arg", "GetRandomNumberFromServer", "context")
Dim cbScript As String = "function UseCallBack(arg, context) {" & cbReference & "}"
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "UseCallBack", cbScript, True)
End Sub

Public Function GetCallbackResult() As String Implements System.Web.UI.ICallbackEventHandler.GetCallbackResult
Return _callbackResult
End Function

Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent
_callbackResult =

'equal the value from the HTML textbox + 5
End Sub


Does anyone know where I can add some code to ask to pass the value to the Server?

Thanks,




-- modified at 4:30 Tuesday 3rd October, 2006
QuestionWebsphere Error Pin
mohanrajh2-Oct-06 21:19
mohanrajh2-Oct-06 21:19 
AnswerRe: Websphere Error Pin
Sathesh Sakthivel2-Oct-06 21:32
Sathesh Sakthivel2-Oct-06 21:32 
GeneralRe: Websphere Error Pin
mohanrajh2-Oct-06 21:41
mohanrajh2-Oct-06 21:41 
GeneralRe: Websphere Error Pin
Sathesh Sakthivel2-Oct-06 21:52
Sathesh Sakthivel2-Oct-06 21:52 
Questioncode in c# and asp.net for making web parts in share point Pin
indrani222-Oct-06 20:47
indrani222-Oct-06 20:47 
AnswerRe: code in c# and asp.net for making web parts in share point Pin
Sathesh Sakthivel2-Oct-06 20:52
Sathesh Sakthivel2-Oct-06 20:52 
GeneralRe: code in c# and asp.net for making web parts in share point Pin
indrani222-Oct-06 23:20
indrani222-Oct-06 23:20 
GeneralRe: code in c# and asp.net for making web parts in share point Pin
Sathesh Sakthivel2-Oct-06 23:35
Sathesh Sakthivel2-Oct-06 23:35 
QuestionHow to read the XML values from an web page Pin
Exelioindia2-Oct-06 20:31
Exelioindia2-Oct-06 20:31 
AnswerRe: How to read the XML values from an web page Pin
Sathesh Sakthivel2-Oct-06 20:46
Sathesh Sakthivel2-Oct-06 20:46 
GeneralRe: How to read the XML values from an web page Pin
Exelioindia2-Oct-06 22:51
Exelioindia2-Oct-06 22:51 
GeneralRe: How to read the XML values from an web page Pin
Sathesh Sakthivel2-Oct-06 23:21
Sathesh Sakthivel2-Oct-06 23:21 
Questionweb parts in sharepoint for .NET 1.1 Pin
indrani222-Oct-06 19:32
indrani222-Oct-06 19:32 
Questionscheduling an asp.net script Pin
senorAli332-Oct-06 18:51
senorAli332-Oct-06 18:51 
AnswerRe: scheduling an asp.net script Pin
Sathesh Sakthivel2-Oct-06 19:00
Sathesh Sakthivel2-Oct-06 19:00 
QuestionDisable button & links on web page Pin
mohanrajh2-Oct-06 16:28
mohanrajh2-Oct-06 16:28 
AnswerRe: Disable button & links on web page Pin
Chris Buckett2-Oct-06 22:21
Chris Buckett2-Oct-06 22:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.