|
Here are the steps that you may do:
+ Create the handler for the client side events of the listbox control like onclick, onchange, see select element[^]. You can register the handler in the control declaration or in code with the Attributes collection of the control.
+ Use javascript to walk through the item collection using the the options[^] property to collect the selected items and determine the highest one.
You can also easily find lots of sample scripts out there to access the contests of the select element. Just out of curiousity why you don't just do that at the server side as it seems much easier.
|
|
|
|
|
Hi guys;
I have this problem with sql server 2000 and asp.net 2.0
Here is the problem:
I am trying to use the Roles.AddUserToRole(string username ,string Role).
Now the problem starts when the program gets to this place where it has to execute the addusertorole method. Im getting this error:
Error 446: cannot resolve collation conflict for equal to operation
I have read alot and searched the internet but I dont quit get what am I suppose to do.
Could you please help me to resolve this problem?
Thanks a million
Hadi
|
|
|
|
|
|
Hi minhpc_bk;
Thanks alot for your very usefull reply. Right on time.
By the way here is how i fixed the problem using the guid.
I replaced the line
DECLARE @tbNames table(Name nvarchar(256) NOT NULL PRIMARY KEY)
with
DECLARE @tbNames table(Name nvarchar(256) COLLATE Database_Default NOT NULL PRIMARY KEY)
Again Thank you very much
Riazi
|
|
|
|
|
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
|
|
|
|