|
How to define an event aginst a button that is placed in the master page. The button handler must be in the content page.
|
|
|
|
|
|
|
|
hi
I have a file in RTF extension. I have to store this file in a database(SQL SERVER). how i can store a file in database. will you please help me to do this.
thanks in advance; eagerly waiting for your valuable replies
sebastian
|
|
|
|
|
this is the code to do that, Dont forget to score it if it satisfies your need.
FileStream fileStream = new FileStream("c:\\Admin.rtf", FileMode.OpenOrCreate, FileAccess.Read);
long len;
len = fileStream.Length;
Byte[] fileAsByte = new Byte[len];
fileStream.Read(fileAsByte, 0, fileAsByte.Length);
now you are having data in fileAsByte variable
database
========
add a field in your table as image type
then pass this value there
all the best
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
yeah, let me first check the code in my environment. thanks a lot for your reply. let me ask one more thing.. if i want to read this file from the database and show in a web page what should i follow....
thanks once again, i hope you can help me again
sebastian
|
|
|
|
|
Read the data back to varable fileAsByte
then do the following
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.Buffer = true;
Response.ContentType = "application/rtf";
Response.BinaryWrite(fileAsByte);
Response.End();
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
its fine, but can i display that in a particular control, ie. in a multiline textbox or in a html table cell.
any way thank you very much for your valuable reply.
sebastian
|
|
|
|
|
hi all,
I have created a windows service and in that i need to capture the status of all other services which are running in the same system.
Is it possible to capture windows services status in another Service.
Plz give me ur suggestions.
Thanks in advance
cheers
sangeet
|
|
|
|
|
HI
Can you provide some sort of example such wich process you want to check ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
thanks for ur reply.
In my Windows Service, i want to check the status of other windows services which are all running in the same system.like whether they are started /stopped.
Is it possible??
cheers
sangeet
|
|
|
|
|
HI
If you want to see all the process on youe machine then check this
System.Diagnostics.Process[] Processes;
Processes = Process.GetProcesses();
foreach (Process proc in Processes)
{
if (proc.HasExited)
{
}
}
<l>Thanks and Regards
Sandeep
|
|
|
|
|
we are using asp.net & sqlserver2005. by entering the credit card number, we have to transfer that number from our server to the bank server, if that number is valid then the bank server will sent the response to our server. How to communicate from our server to their server & pass the queries.
They gave API, but i cant able to connect to their server...
i got an error
***"Remote server returned an error ,Forbidden"***.
Please help me..
|
|
|
|
|
Very first thing to do .Check that wether you are able to ping 'bank server' from your dev machine.
|
|
|
|
|
Hello Guys,
I am a beginer at AJAX.I read few articles about that but i want to create a small application ,
Can you please guide me through step1.
Please tell me from the beginning.
Regards ,
nishu
|
|
|
|
|
|
Thanks Sylvester,That I know but in VS 2005 web application how can I create application.Step by Step, and how can I configure files.??
.Please Help me.
nishu
|
|
|
|
|
|
Dear are you asking for "how to create project" or "How to implement AJAX" !!! Totally confused to give a answer.
Make the it clear if possible !!!
Thanks,
Arindam D Tewary
|
|
|
|
|
Ok sorry Guys if i confused you .
I want to Create 1 sample application USING AJAX
Just to learn how it works.
Means implementation also...
Regards ,
nishu
|
|
|
|
|
Basically they will give API to call their server. You dont worry about it. They will give evrything you just call it and wait for the response code.
or
They can give some portal, You just call the portal in a popup, Then the control will go to bank, they do all the transactions, once the transaction is done they will call your url back.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
hi
its just my opinion ...
but i think the procedure said above only may be for debit cards such process happens and none of the credit cards do such a things like opening a popup and then returning the url back after the payment transaction is over.its we who may need to process that...
|
|
|
|
|
I have done it in many applications. What are you talking about?
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
hi..
i am novice and based on my using of some application i said that for credit cards we wont get a new window for payment processing but for debit cards only we may get new widow for payment processing..
if i was wrong its possible as i dint had any experice in devloping using credit cards and i need to one soon..So can u please suggest me any good links for helping me also to develop appln having credit card payments. Can u also say if we need to surely use SSL during credit card data transfer or any other way is possible.
thnks for help in advnce
enjoy..
|
|
|
|