|
<pre>
<asp:TemplateField ShowHeader="False">
<itemtemplate>
<asp:LinkButton id="linkBtnSurrender" runat="server" Text="Surrender" CommandName="Surrender" onclientclick="confirmation()" value = "Surrender" CommandArgument='<%#Eval("SOVehicle.SOVehicleId") %>' ></asp:LinkButton>
<%----%>
</itemtemplate>
</asp:TemplateField>
</pre>
Is it possible to popup in javascript everytime this link button is clicked to confirm surrender yes no?
I am using command argument to pass the id of vehicle to be surrendered. the javascript functions pops up but irrespective of yes no the vehicle gets surrendered.
|
|
|
|
|
Your code is not readable, please post it with proper format.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
<pre>
<asp:TemplateField ShowHeader="False">
<itemtemplate>
<asp:LinkButton id="linkBtnSurrender" runat="server" Text="Surrender" CommandName="Surrender" onclientclick="confirmation()" value = "Surrender" CommandArgument='<%#Eval("SOVehicle.SOVehicleId") %>' ></asp:LinkButton>
</itemtemplate>
</asp:TemplateField>
</pre>
Is it possible to popup in javascript everytime this link button is clicked to confirm surrender yes no?
I am using command argument to pass the id of vehicle to be surrendered. the javascript functions pops up but irrespective of yes no the vehicle gets surrendered.
|
|
|
|
|
I had created dynamic control using following code
TextBox txt = new TextBox();
txt.ID = ("txt1" + index);
txt.Text = "amit";
PlaceHolder1.Controls.Add(txt);
this.Page.Form.Controls.Add(PlaceHolder1);
This way i am able to add but facing proble to read the id of a control while reading
Thanks,
amitPatel
|
|
|
|
|
|
this sh*t error appears to me at the adapter.update(~) method
even i did the issue many times and it worked
what should i do !!
|
|
|
|
|
Hi All,
I am having web page containing table element in this table i am having 5-6 rows
based on some condition i am hiding and showing some of the rows using javascript,this functionality is working fine but the Tab order of controls get diturbed when some rows gets hide, Tab order is working fine when all rows are visible.
Can any one look into this issue?
|
|
|
|
|
hi how we create popmenu by html and javascript,plz help me????????
|
|
|
|
|
You can use Ajax, thats if your using asp.
|
|
|
|
|
I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............
|
|
|
|
|
|
use javascript...
SetInterval("enableBtn()", 1000);
function enableBtn()
{
var current = new Date();
var start = "1:00 PM";
var constant= new Date("1/1/2007 " + start);
diff = current - constant;
if (diff < 0)
{
var btn = document.getElementById("btn");
btn.disabled = false;
}
}
Hope this helps.
|
|
|
|
|
You are going to expect users to keep a webpage open for 24 hours at a time? YOu don't need any AJAX or JavaScript, just enable/disable the button when the page is rendered.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: You are going to expect users to keep a webpage open for 24 hours at a time?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
KhandelwalA wrote: I want to make a button which should be enable only once in 24hrs.
How u said 24 hrs?From users point of view?
I don't think that its a good idea.As Mark said a user can't keep a page open for 24 hrs.
|
|
|
|
|
Why would you do that?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i'm working on a layered arch. website
in the BLL the BLL classes can't see the table adapters of the XSD
why ????
also i can't import the dataset table adapters
and by the way the same code works perfectly on another computer !!!!!!!!!!!!!!!
help plz
|
|
|
|
|
You cant access the XSD.. Is it excluded?
EmZan wrote: the same code works perfectly on another computer
this is weird.
Check if something is missing..
|
|
|
|
|
Hi,
I want to translate user input to Marathi language and send it to Sql query to get the result.
Can anyone know how to build such translator?
I dont want to use google API as application will may work for offline.
The help is always appreciated...
|
|
|
|
|
In that case you need to make your own translator... Building translator means you need to take account of grammar as well, which means a bit of AI required.
The most possible way is the build a database. Just use Google API to get all the words in the dictionary of Marathi and store it, and place it whenever its required by the application.
|
|
|
|
|
How do i use update control to upload file and save it on the server.....and vice versa download......
multimedia files......
|
|
|
|
|
greendragons wrote: How do i use update control to upload file and save it on the server.....and vice versa download......
Did you search google to before post the question over here?
Here is the result
File Uploading using ASP.NET[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hy
I created Gridview dynamically runtime according to Arraylist Datatable
Now in this very Gridview I want Delete And Checkbox Control to be used .
How ot write code for this
plz Help me
|
|
|
|
|
AnupOmi wrote: I created Gridview dynamically runtime according to Arraylist Datatable
Why you want to do that?
|
|
|
|
|
hy i needed this in my program
i have dynamically created the gridview but not getting any idea how to write code for it as i donot know the name and number of gridview created
All these are created dynamicaaly and i have assign ID to it dynamicaly
.Can we Add code to a button at runtime as it can be created .So help me
|
|
|
|