|
I think, there are "&" between each record.
It must be something like this : "accountid=176153&type=prem..."
Then you can split it using "&".
string input = "accountid=176153&type=prem...";
string[] s = input.Split('&');
Then split each record using "=".
|
|
|
|
|
hmm ok.
but im not too sure that there is :S
i think it has a new line between each part, but it doesnt show when it displays in a text box, only in a message box.
the official way that the results come out it is:
accountid=$accountid (integer)
type=$type (prem or col)
servertime=$time (integer)
addtime=$addtime (integer)
validuntil=$validuntil (integer)
username=$username (string)
directstart=$directstart (integer)
protectfiles=$protectfiles (integer)
rsantihack=$rsantihack (integer)
plustrafficmode=$plustrafficmode (integer)
mirror=$mirror (string)
mirror2=$mirror2 (string)
mirror3=$mirror3 (string)
jsconfig=$jsconfig (string)
email=$email (string)
lots=$lots (integer)
points=$points (integer)
curfiles=$curfiles (integer)
curspace=$curspace (integer)
bodkb=$bodkb (integer)
prempoints=$prempoints (integer)
premkbleft=$premkbleft (integer)
refpoints=$refpoints (integer)
refrate=$refrate (integer in cents)
|
|
|
|
|
So split on char(10) and char(13), I think these are the new line characters.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i need help in digital clor lab management system
any body can help me???
|
|
|
|
|
Sure - if you properly define the task ( what does digital color mangement mean ), I'm sure I can write something for you. I am busy nowadays, so I'd do it for $200 an hour. You may well find someone else willing to do it for half that, if they need the work.
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.
|
|
|
|
|
Hello,
I've written a small console application for me and some collegues to use, it contains a lot of commands,
all of which we use on a daily basis. To prevent also having to open a windows commandprompt besides my
own console, i also included the ping command in my console (started with a process.start) and the
results are written in my console.
All good and well, but when i keep pinging (ping hostname /t) i have to be able to use ctrl-c and
ctrl-break without my console exiting. So i implemented the following in my code:
static void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e)
{
if (e.SpecialKey == ConsoleSpecialKey.ControlC)
{
e.Cancel = true;
}
else
{
dowhile();
}
}
the function dowhile() calls a function where i read the input as long as the user doesnt type "exit".
I couldnt cancel the event when ctrl-break is pressed, so i guessed i should just call my dowhile
function again. Everything works fine, except when i try to close my application typing exit, or pressing
the close button. It takes 3 to 5 seconds before my console closes. This only happens when i pressed
Ctrl-Break before.
Am i doing something wrong, or is there a better way to prevent Ctrl-Break from exiting my console?
My console just cant close when i press Ctrl-Break because then i can't see my temporary ping statistics
anymore.
Any thoughts? Thanks in advance.
|
|
|
|
|
i m using mozilla fire fox n looking for a full path of posted file from fileUpload control of asp
string filepath= fileUpload1.PostedFile.FileName;
but
filepath only holds the file name.. no path...............
helpp plzzzzzzzzzz
|
|
|
|
|
I think, this is the wrong forum. Use ASP.NET forum.
|
|
|
|
|
Hi,
The code below looks for a particular service i.e "Index service" and then checks for the status i.e. stopped, start...
How do I modify this code so that I can check for the startupType of the service i.e. disabled, automatic, manual?
Thanks
ServiceController[] installedServices;
installedServices = ServiceController.GetServices(strServer);
foreach (ServiceController tmpService in installedServices)
{
//proceed only if the service is installed...
if (myService.DisplayName.ToLower().Trim() == "Installed Service")
{
//get the status of the service...
strServiceStatus = myService.Status.ToString();
ServiceInstaller serviceInstaller = new ServiceInstaller();
serviceInstaller.ServiceName = strService.ToLower().Trim();
strStartupType = serviceInstaller.StartType.ToString();
}
}
|
|
|
|
|
|
|
Hi,
I am trying to load the large values from the stringbuilder object to the textbox. The code below;
static StringBuilder strCommandBuild = new StringBuilder ();
// Business Logics here
public string Commands
{
get
{
return strCommandBuild.ToString (); //txtRunCfg.Text ;
}
set
{
strCommands = value;
}
}
// UI Part... where i am calling the strCommandBuild...
txtRunCfg.Text = txtRunCfg.Text + objScript.Commands;
The strCommandBuild has more than 2048K bits of datas(ie > 2048 * 1000). When it's loading in to textbox it hangs the application completely. How to solve this problem? Any help appreciated... Thanks..
How to load the values to textbox shown above.
Reg,
Subbu
|
|
|
|
|
It doesn't make any sense. What do you want with a 2MB of character in a textbox ?
|
|
|
|
|
Yes I want to load maximum size of 40 MB in a textbox.
TextBox: Max length = 50,000,000
I am getting the values as string datatype and assigning to textbox...
|
|
|
|
|
Hi,
When I am executing the code it's throwing the error as;
"Exception of type System.OutOfMemoryException was thrown"
Reg,
Subbu
|
|
|
|
|
Yes, that's an error of too much charachters...
|
|
|
|
|
|
Thanks a lot...
I have used Richtextbox. Its working fine. But when I closed the application then it throws the same error as
"Exception of type System.OutOfMemoryException was thrown".
What need to rectify this error?
Thanks,
Subbu
|
|
|
|
|
What are you doing during closing application ?
I just tried 2048000 charachters in richtextbox and close the application, it's ok, no exception.
|
|
|
|
|
I have a SQL 2005 server using the following parameters
DBName=MyDatabase
user: joe123
passwrod:sm123
joe123 is teh MyDatabase owner
I want to connect to the DB, find out the status and display it in textBox6.
The problem is that the "try" block is not executed. Error with access deny.
If I run c:\oslp -Ujoe123 -Psm123 -Slocalhost\SQLSRV--it works
conStr ="user id=joe123;password=sm123;server=localhost\\SQLSRV;Trusted_Connection=yes;database=MyDatabase; connection timeout=30";
SqlConnection conn= new SqlConnection(conStr);
try
{
conn.Open();
SqlCommand thisCommand = conn.CreateCommand();
thisCommand.CommandText = "SELECT DATABASEPROPERTYEX(‘ctxima’, ‘Status’) DatabaseStatus_DATABASEPROPERTYEX";
Object dbStatus = thisCommand.ExecuteScalar();
}
catch (System.Exception excep)
{
MessageBox.Show(excep.Message);
textBox6.Text=dbStatus
}
ANY HELP IS GREATLY APPRECIATED
|
|
|
|
|
Try to use an SqlDataSource from your toolbox, configure, custom a random select statement. SqlDataSource will automatically generate a connection string.
use it as this example:
MyConnection1.ConnectionString = SqlDataSource1.ConnectionString ;
full example:
SqlConnection con1 = new SqlConnection();
SqlCommand com1 = new SqlCommand();
con1.ConnectionString = SqlDataSource1.ConnectionString; <<<<
con1.Open();
com1.Connection=con1;
com1.CommandText="SELECT [Name] FROM Table1 WHERE [Id] = '"+TextBox1.Text.Trim()+"'";
com1.ExecuteNonQuery();
com1.Dispose();
con1.Close();
|
|
|
|
|
I have developed a product which i want to distribute.
I want users of the product to register before using the product. What are steps required to provide licensing? Pls help
|
|
|
|
|
1 - write code
2 - test
There's all sorts of licensing schemes. People invent their own, that's why crackers don't know how to break them.
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.
|
|
|
|
|
Christian Graus wrote: There's all sorts of licensing schemes. People invent their own, that's why crackers don't know how to break them for an hour or two.
FTFY
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
You might want search on the net related to licensing mechanism
some of the important things you might want do are
- Selecting hardware PC id for unique identification of the machine e.g hdd serial number,dongle, or even some network card ID [depends on your need]
- you should maintain a increpted license file with the product
- you should store your pc id in this file and other any related info, which you should use to validate the license of the product
rest you should think on your self!!
|
|
|
|