Jump to content

Javascript Alert In Asp.net App


Recommended Posts

Posted

javascript alert function works on second click but not in first click
what to do to pop up that alert in first click

CITI#H@

Posted

paste the sample code here .................. javascript kantey jquery chaala easy

$('.classname').on('click',function(){
alert("hi");
});

Posted

[quote name='Don Karnaje' timestamp='1379003662' post='1304239462']
paste the sample code here .................. javascript kantey jquery chaala easy

$('.classname').on('click',function(){
alert("hi");
});
[/quote]
antey ippudu click kosam jquery jars avi petti mari cheyamantunnava bhayya :3D_Smiles_38:

Posted

chrome ayithe ctr+shift+j nokkithe console vasthundi check cheyy

Posted

[quote name='Don Karnaje' timestamp='1379003662' post='1304239462']
paste the sample code here .................. javascript kantey jquery chaala easy

$('.classname').on('click',function(){
alert("hi");
});
[/quote]

btnDelete.Attributes.Add("onClick", "javascript:alert('my message here');");

upon delete button click i should show a pop meesage alert window

Posted

[quote name='kiran karthik' timestamp='1379005575' post='1304239681']
chrome ayithe ctr+shift+j nokkithe console vasthundi check cheyy
[/quote]

chrome kadu IE bhayya...

Posted

[quote name='Alexander' timestamp='1379004085' post='1304239493']
antey ippudu click kosam jquery jars avi petti mari cheyamantunnava bhayya :3D_Smiles_38:
[/quote]

.net la jars endi vay

Posted

[quote name='ShockWave' timestamp='1379006479' post='1304239802']
btnDelete.Attributes.Add("onClick", "javascript:alert('my message here');");

upon delete button click i should show a pop meesage alert window
[/quote]

something like this
<input type='button' value='delete' onclick='javascript:confirm('are u sure'))'/>

Posted

Private void messagebox ( string msg)
{
Label lbl = new label( [size=4]);[/size]
[size=4]lbl.text = "<script language = 'javascript'>" + Environment.Newline + "window.alert (" + Hello this is the msg + ") <script>";[/size]
[size=4]pagecontrol.ADDlbl();[/size]
[size=4]}[/size]

Posted

this should work [font=Consolas, Menlo, Monaco,]onclick[/font][font=Consolas, Menlo, Monaco,]=[/font][font=Consolas, Menlo, Monaco,]"[/font][font=Consolas, Menlo, Monaco,]return[/font][font=Consolas, Menlo, Monaco,] confirm[/font][font=Consolas, Menlo, Monaco,]([/font][font=Consolas, Menlo, Monaco,]'are you sure?'[/font][font=Consolas, Menlo, Monaco,])[/font][font=Consolas, Menlo, Monaco,]"[/font]

Posted

[quote name='Don Karnaje' timestamp='1379007802' post='1304240005']

something like this
<input type='button' value='delete' onclick='javascript:confirm('are u sure'))'/>
[/quote]
[quote name='littlemoon' timestamp='1379008151' post='1304240055']
Private void messagebox ( string msg)
{
Label lbl = new label( [size=4]);[/size]
[size=4]lbl.text = "<script language = 'javascript'>" + Environment.Newline + "window.alert (" + Hello this is the msg + ") <script>";[/size]
[size=4]pagecontrol.ADDlbl();[/size]
[size=4]}[/size]
[/quote]
[quote name='Don Karnaje' timestamp='1379008298' post='1304240084']
this should work [font=Consolas, Menlo, Monaco,]onclick[/font][font=Consolas, Menlo, Monaco,]=[/font][font=Consolas, Menlo, Monaco,]"[/font][font=Consolas, Menlo, Monaco,]return[/font][font=Consolas, Menlo, Monaco,] confirm[/font][font=Consolas, Menlo, Monaco,]([/font][font=Consolas, Menlo, Monaco,]'are you sure?'[/font][font=Consolas, Menlo, Monaco,])[/font][font=Consolas, Menlo, Monaco,]"[/font]
[/quote]


i have delete button
i have 2 logics
in if and else
condition
i have to show a pop up window in else case

Posted

[quote name='ShockWave' timestamp='1379008579' post='1304240116']
i have delete button
i have 2 logics
in if and else
condition
i have to show a pop up window in else case
[/quote]
<input type=button value="Delete" name="btnDelete" onclick="funDelete(0)">

in js
function funDelete(var val){
if(val==1){

}else{
alert("Your message");
}
}

×
×
  • Create New...