Click here to Skip to main content
15,900,725 members
Home / Discussions / Web Development
   

Web Development

 
QuestionCross window scripting Pin
soleil_m3-Apr-06 13:06
soleil_m3-Apr-06 13:06 
AnswerRe: Cross window scripting Pin
CWIZO3-Apr-06 22:19
CWIZO3-Apr-06 22:19 
QuestionLooking for CMS Pin
xoxoxoxoxoxox3-Apr-06 9:58
xoxoxoxoxoxox3-Apr-06 9:58 
AnswerRe: Looking for CMS Pin
Michael P Butler3-Apr-06 10:34
Michael P Butler3-Apr-06 10:34 
AnswerRe: Looking for CMS Pin
CWIZO3-Apr-06 22:20
CWIZO3-Apr-06 22:20 
Questionusing javascript confirmation box in gridview asp.net Pin
sandeep kumar pundhir3-Apr-06 6:14
sandeep kumar pundhir3-Apr-06 6:14 
GeneralRe: using javascript confirmation box in gridview asp.net Pin
Guffa3-Apr-06 7:59
Guffa3-Apr-06 7:59 
AnswerRe: using javascript confirmation box in gridview asp.net Pin
rizwan.afsar4-Apr-06 1:53
rizwan.afsar4-Apr-06 1:53 
These are the steps you need to follow

Step1:In your form example(form1.aspx.cs)put this code remember it soould be protected void

protected void Imagebutton10_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{

this.Page.RegisterStartupScript("SetConfirm", "window.Form1['DisplayConfirm'].value=true;");
this.Page.RegisterStartupScript("SetConfirm", "window.Form1['DisplayConfirm'].value=false;");
ImageButton Imagebutton=(ImageButton)sender;
DataGridItem dgi=(DataGridItem)Imagebutton.Parent.Parent;
ViewState["BookMarkID"]=this.dg_SearchCondition.Items[dgi.DataSetIndex].Cells[5].Text;
}

Step2:In HTML of your page Paste this code

<itemtemplate>

<asp:imagebutton id="Imagebutton10" <b="">onclick="Imagebutton10_Click" runat="server" ImageUrl="image\delete.bmp">


Step3: Declear a java script function in your HTML

function displayMessage()
{
if(window.Form1["DisplayConfirm"].value==true || window.Form1["DisplayConfirm"].value=="true")
{
if(confirm(" Do you want to delete?")==true)
{
window.Form1["Button3"].click();
}
}

Step4: Call this function on form body load

onload="displayMessage();"
step5:Take a button named "Button3" on ur page make it small so that it sould not be visible on page load.

step6:Take HTML Hidden text box with name example on your page






Rizwan Afsar
Associate Member, Technical Team
IAP Company Ltd, Gurgaon


-- modified at 7:59 Tuesday 4th April, 2006
QuestionReading a Cookie which is created by another server Pin
nagarajuepuri3-Apr-06 2:24
nagarajuepuri3-Apr-06 2:24 
AnswerRe: Reading a Cookie which is created by another server Pin
CWIZO3-Apr-06 4:05
CWIZO3-Apr-06 4:05 
AnswerRe: Reading a Cookie which is created by another server Pin
Vasudevan Deepak Kumar4-Apr-06 3:19
Vasudevan Deepak Kumar4-Apr-06 3:19 
QuestionHow can i expire previous pages after logout.. Pin
Jax_qqq3-Apr-06 2:08
Jax_qqq3-Apr-06 2:08 
AnswerRe: How can i expire previous pages after logout.. Pin
Sushant_Mathur3-Apr-06 22:05
Sushant_Mathur3-Apr-06 22:05 
GeneralRe: How can i expire previous pages after logout.. Pin
Jax_qqq3-Apr-06 22:26
Jax_qqq3-Apr-06 22:26 
Questionsha1 in 'C' for windows O.S Pin
lokesh_the_best3-Apr-06 1:13
lokesh_the_best3-Apr-06 1:13 
QuestionASP Page not loading Pin
Harsha kamat3-Apr-06 0:26
Harsha kamat3-Apr-06 0:26 
GeneralRe: ASP Page not loading Pin
Guffa3-Apr-06 8:02
Guffa3-Apr-06 8:02 
GeneralRe: ASP Page not loading Pin
Harsha kamat3-Apr-06 18:04
Harsha kamat3-Apr-06 18:04 
GeneralRe: ASP Page not loading Pin
Sushant_Mathur3-Apr-06 22:08
Sushant_Mathur3-Apr-06 22:08 
QuestionHow to retieve share point data from a windows application (c#) Pin
K ANvar sadath2-Apr-06 20:54
K ANvar sadath2-Apr-06 20:54 
GeneralRe: How to retieve share point data from a windows application (c#) Pin
Guffa2-Apr-06 22:30
Guffa2-Apr-06 22:30 
QuestionHOW TO REPLACE '<' with any other character in Javascript Pin
baskar.G2-Apr-06 19:28
baskar.G2-Apr-06 19:28 
AnswerRe: HOW TO REPLACE '&lt;' with any other character in Javascript Pin
Guffa2-Apr-06 20:38
Guffa2-Apr-06 20:38 
QuestionAnimated div textbox? Pin
cdmlb@hotmail.com2-Apr-06 15:30
cdmlb@hotmail.com2-Apr-06 15:30 
AnswerRe: Animated div textbox? Pin
cdmlb@hotmail.com3-Apr-06 15:32
cdmlb@hotmail.com3-Apr-06 15:32 

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.