|
Hi All
i want to change alert title in javascript.
i serach google but it is not possible to customize the alert.
so is their any way to display customize message (simillar to alert).
Regards
Keyur Satyadev
|
|
|
|
|
|
i want to implement it client side.
in your first link its not showing proper in mozila. i am trying it to customized it.
thanks for reply
Regards
Keyur Satyadev
|
|
|
|
|
Are you saying that you have created the alert box but it isn't showing properly in Mozilla? If so then you need to give more specific details on what is not displaying properly (with maybe a screenshot), and also provide the code you are using.
EDIT: Whoever marked my answer as a bad answer could you please provide some feedback as to why. I was trying to be helpful, but if you think that my answer was not helpful then you should have the decency to say why you think this.
modified on Wednesday, August 19, 2009 8:01 AM
|
|
|
|
|
It was almost certainly the OP who voted you down. You didnt hand him the exact answer, along with documentation and source code so therefore they vote you down. Par for the course round here im afraid. Don't worry though - votes mean almost nothing.
|
|
|
|
|
yeah sure, but still is a bit annoying when people don't seem to appreciate the time you spend trying to help them. All I was asking for was some feedback as to why my answer wasn't acceptable. Courtesy doesn't cost anything!
Thanks for the reply anyway
|
|
|
|
|
i try to done this. but in alert box the ok button show in left side. but its working in fine in firefox. what i ll do?
Regard
Prabhakaran.
|
|
|
|
|
please can you put the code as its not working in in my firefox.
thanks
Regards
Keyur Satyadev
|
|
|
|
|
Hi, I have created a report in SSRS where I used a dropdown for category and when I select a category then it show all the products of that category. When I run this through the http://localhost/reports/myreport then work properly and also show the dropdown to selecte the category. However, when I use this report in my asp.net application through the ReportViewer then it does show the category dropdown. Would any one let me know how can i get this category dropdown ?
Pankaj
|
|
|
|
|
hiii
why this error comes while using animation extender:
Error Creating Control - Panel4_AnimationExtender'cc1:AnimationExtender' could not be set on property 'Animations'.
|
|
|
|
|
I have a grid view which can have any number of records.
I have a text box to search for card numbers.
I highlight the rows with matching card numbers in RowDataBound event.
Now i want to bring the Highlighted rows to top. I do not want to remove all other records. I want to show all records and want to bring highlighted records to top.
I urgently need the solution for this query. Any help will be appreciated.
Thanks in Advance!
Inderjeet Kaur
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
could be possible
by changing sql query
like
select * from table1 where column =searchcondition
union all
select * from table1 where column<> searchcondition..
try it.. in sql first..
|
|
|
|
|
Hey Thanks Alot! It worked. I actually implemented the same thing in my code behind. Tahnks ALot!
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
ur welcome...
Gurinder Singh
|
|
|
|
|
do u have session expiry knowledge...
i struct in same question of aman saroya.. (3-4 post below ur..)
|
|
|
|
|
Hi
Its workign fine if i have to search for 1 field, If i have to search for
2 fields it fails. How can i handle it...
Suppose, user enter a card number and wrong name corresponding to those card numbers. If use AND operator in my query, it will still return records.
My gridview is using template, for null records.
If the user is making wrong query, i want no records to returned...
Can you help me with this.
Inderjeet Kaur
Sr. Software Engg
modified on Thursday, August 20, 2009 1:10 AM
|
|
|
|
|
Will anyone help me out from this basic doubt? Why there are two types of controls? I got the way of coding with html controls:- n all while using html controls but why why why...if we are having standard controls.....when u double click them u r directly on aspx.cs page for coding then when to go for html and when for standard controls?
|
|
|
|
|
Here is what MSDN says about HTML controls.
By default, HTML elements within an ASP.NET file are treated as literal text and are programmatically inaccessible to page developers. To make these elements programmatically accessible, you can indicate that an HTML element should be parsed and treated as a server control by adding a runat="server" attribute.
Rohit Kulkarni wrote: if we are having standard controls.....when u double click them u r directly on aspx.cs page for coding then when to go for html and when for standard controls?
Use ASP.NET server controls always possible. Use the HTML controls with runat=server when it is absolutely necessary.
When ASP.NET server controls are used, you have very less control over how it is rendered. On the other hand, HTML controls marked with runat=server is just a mapping to the equivalent control class. For example, <input id="someid" type="text" runat="server" /> maps directly to HtmlInputText control. Designers tend to use this type because they know exactly how it is rendered.
Though I haven't used, it looks like the introduction of CSS control adapter[^] will help to control the rendering.
|
|
|
|
|
I want to check a datetime value saved in db...and only accept those values which are just lagging 5 seconds with current datetime value....i tried with compare and subtract but not getting the point....
<code>
string dt = DateTime.Now.ToShortDateString(); \\current datetime value.
DateTime dt1 = Convert.ToDateTime(dt);
string dtime = dr1[0].ToString(); \\datetime value from database.
DateTime ddt = new DateTime();
ddt = Convert.ToDateTime(dtime);
</code>
in my next step i want to check whether ddt value lags 5 or less seconds than dt1(which is current datetime value of system) then save those values to an string array.....
|
|
|
|
|
Use Subtract method in the DateTime class.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
i did but im not quite sure with timespan values that im getting....
what i did
timespan ts = dt1subtract[ddt];
now after this how to put condition of 5sec on timespan value....
|
|
|
|
|
Perhaps if you had any idea what you were doing, you'd put a . after the timespan and notice that amongst it's properties is one that gives you the time in seconds.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Im not getting it...can u please write code for timespan value for subtracting 5...
|
|
|
|
|
try this..
DateTime dt1 = database_date;
DateTime dt2 = DateTime.Now;
TimeSpan t2 = dt1 - dt2;
if((t2.Seconds)<=0)//according to ur condition...
{}
thnx & regards,
Gurinder Singh
Web Developer
|
|
|
|
|
i read the previous posts about session expiration.
However i m not able to get or understand solution about my problem.
scenario is :
I have a web application of enter purchase bill.
and some search lists and validations are also there in the form.
now when end user is trying to enter 10-15 items in the forms
session expiration error is occured.
or "object reference not set to an instance of object " ( as i use session variable like cart system to update grid with datatable).
Now i want that either session should not expire for long period of time
or
if session expired then if same user login again and open the same form again it will automatically asked for copy session expired items.. somethng like that....( bt the problem is sessionid will b change next time.. and database is required for this.. )
looking forward for quick reply..
|
|
|
|