Click here to Skip to main content
16,008,010 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question3 Tier Architecture? Pin
S.Aijaz3-Jun-08 20:27
S.Aijaz3-Jun-08 20:27 
AnswerRe: 3 Tier Architecture? Pin
rahul.net113-Jun-08 21:19
rahul.net113-Jun-08 21:19 
Questionopen new window from server side on button click Pin
For_IT3-Jun-08 20:02
For_IT3-Jun-08 20:02 
AnswerRe: open new window from server side on button click Pin
Vasudevan Deepak Kumar3-Jun-08 20:13
Vasudevan Deepak Kumar3-Jun-08 20:13 
QuestionQUESTION Pin
nithydurai3-Jun-08 19:55
nithydurai3-Jun-08 19:55 
AnswerRe: QUESTION Pin
Vasudevan Deepak Kumar3-Jun-08 19:58
Vasudevan Deepak Kumar3-Jun-08 19:58 
AnswerRe: QUESTION Pin
eyeseetee3-Jun-08 21:43
eyeseetee3-Jun-08 21:43 
Questionjavascript prompt box Pin
rahul.net113-Jun-08 19:34
rahul.net113-Jun-08 19:34 
Hello all,
In my application i am using javascript prompt box and taking input from user.
If user entered value and click on ok then i am performing some db operation.
I need prompt box should be a required field user must entered a value in that if he did not entered the value and click on ok then am displaying alert box and which tell user that this is required field. The actual problem is that if user click on cancel button it postback the page and displays alert box. I need if user click on cancel i dont want to show alert box. How can i do this. My code is as follow.
<br />
function disp_prompt()<br />
{<br />
//var today=new Date(); <br />
//vat testname=today.getDate();<br />
var name=prompt("Please enter assessment name","Assmssent01");<br />
if (name!=null && name!="")<br />
  {<br />
  document.Form1['sname'].value = name;<br />
  }<br />
   <br />
}<br />
<br />
and on page behind<br />
<br />
on page load<br />
<br />
 lnkSave.Attributes.Add("Onclick", "javascript:disp_prompt();")<br />
<br />
and on link button cilck<br />
<br />
 Dim name As String = "test"<br />
        name = Request.Form("sname")<br />
        If name = "" Then<br />
            Dim strMessage As String = "Assessment name is required."<br />
            Dim strScript As String = "<script language="JavaScript">"<br />
            strScript += "alert(""" & strMessage & """);"<br />
            strScript += "</script>"<br />
            Response.Write(strScript)<br />
            Exit Sub<br />
        Else<br />
           db operation here.<br />
        End If<br />
<br />
please tell me how can i solve the problem.<br />


People Laugh on me Because i am Different but i Laugh on them
Because they all are same.

AnswerRe: javascript prompt box Pin
Vasudevan Deepak Kumar3-Jun-08 19:58
Vasudevan Deepak Kumar3-Jun-08 19:58 
QuestionRe: javascript prompt box Pin
rahul.net113-Jun-08 20:01
rahul.net113-Jun-08 20:01 
AnswerRe: javascript prompt box Pin
Guffa3-Jun-08 20:28
Guffa3-Jun-08 20:28 
GeneralRe: javascript prompt box Pin
rahul.net113-Jun-08 20:37
rahul.net113-Jun-08 20:37 
Questionhow i can update web application on client hosting server Pin
wasimsharp3-Jun-08 19:29
wasimsharp3-Jun-08 19:29 
AnswerRe: how i can update web application on client hosting server Pin
Vasudevan Deepak Kumar3-Jun-08 20:00
Vasudevan Deepak Kumar3-Jun-08 20:00 
GeneralRe: how i can update web application on client hosting server Pin
wasimsharp3-Jun-08 20:18
wasimsharp3-Jun-08 20:18 
GeneralRe: how i can update web application on client hosting server Pin
Vasudevan Deepak Kumar3-Jun-08 20:21
Vasudevan Deepak Kumar3-Jun-08 20:21 
General[Message Deleted] Pin
wasimsharp3-Jun-08 20:27
wasimsharp3-Jun-08 20:27 
GeneralRe: how i can update web application on client hosting server Pin
Vasudevan Deepak Kumar3-Jun-08 20:32
Vasudevan Deepak Kumar3-Jun-08 20:32 
GeneralRe: how i can update web application on client hosting server Pin
eyeseetee3-Jun-08 21:42
eyeseetee3-Jun-08 21:42 
GeneralRe: how i can update web application on client hosting server Pin
wasimsharp4-Jun-08 0:52
wasimsharp4-Jun-08 0:52 
QuestionHow can I get the HTML of a ASP control before rendering? Pin
Venkatesh Mookkan3-Jun-08 18:31
Venkatesh Mookkan3-Jun-08 18:31 
AnswerRe: How can I get the HTML of a ASP control before rendering? Pin
RajeevKumarSharma3-Jun-08 18:47
RajeevKumarSharma3-Jun-08 18:47 
GeneralRe: How can I get the HTML of a ASP control before rendering? Pin
Venkatesh Mookkan3-Jun-08 19:14
Venkatesh Mookkan3-Jun-08 19:14 
GeneralRe: How can I get the HTML of a ASP control before rendering? Pin
eyeseetee3-Jun-08 21:40
eyeseetee3-Jun-08 21:40 
QuestionPassing of data from one form to another Pin
Nicole_H3-Jun-08 11:39
Nicole_H3-Jun-08 11:39 

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.