Click here to Skip to main content
15,914,013 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAsp.net with active directory Pin
Marp Tech6-Oct-06 4:05
Marp Tech6-Oct-06 4:05 
AnswerRe: Asp.net with active directory Pin
Mike Ellison6-Oct-06 6:12
Mike Ellison6-Oct-06 6:12 
GeneralRe: Asp.net with active directory Pin
Marp Tech7-Oct-06 11:38
Marp Tech7-Oct-06 11:38 
GeneralRe: Asp.net with active directory Pin
Mike Ellison8-Oct-06 4:43
Mike Ellison8-Oct-06 4:43 
QuestionDataview sort not working Pin
shivarishxxxx6-Oct-06 3:39
shivarishxxxx6-Oct-06 3:39 
AnswerRe: Dataview sort not working Pin
Kschuler6-Oct-06 8:13
Kschuler6-Oct-06 8:13 
QuestionReasons for not converting in to PDF Pin
King Shez6-Oct-06 1:39
King Shez6-Oct-06 1:39 
QuestionCallback & passing value Pin
sbao0046-Oct-06 1:32
sbao0046-Oct-06 1:32 
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:


//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;
}


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,
AnswerRe: Callback & passing value Pin
Viral Upadhyay6-Oct-06 1:56
Viral Upadhyay6-Oct-06 1:56 
Questionhow to get system names Pin
nannapanenikamalnath6-Oct-06 0:52
nannapanenikamalnath6-Oct-06 0:52 
AnswerRe: how to get system names Pin
Mike Ellison6-Oct-06 6:11
Mike Ellison6-Oct-06 6:11 
GeneralRe: how to get system names Pin
nannapanenikamalnath6-Oct-06 18:16
nannapanenikamalnath6-Oct-06 18:16 
Questiontemplate column problm Pin
Vipin.d6-Oct-06 0:47
Vipin.d6-Oct-06 0:47 
QuestionUse ntext [modified] Pin
MHASSANF5-Oct-06 23:57
MHASSANF5-Oct-06 23:57 
AnswerRe: Use ntext Pin
Guffa6-Oct-06 1:49
Guffa6-Oct-06 1:49 
QuestionRe: Use ntext Pin
MHASSANF6-Oct-06 2:05
MHASSANF6-Oct-06 2:05 
AnswerRe: Use ntext Pin
Guffa6-Oct-06 2:22
Guffa6-Oct-06 2:22 
Questionrestoring back color of an item of a data grid Pin
24891285-Oct-06 23:47
24891285-Oct-06 23:47 
AnswerRe: restoring back color of an item of a data grid Pin
thomas_joyee6-Oct-06 0:25
thomas_joyee6-Oct-06 0:25 
Questionhow to extract the zip file using asp.net Pin
Amit Agarrwal5-Oct-06 23:07
Amit Agarrwal5-Oct-06 23:07 
QuestionHow to move web user control on a web form Pin
ravindradonkada5-Oct-06 22:33
ravindradonkada5-Oct-06 22:33 
AnswerRe: How to move web user control on a web form [modified] Pin
Aashutoshkumar6-Oct-06 0:04
Aashutoshkumar6-Oct-06 0:04 
AnswerRe: How to move web user control on a web form Pin
Exelioindia6-Oct-06 1:24
Exelioindia6-Oct-06 1:24 
Questioncreate new folder through asp.net with c# Pin
Deepak the Cool5-Oct-06 22:02
Deepak the Cool5-Oct-06 22:02 
AnswerRe: create new folder through asp.net with c# Pin
Amit Agarrwal5-Oct-06 23:09
Amit Agarrwal5-Oct-06 23:09 

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.