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

ASP.NET

 
GeneralRe: Retrieve text from a dynamically created textbox Pin
TerRO_GirL10-Dec-08 10:56
TerRO_GirL10-Dec-08 10:56 
GeneralRe: Retrieve text from a dynamically created textbox Pin
led mike10-Dec-08 10:58
led mike10-Dec-08 10:58 
GeneralRe: Retrieve text from a dynamically created textbox Pin
TerRO_GirL10-Dec-08 11:04
TerRO_GirL10-Dec-08 11:04 
GeneralRe: Retrieve text from a dynamically created textbox Pin
led mike10-Dec-08 11:50
led mike10-Dec-08 11:50 
AnswerRe: Retrieve text from a dynamically created textbox Pin
led mike10-Dec-08 11:03
led mike10-Dec-08 11:03 
AnswerRe: Retrieve text from a dynamically created textbox Pin
Christian Graus10-Dec-08 12:18
protectorChristian Graus10-Dec-08 12:18 
GeneralRe: Retrieve text from a dynamically created textbox Pin
TerRO_GirL10-Dec-08 19:23
TerRO_GirL10-Dec-08 19:23 
QuestionAsp.Net Server Page_Load Call Javascript Confirm Pass return value to the Server on the runtime. Pin
Mohamed Arif10-Dec-08 7:58
Mohamed Arif10-Dec-08 7:58 
Hi,
I am trying to do the below

In Server Side Page_Load (IsPostback) with sever side conditions I am Calling javascript confirm and trying to Return Client Confirm Return value back to the Server on the Runtime. I have pasted the both Server side code and Javascript function below.

ClientSide Javascript:

function UnSavedDataconfirm(Hdn)
{
var hdnfld = document.getElementById(Hdn);

if (confirm("There are some unsaved data. Are sure you want to Change Project Selection?")==true)
{
hdnfld.value = "True"
}
else
{
hdnfld.value = "False"
}

}


ServerSide Page_Load:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Page.IsPostBack = True Then

If IsValidProjectSelection = True Then

Page.ClientScript.RegisterStartupScript(Page.GetType, "UpAlert", "<script>javascript:UnSavedDataconfirm('" & hdn_pschange.ClientID & "');</script>")

If hdn_pschange.Value = "False" Then '(No value Returned from client)
Exit Sub
End If

End If

End If

End Sub

Please let me where I am going wrong or let me know know if there is some other ways to handle this situation.

Thanks in advance.
AnswerRe: Asp.Net Server Page_Load Call Javascript Confirm Pass return value to the Server on the runtime. Pin
Christian Graus10-Dec-08 9:13
protectorChristian Graus10-Dec-08 9:13 
GeneralRe: Asp.Net Server Page_Load Call Javascript Confirm Pass return value to the Server on the runtime. Pin
led mike10-Dec-08 10:13
led mike10-Dec-08 10:13 
GeneralRe: Asp.Net Server Page_Load Call Javascript Confirm Pass return value to the Server on the runtime. Pin
Christian Graus10-Dec-08 12:16
protectorChristian Graus10-Dec-08 12:16 
GeneralRe: Asp.Net Server Page_Load Call Javascript Confirm Pass return value to the Server on the runtime. Pin
led mike11-Dec-08 5:12
led mike11-Dec-08 5:12 
QuestionHelp with creating a link using a drop down list in a form Pin
TomLeogrande10-Dec-08 7:37
TomLeogrande10-Dec-08 7:37 
AnswerRe: Help with creating a link using a drop down list in a form Pin
Christian Graus10-Dec-08 9:16
protectorChristian Graus10-Dec-08 9:16 
GeneralRe: Help with creating a link using a drop down list in a form Pin
TomLeogrande10-Dec-08 9:26
TomLeogrande10-Dec-08 9:26 
GeneralRe: Help with creating a link using a drop down list in a form Pin
Christian Graus10-Dec-08 9:35
protectorChristian Graus10-Dec-08 9:35 
GeneralRe: Help with creating a link using a drop down list in a form Pin
TomLeogrande10-Dec-08 9:42
TomLeogrande10-Dec-08 9:42 
GeneralRe: Help with creating a link using a drop down list in a form Pin
Christian Graus10-Dec-08 9:47
protectorChristian Graus10-Dec-08 9:47 
GeneralRe: Help with creating a link using a drop down list in a form Pin
TomLeogrande10-Dec-08 9:50
TomLeogrande10-Dec-08 9:50 
GeneralRe: Help with creating a link using a drop down list in a form Pin
Christian Graus10-Dec-08 9:57
protectorChristian Graus10-Dec-08 9:57 
GeneralRe: Help with creating a link using a drop down list in a form Pin
TomLeogrande10-Dec-08 10:04
TomLeogrande10-Dec-08 10:04 
Questionhow to create a log file of soap request and soap response in web services?:confused: Pin
rohitnegi0910-Dec-08 7:15
rohitnegi0910-Dec-08 7:15 
QuestionDotNet 2.0 Aspx - after putting the files on production Server i am reciveing error: 40 - Could not open a connection to SQL Server Pin
royg3010-Dec-08 3:28
royg3010-Dec-08 3:28 
AnswerRe: DotNet 2.0 Aspx - after putting the files on production Server i am reciveing error: 40 - Could not open a connection to SQL Server Pin
Paddy Boyd10-Dec-08 4:18
Paddy Boyd10-Dec-08 4:18 
Questiondynamic value in asp control Pin
exbound10-Dec-08 2:02
exbound10-Dec-08 2:02 

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.