|
Sir,
I am deleting the record in the datagrid but before deleting the row i want to send the request like 'are u sure u want to delete the record' .I mean i want two buttons Ok and cancel if ok is pressed it deletes the row otherwise row will not be deleted and for that i don't want to use another web form and want java script tools .Can i use these things in vb code behind file .
If possible please send some code.
Please help how to solve this problem.
Thanks
|
|
|
|
|
use javasciript code for confirmation.
|
|
|
|
|
Try adding this after the tag
function confirmDelete(e) {
var targ;
if (!e) var e = window.event;
targ = (e.target) ? e.target : e.srcElement;
if (targ.nodeType == 3) targ = targ.parentNode;
if (targ.id.toLowerCase().indexOf("delete") >= 0) {
return confirm("Are you sure you want to delete?");
}
}
document.onclick = confirmDelete;
<\script>
Please note the button you click to delete the item from the datagrid must be called delete as this function will check to see if the button you clicked has text value set to 'delete'
|
|
|
|
|
Yet other examples from the site[^].
|
|
|
|
|
How to create your own date and time object in asp.net/C#
without using inbuilt objects.Plese mail me if anyone found the solution on below address.
kapil_jain08@yahoo.co.in
manishgkumar@gmail.com
manish
Manish
|
|
|
|
|
Can you be more specific about you own date/time objects? What about the System.DateTime structure in the .Net framework?
|
|
|
|
|
|
DataBinder.Eval -------- Its a Expression
Container.DataItem --------- Its Basically ur container name like Datagrid or DataList.for them value is always Container.DataItem.
"SSN"----Its ur Field name.
Hope, this may help u.
thanx
|
|
|
|
|
|
Hello
any body can help me how to measure the Bandwidth usage for my site for a day?
need some suggestion ur side
thanx
|
|
|
|
|
|
Hello
thanx for ur reply,
can i integrate them in my asp.net application.
I have also one of the major problem..
Each module consist of ascx (asp/net user controls) & programming script and database script – modules can be any programming/database (PHP/mySQL or ASP/mySQL or ASP/Access or PHP/Access or Asp.net/MS SQL etc etc ) – every time a new module is added the super admin can specify the programming and or database.
How to upload ascx controls for backend administration and PHP User Modules with database script file.
plz help me solve this problem too.
i'm not getting any idea abt plz tell me.
thanx
|
|
|
|
|
Hi all,
I am creating the Templates for the Repeater Control Dynamically. I am following the below link,
http://msdn2.microsoft.com/en-us/library/0e39s2ck.aspx[^]
In this, i am using HTML tags to format each row of Repeater (ie Templates).Ok.
Here, this class is always generates the Row (Template) in same format, which is specified in the class.
My Aim :
Here, i wish to implement the Design ( HTML formatting) of Each Template & Controls in that Template from outside class.
Hence i can use the same Template (MyTemplate) class for Creating different varieties (style) of Templates for different Repeater Control without writing one Template class for each Repeater.
How to achieve this?
Regards,
Jay
|
|
|
|
|
Dino's article[^] may give you some hints.
|
|
|
|
|
Thank you a lot 'minhpc_bk'.
I am going through this aricle. I ll get back to you, incase of any clarification.
Regards,
Jay
|
|
|
|
|
Hi
I am using cookie to store unique encrypted token, i want to use the cookie expire time 8 hours.
I doing like below to expire:
Cookie.Expres = DateTime.Now.AddHours(8)
Its working in my local system as both are in same time zones. I got the problem when I deployed my application to Server, unfortunatley this server is in GMT time zone and my client is in GMT+5:30 time zone, So when i login to my ASP.NET application cookie expiration is taking I hour + some minutes more to expire. I can even see this in my cookie file expires attribute in my local machine.
How to set cookie expire property when server and client are in diffrent timezones.
Could anybody help me as it is become critical ?
Ram
|
|
|
|
|
You will have to get the users time with JavaScript and send that to the server and then calculate the cookie based on that.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Dear All,
I wish to implement the Expand / Collapse Operation on the Text. While it is in Collapse mode, only 3 lines of Text need to be displayed & on otherhand while it is in Expand mode, i wish to display the entire lines Text (eg 10 lines).
My Qn:
1 . Which Control is suitable to Display the Text in both Expanded / Collapsed mode?
2 . How to achieve this through JavaScript?
3. Also i need to display + image for Collapsed mode & - image for Expanded mode. While Clicking on Image, this operation has to be done. How?
I am expecting all your valuable suggestions.
Regards,
Jay
|
|
|
|
|
Hi there,
I don't know of any built-in control that supports what you want, but you can easily implement on your own with simple script. If you observe CodeProject carefully, you will see that you can learn the script, for example when you expand/collapse the message content, or when you see a long snippet of code like this one[^]. Now that what you might need to do to collect it is to view source the web page.
|
|
|
|
|
css file can set the property of gridview or not? or must use the skin file? thanks.
Best regards,
Chee ken
|
|
|
|
|
As per 'minhpc_bk's explaination previously, it works very fine.
method 1:
You can use the CSS file directly to set the Proerties of GridView. It is a direct method.
Int this, if u want a same formatting again for another GridViews,then u need to specify that CSS file's #id or .class ,etc. on each & every GridView.
method 2:
In this u need to create a Skin file. In that, you need to specify the CSS file's file's #id or .class ,etc. in your GridView control . Now where ever u may use the GridView, u can get the formatting without specifying anything.
Thats all it is!!
Regards,
Jay
|
|
|
|
|
any one can tell me how to send sms to cell phone from asp.net web application using c#.its very urgent plzzzzzzzzzzzzzzzzz help me
Pradeep Reddy
|
|
|
|
|
Let me help you, if you are relationated with XML Web Services, you can use this easy solution.
first.
goes to http://www.webservicex.net/WS/WSDetails.aspx?CATID=4&WSID=60
you will find the Send SMS World Web Service, this web service Send unlimited free SMS to a countries who support it.
Second.
add Web service Reference to your ASP.NET project
the address is http://www.webservicex.net/sendsmsworld.asmx
The name for the reference is in this example is ServerSms
third.
Use the code
try
{
string from = "Emitter E-mail";
string to = "Receiver Phone Number";
string countryCode = new String();
string message = "Hello World";
//Create a object from the ServerSms Class
ServerSms.SendSMSWorld engine = new ServerSms.SendSMSWorld();
engine.sendSMS(from, countryCode, to, message);
Estate.Text = "Your Message was send to " + to;
}
catch(Exception)
{
Estate.Text = "Send message Error"
}
Thanks & regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
ry
{
string from = "Emitter E-mail";
string to = "Receiver Phone Number";
string countryCode = new String();--->what does it mean
string message = "Hello World";
//Create a object from the ServerSms Class
ServerSms.SendSMSWorld engine = new ServerSms.SendSMSWorld();
engine.sendSMS(from, countryCode, to, message);
Estate.Text = "Your Message was send to " + to;
}
Pradeep Reddy
|
|
|
|
|
You simply have to pass the country code.
for eg:-
String countryCode="91" for india
Thanks & regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|