|
Thanks.
I got solution by adding this.
<asp:BoundField DataField=dREGDATE DataFormatString="{0:dd-MM-yy}" HeaderText="Reg. Date" HtmlEncode="False" />
Without giving HtmlEncode="False", date format is not working.
Wow !!
|
|
|
|
|
I lately had a virus attack (W32.Fujacks to be exact). I have taken measures to stop the virus and I am confident that the virus is gone. It so happens that most of my settings were changed by the virus. I run Windows 2003. Here is my problem:
When I open Internet Explorer 7 on my computer and try to browse a particular Website hosted on my computer, the an error page opens with Encoding set to Chinese instead of Unicode(UTF-8) The site is an ASP.NET site. Other Websites on my computer opens okay.
If I browse the same site from another computer on the network still having IE7 it opens just okay.
Just to clarify what I have done to stop the virus on my computer:
- I updated my Symantec and scanned my computer three times and symantec reported discovering the viruses and removing them successfully.
- Removed any files Symantec had quarantined in safe mode and clearing the Recycle bin.
- Removed the autorun.inf files that the virus had copied to the system drives.
- Run Windows Defender to scan for malware and spyware.
- Used CCleaner to clean my registry.
- Used Sbybot Search and Destroy 1.4 to clean remove any remaining malware and clean registry.
- Updated my Internet Explorer to IE7 (was previously using IE6)
- Copied iereset.inf from uninfected computer to my computer to reset my Internet Explorer
- Used Sfc /Scanonce to file-check all protected files on my computer.
That notwithstanding, I believe the virus might have changed some settings on my computer before I could stop it because I am not able to change some settings in normal startup mode but I can change them in safe mode: For instance; Every time I set Folder Options to Show hidden files and folders, the system resets itself to the contrary, I cannot edit registry (I am the Administrator on my computer)
Another thing I noted is that the Windows XP operating systems in our network that were infected came off smoothly after scanning and removing the viruses.
This may not be the best forum to ask for this kind of assistance but I dont know where else I can get a quick response. Please help if you can.
-- modified at 3:30 Tuesday 16th January, 2007
Another thing I just discovered is that the encoding problem exists only as long as I use 'localhost' on the url. If I use my computer's IP I can browse the site just fine. Could the web browser be sending the web request using the incorrect encoding?
|
|
|
|
|
Hi, All
Who have experience with used gcServer on .NET 2.0. Please share experience.
|
|
|
|
|
How to give an expression for a textbox which allows pincode with not to exceed 6 digits,Give me asnwer
thanks in advance
kissy
|
|
|
|
|
\d{0,6}
---
Year happy = new Year(2007);
|
|
|
|
|
Have you tried MaxLength?
|
|
|
|
|
Hi,
Is there a way you can detect if a user has logged in with his username/password on a local LAN network? Also, is there some event handler that can run, if this is true, once the user opens my web app? Do I need to do that functionality in the 'page_load' handler?
|
|
|
|
|
|
Hi,
I made a .net assembly which in which I put an activeX control called DSOFramer. I have converted this in a windows control library and compiled it and installed it in GAC.
This library contains the code to display and edit the office documents similar to DSOFramer control. This same code when tried with DSO Framer and windows application it is displaying the documents. After this,
I tried to put this control on a web form, by using
/* <object id="DSO1" classid="
"DSOControl1.dll#DSOControl1.FramerControl""
width="800" height="300" style="font-size:12;">
<param name="FileUploadURL"
="" value="http://localhost/ServerFileUpload/UploadFile.aspx" />
<param name="MaxSessionUpload"
value="10646" />
*/ tag as above.
But here its not displaying any word or excel file. Could anybody please tell me whats wrong with this and how should I achieve my target. Please tell me if you know. Please.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
i'm doing small web application C#,and there have some reports for each an application.i need to put computer ip address for corner of each report,when they took print out it should print that puticular computer IP address as well,how can i do that.
pls help me to do this.
thank you
-- modified at 0:14 Tuesday 16th January, 2007
|
|
|
|
|
The IP Address of the client machine or the Proxy is available in serverVariables collection.
|
|
|
|
|
i need IP Address of client machine.
thank you
|
|
|
|
|
Hi,
try this
Response.Write(Request.UserHostAddress())
but this will applicable for clients browsers...you may get IP on your machine as 127.0.0.1 which is default IP in IIS..
trish
|
|
|
|
|
Thank you for ur helping,but i need other's client IP Address,if they put print out it should print document and IP Address as well.
|
|
|
|
|
Hi
It will definately return Client's IP address..
But maybe it will return wrong IP where this site will hosted..
Just try access to access your page from some others browser..it will return correct static IP address of the machine!!!
try this ,if still confused then let me know..
trish
|
|
|
|
|
Hi
Yes it working when i'm trying in different solution,but there is small problem actuall i have Reports in one solution and my UI in another solution,so i put the parameter field into my report and i call that parameter from my ui as follows,
In my UI there is method call GetReport()
i have created object of my report document and i set it to it like this,
ReportDoc.MyreportName objectOfReport=new ReportDoc.MyreportName();
objectOfReport.setParameterValue("MyParameterName",Request.UserHostAddress);
but there occur error like this: System.Runtime.InteropServices.COMException: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
what should i do?
thank you
|
|
|
|
|
Hi
Pls help me to do this,this is urgent
thank you
|
|
|
|
|
Hi,
I think you are using Crystal report for generating report..
Unfortunately I don't have crystal report installed on my PC..
But I search similar problem for you on net..try this link you may got the solution
http://forums.asp.net/thread/1003903.aspx
Trish
|
|
|
|
|
Hi
Im appreciate your helping,ok trish i solved that problem i did in diferrnt way.Thank you very much.
|
|
|
|
|
I have a server control that I have made. In it I am making use some strongly typed List properties tagged with [PersistenceMode(PersistenceMode.InnerProperty)]. The idea being that I can markup in my consuming page like
<cc2:GenericForm ID="GenericForm1 runat="server" ...>
<EmailRecipients>
<cc2:Emailrecipient Address="someone@somewhere.com" />
<cc2:Emailrecipient Address="someelse@somewhere.com" />
...
</EmailRecipients>
</cc2:GenericForm>
This works fine, in the sense that intelisense works perfectly and I am able to use the values and render my control perfectly at run time. However, if I look at the design surface I don't see my control as its supposed to be rendered. I see a gray box with a red error message that reads
"Error Creating Control - GenericForm1 'cc2:GenericForm' could bot be set on property 'EmailRecipients'."
How can I avoid this error box? I don't even really care if the control renders out fully or if it just renders a blank little gray box that says "GenericForm1" or something like that. I setup a designer class for this control, and overrode the GetErrorDesignTimeHtml method, but Visual Studio doesn't use it. I am not certian what is the pertinent code so here is a bit of it
Here is the property in my control class
private List<EmailRecipient> _EmailRecipients;
[PersistenceMode(PersistenceMode.InnerProperty)]
public List<EmailRecipient> EmailRecipients
{
get
{
if (_EmailRecipients == null)
_EmailRecipients = new List<EmailRecipient>();
return _EmailRecipients;
}
set { _EmailRecipients = value; }
}
And here is the EmailRecipient class itself.
public class EmailRecipient
{
private string _Address;
public string Address
{
get { return _Address; }
set { _Address = value; }
}
}
Thanks for your help.
|
|
|
|
|
hi,
can anyone tell me which site is good to refere(other than microsoft & codeproject) for ASP.NET 2.0 new controls like gridview,linkedlist, etc.,
i need some samples on this controls.
Thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
www.asp.net[^]
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
thanks alot. really very good site. now i am watching the vedios on .NET 2.0.
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Well there are many sites:
http://www.gridviewguy.com/Articles.aspx
www.w3school.com
and many others....
|
|
|
|
|
Thanks alot
rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|