|
select getdate() in Sql
sabarimd
|
|
|
|
|
If you want to get date/time at the SQL Server GetDate() function can be used.
But a Server can not (easily) give you date time of the client, you should use Javascript to get the date /time at the client and pass it to the server to store.
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.
|
|
|
|
|
|
Respected All
I am removing empty span tags from html string. The following code work fine for simple span tags.
private string removeEmptyHTML(string html)
{
if (String.IsNullOrEmpty(html))
return "";
else
return System.Text.RegularExpressions.Regex.Replace(html, (<span >( |\\s)*</span>)",String.Empty);
}
Problem is this it only replace span tags like
and
It does not replace the span tags like
What changes I have to make to get this result.
I am waiting your reply please.
|
|
|
|
|
Member 3374813 wrote: It does not replace the span tags like
like what?
Am I missing something?
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
<
<asp:Calendar ID ="calender1" BackColor ="#D7E7F6" TitleStyle-Font-Bold ="true" runat = "server" OnSelectionChanged ="Calendar1_SelectionChanged" Height ="83%" OnVisibleMonthChanged="calendar1_VisibleMonthChanged" ShowGridLines ="false" Width ="275px"
TitleStyle-BackColor ="lightgray" OnDayRender="calender1_DayRender" NextPrevFormat="ShortMonth" NextPrevStyle-Font-Underline ="true" SelectedDayStyle-Font-Bold ="true">
</asp:Calendar>
>
I am using above code for my calender control but in calender i want to display today date option so while user navigate to other month he can select today date.
Thanks ,
Amit Patel
|
|
|
|
|
I dont think there is any todays date optin so that you can navigate to todays date while navigating to other dates.
One thing you can do ,you can put some button/imagebutton on click you can seelect the todays date in the calendar.
|
|
|
|
|
Hi,
while clicking menu item i will load iframe with xyz.com during progress of iframe i will show loading image. when completes i will hide progress div ,to achieve i followed below code. it works fine IE but not FIREFOX. can anybody let u know wht wrong
function iframe_onload()
{
var theWaitCell = document.getElementById('Wait1');
theWaitCell.style.visibility = "hidden";
}
< img alt="Loading" title="Loading" src="App_Themes/images/loading_wh.gif" />
in code behind aspx.cs below line
if(!ispostback)
{
this.ContentFrame.Attributes.Add("onload", "iframe_onload();");
}
ContentFrame is Iframe ID
|
|
|
|
|
Did you check the viewsource on firefox?
|
|
|
|
|
HI,
I am facing one problem,Ia m using Ajax Tab Container,I used validation controls for validations for controls in Tab control .The problem is I set autopostback property to True fot Tabindexedchanged event,the validations are not working in Mozilla There are working in IE 6.O. Why?
can any one reply for this.
With Regards,
Uday
|
|
|
|
|
Hello,
I have Create a Activexcontrol through Classlibray Project .and i have used another dll in ClassLibrary Project.
when we call this Activexcontrol in Html Page using JavaScripte then its Throw Error "Automation Server Can't Create Object"
my code is in Javscript as follows:-
function comEventOccured()
{
<script type='text/javascript' language='javascript'>
function comEventOccured()
{
var x = new ActiveXObject("ClassLibrary1.Class1");
x.process1("FEDC-8011-0002-8469-5831","C:\\Program Files\\ABBYY FineReader Engine 8.1\\Bin\\FREngine.dll","C:\\Documents and Settings\\Administrator\\Desktop\\new_template\\sankar.frm","C:\\Documents and Settings\\Administrator\\Desktop\\TestSankar","TIF","C:\\Output");
alert();
}
I have passed the path in parameter Because i have passed 6 value in parameter in function...
So Please Give Idea ..Why its throw message
Thanks & Regards
Raushan
|
|
|
|
|
You need to change your browser settings to allow ActiveX controls.
|
|
|
|
|
How to change my browser setting....?
|
|
|
|
|
Tools > Options > Security TAB > Custom Level.
Note : ActiveX will work only on IE.
|
|
|
|
|
Thanks for reply,
I have change the custom Level but again throwing same message Error"automation Server can't create object.
|
|
|
|
|
Please go throygh the Link
Hope it will help you
|
|
|
|
|
Same Message are throwing, actually i have called another dll in my Classlibrary class.
|
|
|
|
|
i think u change the custom levl settings of Internet .Change custom security settings of Local Intranet.
sabarimd
|
|
|
|
|
i have change custom level.. but sme message throw.. please give me information which part will i have to change
|
|
|
|
|
Thanks,
but i have changed Local intranet custom level.. and again throw same message,
Please suggest me what will i do...?
|
|
|
|
|
Thanks,
but i have changed Local intranet custom level.. and again throw same message,
Please suggest me what will i do...?
|
|
|
|
|
InertnetOptions -> Security -> LocalIntranet -> Customsettings ->
Enable
Initializeand script ActiveX controls ...
Run ActiveX controls and ...
By enabling these two will run activex controls on your page
sabarimd
|
|
|
|
|
is there possibility to add a horizontle scroll bar in grid view?
|
|
|
|
|
haleemasher wrote: is there possibility to add a horizontle scroll bar in grid view?
Yes. You can do it easily by just putting the gridview inside a DIV . Fixed the height of DIV .
Check Here is one of my article, hope this will also help you
modified on Tuesday, July 14, 2009 1:51 AM
|
|
|
|
|
the link u have given is not there
|
|
|
|