|
Hi
Date Time in any format.
Example:
System.Globalization.DateTimeFormatInfo DFI = new System.Globalization.DateTimeFormatInfo();
DFI.ShortDatePattern = "MM/dd/yyyy";
String StrDate = DateTime.Now.ToString("d", DFI);
Harini
|
|
|
|
|
I have created 2 forms then in first form I am creating object of second form
Then When Second form will be closed at that time i want to make changes in first
form then how can i do it?
I mean which events should be written?
Anita
|
|
|
|
|
you can use like this <body onunload="javascriptfunction()">
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Then this is the wrong place to post a message. Post it under C#
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
.NET 2003
We have a requirement to read an html file stored in a folder and display it in an aspx page. When printout is taken, we have need to have header and footer(dynamic) in all the printed pages. Will that be possible to manipulate browser's(IE/Firefox/Netscape) header and footer so that it appears on all the pages? Can this be achieved using Crystal Reports? Will that be possible to read HTML file and show its contents in Crystal Reports based on the URL passed as a parameter to Crystal Reports?
|
|
|
|
|
|
|
|
how to use response.form ? give me an example
|
|
|
|
|
|
Hi! just like Click event hadler for ASP.NET Button control: Button1_Click(object sender, EventArgs e) for single click, i want to develop Button1_DoubleClick(object sender, EventArgs e) event handler for double click for the ASP.NET Button Control. Can any one help me????
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
I'm not very sure why you need "DoubleClick" Event for button..
maybe.. you can try to do "HTTP POST" ondblclick of button.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
its my Team Lead's requirement. if you have any idea regarding this please prove me link
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
Hi all,
I have to apply css to file Upload control of ASP.NET 2.0.
I need apply css to textbox and the button.
Please tell me how to do this.
Thanks in advance.
|
|
|
|
|
>>I have to apply css to file Upload control of ASP.NET 2.0.I need apply css to textbox and the button.
it can't be done with a trick..
Trick #1. (IE)
1. Set display style of "input file" to "none"
2. Add one button.
3. Write javascript function ("fileId.click();") in button click.
[Note: it works only in IE.]
Trick #2. (Cross-browsers)
1. Set transparency of "input file" to 0
2. Place one button (btnFileBrowse) above the button of "input file" [Make sure the z-order of "input file" is higher than "btnFileBrowse"]
Please check this article.
Styling an input type="file"
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
Hi,
Can someone explain the following to me. If I set a value in my Business layer, I am able to access it from another page?
<br />
'Code behind page<br />
'Import the BLL layer<br />
Import MyApp.MyBLL<br />
<br />
'Method to Set the value<br />
MyBLL.SetPermission(1)<br />
'Method to Retrieve the value<br />
Dim intPermissionLevel = MyBLL.GetPermission()<br />
<br />
'Business layer<br />
<br />
'The value to be kept<br />
Public Shared intPermissionLevel As Integer<br />
<br />
'Go find the user Level<br />
Public Shared Function GetPermission() As Integer<br />
'Go find the user Level<br />
Return intPermissionLevel<br />
End Function<br />
<br />
'Go Set the user Level<br />
Public Shared Function SetPermission(ByVal intSetPermissionLevel As Integer) As Integer<br />
'Go Set the user Level<br />
intPermissionLevel = intSetPermissionLevel<br />
End Function<br />
<br />
I am able to get the value set in "intPermissionLevel", from another page. I set it in say page1.aspx, and then I can get the value again, from page2.aspx
Is this because the value is shared - and is this a good method? I do not quite understand this....
|
|
|
|
|
>>Is this because the value is shared
Ya.
>>is this a good method?
It depend on your system and what you wanna do with this member.
If you set the method/property as shared then you don't need to create an instance of object in every pages. so, it has less memory allocation. but you hav to take care of concurrency issue. (what if multiple users are accessing your page at the same time.)
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
I am getting an error 'No default printer' when I tried to print a report.
Some articles suggested to set the Username as system in processModel in machine.config. I did the same but no improvement, getting the same error.
Any one help me out here.
Thanks.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Are you able to print something manually from your machine? Eg: type something in notepad. And Click "Print".
For me, there is nothing required to update in machine.config.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
Its working if I print from notepad and all. Its not working only for crystal report printing.I am using network printer as my default printer.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
>>I am using network printer as my default printer.
ya.i'm using network printer only .. it's working fine for me.
i think, ASP.NET doesn't have a permission to access this printer. so, you should try to impersonate with your user id.
IIS,
- Go To-> IIS -> Properties -> Directory Security ->
- Uncheck "Anonymous access"
And,
In Web.Config,
<identity impersonate="true"/>
<authorization>
<deny users="?"/>
<allow users="*" />
</authorization>
Hope, it would help.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
Thanks for valuable feedback. But I have to give access to Anonymous users
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi Friends
I use SFR sensor in my web application using asp.net with c#.
When I click on button to initialize SFR I got Error.
bool returnvalue = sfr.Initialize();
Error is:- A call to PInvoke function 'Suprema!Suprema.SFR300::SF_SetSensitivity' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Plz give me right solution
Thanks in advance
Pathan
|
|
|
|
|
no idea what SFR is. sorry.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
SFR is a fingerprint scanner.
Pathan
|
|
|
|