|
if (confirm("Are you sure you want to delete the custom search?")==true)
return true;
else
return false;
The miracle is this--the more we share, the more we have.
|
|
|
|
|
I am new for this JavaScript code...
I am writing code in .CS file...
There I want to compare MessageBox Value...
string _scriptCloseDialog = "<script>confirm('Are you sure you want to delete?');</script>";
ClientScript.RegisterStartupScript(GetType(), "_load", _scriptCloseDialog);
can i compare this line of code?
ClientScript.RegisterStartupScript(GetType(), "_load", _scriptCloseDialog);
Please advise..
|
|
|
|
|
Hai,
i used an file upload and image button in my aspx page, i give two image paths for save and update(\images\save.gif and \images\update.gif) , i want the checkin in javascript path of image button is \images\save.gif then one alert otherwise another? how please help me?(asp.net,c#),first i used the button for save and update,at that time in javasript i used the code is
if(document.getelementbyid("ct100..._btnave").value=0)
{
if(document.getelementbyid("ct100..._fileimage").value.length==0)
{
alert("icon field cant be empty")
}
}
at that time,working is correct after that i changed button to image button? text property is not in image button,but i ysed two image url for save and update?how to writ this code image button instead of button?
modified on Thursday, March 5, 2009 10:50 PM
|
|
|
|
|
Please post your Question very clearly.
R.Palanivel 10:01 4 Jan '06
|
|
|
|
|
file upload control show no file when using in update panal otherwise it working fine.
|
|
|
|
|
|
i got yhe solution . we jusr have to add trrigers on button on which we r saving the data of file upload control.this will also help.
http://geekswithblogs.net/ranganh/archive/2008/04/01/file-upload-in-updatepanel-asp.net-ajax.aspx
|
|
|
|
|
I have a problem like this I make HtmlInputButtons in function and I add there EventHandlers for them. However when I do serverclick function does't work. I know that handlers should be in Page_Load but these buttons must be added in function.
example code:
Page_Load()
{
bt+=EvantHandler(bt_Click);
}
public void bt_Click(object sender,EventArgs e)
{
for(int i=0;i<5;i++)
{
HtmlInputButton ib=new HtmlInputButton();
ib.ID="bt"+i;
it.serverClick+=EventHandler(it_Click);
}
}
public void ib_Click(object sender,EventArgs e)
{
}
If anybody know how do it??
|
|
|
|
|
use button class instead of HtmlInputButton(). It is always good use Asp button when you use server side codes.
The miracle is this--the more we share, the more we have.
|
|
|
|
|
I would like to know the use of the repeater? and where it should be used.
|
|
|
|
|
MSDN[^] says,
Repeater is a data-bound list control that allows custom layout by repeating a specified template for each item displayed in the list.
It is clear, isn't it?
|
|
|
|
|
repeater repeats the html that you provide inside it. You can evaluate the data from inside the repeater to get the current data objects.
For further enquery read:
Use of Repeater[^]
|
|
|
|
|
I have two dropdown in my form called Project and Company. First dropdown will list the projects and on the basis of projectid, company dropdown is filled.
Inorder to avoid going back to database again, I have framed an sql query in such a way that it will give the projectid, projectname, companyid and company name in one shot. By default, the first projectid will get selected. Now how will I populate the company dropdown with this projectid without using another query? The data is already fetched. How should I store and retrieve the data so that I can use it again?
Any idea of this? Hope you have cleared my question. Please help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
What is the use of Auto post back? Can anyone explain?
|
|
|
|
|
Karthick_gc wrote: What is the use of Auto post back? Can anyone explain?
Yes. Check Here[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Well! auto post back causes the page to be posted back to the server after an event has occurred. For E.g For a drop down if the page has to be posted back if an option has been selected then we can use AutoPostBack = true for that control. Using this property we need not write the _doPostBack() method in Javascript.( actually .NET inserts this method when we use AutoPostBack = true.)
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
Hi
I am trying to use Message Box on click of a button which is inside update panel, but I am not getting the alert message while I am trigger - postback on click of that button(I have tried async postback also i.e. not working also). I want to know, will it work inside update panel or not. Please guide me if I am wrong.
Thanks.
matju
Pengaturcara Perisian
Subang Jaya,Selangor, Malaysia
Ring Master SB MVP 2008
Subang Jaya MOP (Otai)
|
|
|
|
|
Hi,
I am in VS 2005, asp.net with C#. I show my crystal report in my web page. I can show my crystal report well in my local machine. But in my server, it is not working properly. Reports options such as Export, Print, Next page, previous page, etc, these toolbox images are not displaying.
My report is working fine in my machine by executing the application and deploying the setup both.
While creating the setup, I've included .Net Framework 2.0, Crystal Report for .Net fw 2.0 and VS 2005 report viewer in the prerequisites. Anybody can help me to show the images properly. Thanks in adv.
Balasubramanian K.
modified on Thursday, March 5, 2009 5:43 AM
|
|
|
|
|
check the aspnet_client folder. Place it in the project root folder.
The miracle is this--the more we share, the more we have.
|
|
|
|
|
In the Default.aspx.vb is have following coding:
Protected Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GridView1.RowDeleting
MessageBox.Show("Do You want to Delete the Row..?", "Row Deleting", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly, False)
If vbNo = MsgBoxResult.No Then
e.Cancel = True
End If
End Sub
But the response of message box is not coming on client machine, it is sending the response to server machine. How to get the respose on the client machine not at server machine.
Thanks & Regards
Girish Sharma
|
|
|
|
|
Girish481 wrote: MessageBox.Show("Do You want to Delete the Row..?", "Row Deleting", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly, False)
How can you use MessageBox.Show in ASP.NET, it belong to windows App.
Try using confirm of JavaScript
|
|
|
|
|
But it is working fine; the only thing is that it is sending response to server machine. Ok, please tell me how to code confirm of javascript in this case when a user is clicking on delete link of GridView1 control.
Thanks and Regards
Girish Sharma
|
|
|
|
|
Girish481 wrote: But it is working fine;
You are running your application from VS IDE. Try to host on IIS, access from browser and from different system
As amandeep already suggested, you have to use JavaScript Confirm Box.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Thanks Abhijit for your response. Actually before this i was running my web application on server itself; but yesterday when i run from another machine; i got that messagebox's response was not at client side; it was as server machine, so i supposed that there should be extra code for messagebox or javascript confirm box. So please tell me, where and what should i code to get confirm box when user click on delete link of GridView1 control.
Regards
Girish Sharma
|
|
|
|
|
Try to use This[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|