|
Hi,
Currently i'm working on a project that tries to create xml files by getting data from backend. The problem now is that i'm unable to preserve the whitespaces between the tags.
Can any one help on this.
Thanx and Rgds,
Seenivasan
|
|
|
|
|
What are you using for creating the xml file DOM or xmlTextWriter ?
Thanks and Regards
Sandeep
If 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... "
|
|
|
|
|
I'm quite curios myself. How do you deal with this if you use XmlTextWriter?
|
|
|
|
|
Add this after writing every tag i think that will create some white space
What you think ?
ObjectxmlTextwriter.WriteWhitespace(" ");
Thanks and Regards
Sandeep
If 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... "
|
|
|
|
|
Good Morning Friends
we are using asp.net with c# i have a problem in password display.
this coding is retrive a data from database to display username and password in c#
txtPassword.Enabled = false;
txtUserName.Text = drStaffDetails["UserName"].ToString() ;
txtPassword .Text = drStaffDetails["Password"].ToString() ;
now problem is username is displaying and password is not displaying in a password char field showing blank
Bellow coding is in asp.net
asp:textbox ID="txtPassword" Runat=Server textMode="Password">
from above coding if i used as a textmode as text it displaying a password.
another thing i am using breakpoint for checking whether the password is retrieving or not , it is displaying
pls help me urgent
Kankeyan
|
|
|
|
|
i think you can not display a text while the textMode=Password.
then there is no benefit of displaying a password
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Mr i cannot able to display a password in password format the field is being cleared and there is no value while the textmode is in password.
But textmode is in text password is visible and in a text format i don't want to visible in text format.
give a solution
kankeyan
|
|
|
|
|
How to check if someone is logged on Server Console (local logon)?
Manual steps > TaskMgr.exe > Users Tab > Check user with ID=0
We have Terminal Server farm and need to know console logons.
Many Thanks.
h.
|
|
|
|
|
Hi all
I am reading a DB into a binding source that I am then displaying in a datagridview
I want to do a few things like go through and format a few rows (example: companyname/username to just display the user name)
i also want to get a count on of how many of each type in a certain column
lastly i know i can use the .filter to the binding source but i have two questions i need clarified
1a) how do you string more than one filter together.
2a) if i use the filter and then i ran a counting loop or something in the binding source would it give me the account for all the info in the binding source or would it give me the totals for the filtered info.
Thanks
|
|
|
|
|
Hai,
I want to place an microsoft office document imaging in a windows form in c#.net ie(C#.net + windows application)
My requirement is to place the image in the half of the winform and below some controls such as labels and textboxes are to be placed and by seeing the data from the image user is going to enter the data in the controls if he enters the correct data user has to save the data.if any body finds a solution and what area the dlls to be imported .
Please send to me
suryaprakash_kk@apollohealthstreet.com
surya prakash
|
|
|
|
|
hi did u found the solution for doing this....can u gv me some sample for this code if ur done with this....
|
|
|
|
|
Hello everyone,
I am trying to add a Splash Screen to my Windows Application. I have searched the internet and I have came across "A Pretty Good Splash Screen in C#" by Tom Clement.
As I tried to follow the Tom's tutorial, I came to the point that he asks, "Add a Windows Form to the project and name it SplashScreen. Delete Form1.cs.". I am wondering if I delete my Windows Form, then what I am making the splash screen for?!!!
I am puzzled and I was wondering if someone can help me out on this.
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
Here is one of the easiest one:
In your main Program.cs call a Form:
--Name that form splash screen,
--Set the property 'FormBorderStyle' = 'None'
--call a method show splash so basically you will write as below:
public SplashForm()
{
InitializeComponent();
}
public void ShowSplash()
{
Thread.Sleep(1000);
this.Close();
}
Now in main write this:
SplashForm f2 = new SplashForm();
f2.Show();
f2.ShowSplash();
This will work as a splash screen!!
|
|
|
|
|
Better ask your question to Tom Clement itself instead of posting it here.
there is a Discussion board below the article.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Try this it is workin on my project its also from "A Pretty Good Splash Screen in C#" by Tom Clement.
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
namespace GasDistributionManagement<br />
{<br />
public partial class SplashScreen : Form<br />
{<br />
static int var =0;<br />
public SplashScreen()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)<br />
{<br />
<br />
}<br />
<br />
private void SplashScreen_Load(object sender, EventArgs e)<br />
{<br />
this.ClientSize = this.BackgroundImage.Size;<br />
timer1.Start();<br />
}<br />
<br />
private void timer1_Tick(object sender, EventArgs e)<br />
{<br />
var++;<br />
progressBar1.Value++;<br />
if (progressBar1.Value != 100)<br />
{<br />
int i = 1 + ((100 - var) / 8);<br />
if (i / 3 > 2)<br />
{<br />
Timelabel.ForeColor = System.Drawing.Color.DarkViolet;<br />
Timelabel.Text = "Time Remaining is " + i + " Seconds";<br />
}<br />
else if (i / 3 == 2)<br />
{<br />
Timelabel.ForeColor = System.Drawing.Color.Red;<br />
Timelabel.Text = "Time Remaining is " + i + " Seconds";<br />
}<br />
else<br />
{<br />
Timelabel.ForeColor = System.Drawing.Color.DarkKhaki;<br />
Timelabel.Text = "Time Remaining is " + i + " Seconds";<br />
}<br />
}<br />
else<br />
{<br />
timer1.Stop();<br />
this.Hide();<br />
Login log = new Login();<br />
log.Show();<br />
}<br />
}<br />
<br />
}<br />
}
|
|
|
|
|
Hi All,
Plz give code me code to take a difference between two date (difference must be in the days) one of them is present date other may be any.
Thanx in advance,
|
|
|
|
|
DateTime t = new DateTime(2007,07,17);
TimeSpan diff = DateTime.Today.Date.Subtract(t);
MessageBox.Show(diff.Days.ToString());
|
|
|
|
|
|
|
|
Hello everyone,
I am debugging and learning MSDN C# COM server sample.
http://msdn2.microsoft.com/en-us/library/aa645738(vs.71).aspx
I am using Regasm to generate Windows Registry scripts, here it is,
I can understand that for C# COM Server, since it is managed code, it will use mscoree.dll as the entry point. But I can not see anything related to the real codebase dll (CSharpServer.dll), which contains the real implementation of coclass and interface definition.
I am wondering how mscoree.dll find and invoke real implementation in CSharpServer.dll?
[code]
REGEDIT4
[HKEY_CLASSES_ROOT\CSharpServer.InterfaceImplementation]
@="CSharpServer.InterfaceImplementation"
[HKEY_CLASSES_ROOT\CSharpServer.InterfaceImplementation\CLSID]
@="{C6659361-1625-4746-931C-36014B146679}"
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}]
@="CSharpServer.InterfaceImplementation"
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}\InprocServer32]
@="mscoree.dll"
"ThreadingModel"="Both"
"Class"="CSharpServer.InterfaceImplementation"
"Assembly"="CSharpServer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
"RuntimeVersion"="v2.0.50727"
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}\InprocServer32\0.0.0.0]
"Class"="CSharpServer.InterfaceImplementation"
"Assembly"="CSharpServer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
"RuntimeVersion"="v2.0.50727"
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}\ProgId]
@="CSharpServer.InterfaceImplementation"
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}\Implemented Categories\{62C8FE65-4EBB-45E7-B440-6E39B2CDBF29}]
[/code]
thanks in advance,
George
|
|
|
|
|
Hi!
Without looking into it too deeply: I think the assembly containing the CSharpServer has to be placed in the GAC. That's the codebase...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi mav,
Do you know how to check GAC? In MSDN, it is not mentioned that we need to register codebase into GAC and only Regasm is mentioned to be used.
regards,
George
|
|
|
|
|
ReHi!
There are several ways, for example using gacutil.exe.
If you're using regasm to register an assembly, you either have to give a codebase so that your code can be found or put the assembly into the GAC. Can't imagine a different way for .NET to find the assemblies...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Thanks mav,
If you look at the output I posted in the question, there is no real codebase (actual dll which contains coclass implementation), only mscoree.dll.
So, I doubt if we are not using gacutil tool, how/whether the actual codebase could be found. Any comments?
regards,
George
|
|
|
|