|
Hi,
I have a system web page (c#) that is running within the company there is one process in the system that needs approval from vendor/supplier within the company (separate office). The request is that thay just want to receive email notification for approval using MS outlook and then there are 2 buttons (approved/reject) either of the two should execute the SQL statement that will update the flag of the record table.
Any suggestions on how to do it?
My solution:
I created a web page where all the updates for approve/reject was there. I can send outlook message to the users with 2 buttons. Once he click either of the two it will run the web page and should execute the SQL statement. Unfortunately, nothing happen. At the same time the web page should close automatically.
Regards
Dabsukol
|
|
|
|
|
Your client is making stuff up. Real developers step in and tell people why they can't have anything they like.
In this world, Outlook limits what it will display/allow because of all the viruses out there. I would not be surprised if what they want, won't work.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi
how can i build FTP client for copy files from the server to other computers
and terminal ?
thank's in advance
|
|
|
|
|
This is not the place for asking anything related to basic networking or whatever. We only solve programming problems, that too only if the code is provided for rectification. Got it?
|
|
|
|
|
|
Hi
I am copying file using SafeFileHandle but if source folder contains any hidden file it also get copy but in destination it is not a hidden file. I want that after copy the attributes remain the same.
Please Help
Thanks in Advance.
|
|
|
|
|
Just read all file attributes before copying, then set the attributes after copying.
|
|
|
|
|
Hi there,
I am creating a removable tool for a particular worm, which copies itself to C:/System32 directory as the root. Then it tries to spread via the SMTP or whatever like that protocol. However, when I delete the root copy of the worm from the C:/System32 directory, it agains get created in that location. Therefore, I have written a C# console application to kill this worm. I have written the following one line code to delete this worm whenever it copies itself to C:/System32 folder as deletion:
//This is in spontaneous loop
System.IO.File.Delete(@"C:/System32/Loveu(worm).exe");
However, since loop is implemented here, the black screen becomes very visible and just remains in a visible mode. Therefore, my question is, how will I hide a console application process during its runtime(incase the process is too long)?
Your help will be really appreciaed,
Rajdeep.NET
|
|
|
|
|
Haven't tried this.....
Jus got some time back while googling....
Try it out and post a reply if it works...
using System.Runtime.InteropServices;
[DllImport("user32.dll")]
public static extern IntPtr FindWindow(string lpClassName,string lpWindowName);
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
caption depending on the system you are running under.
IntPtr hWnd = FindWindow(null, "Your console windows caption");
if(hWnd != IntPtr.Zero)
{
ShowWindow(hWnd, 0);
}
if(hWnd != IntPtr.Zero)
{
ShowWindow(hWnd, 1);
}
Have a Happy Coding.....
|
|
|
|
|
That makes the window minimised to the task bar, it does not hide the process.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi...
Just now checked the code myself....
It hides the console window named "CHECK".....
Check this code and leave a reply....
using System;
using System.Runtime.InteropServices;
namespace Loading
{
class loading
{
[DllImport("user32.dll")]
public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
static void Main(string[] args)
{
Console.Title = "check";
Console.Write("Hello World");
IntPtr hWnd = FindWindow(null, "check");
if(hWnd != IntPtr.Zero)
{
ShowWindow(hWnd, 0);
}
Console.ReadLine();
if(hWnd != IntPtr.Zero)
{
ShowWindow(hWnd, 1);
}
Console.ReadLine();
}
}
}
Have a Happy Coding.....
|
|
|
|
|
Sorry, actually I wanted to just hide the processing Window, not the process. I know thats it impossible to hide a process. Thanx for pointing out my mistake.
|
|
|
|
|
You can't 'hide' a process. You want to hide the window. In that case, the answer you got is correct. Or just make it a windows app and make it run minimised.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
ofcourse you cant.....
Eventhough the caption is wrongly given as Hiding the process, the question demands only to hide the window....
Have a Happy Coding.....
|
|
|
|
|
Just make your application as a service. Your application run in background without a window.
|
|
|
|
|
Hi,
I have three listview controls list view one i filled on loading and listview two i filled by selecting name and moved them in listview two now i am in problem i need to show all ID of listview two values for this i am trying by loop but i couldn't make it
I am trying to fill this by for loop but i couldn't make it.
Kindly do replay.
Thanxxxxx
|
|
|
|
|
I'm sorry, but this is a nonsense. You need to post code to show us what you're doing wrong.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
you will never find a fruitful answer unless you clearly explain your question.
Am assuming that,
you hve a 3 ListView controls LV1, LV2 LV3...
LV1 fields are filled while loading your form.. and you gotta select items from LV1 to fill out LV2....
And now you need to get IDs of LV2...
Is it that you want....?????
Have a Happy Coding.....
|
|
|
|
|
.I have 2 Labels in my asp.net page.The text Property of labels will be null.there will be a dropdown menu (Eg.Arabic,English).i want to pass dropdown menu value to class file and inside class file i should define labels.Label text property should be fetched from resource file(eg.ResourceEng,ResourceArab.resx)and pass text value to Labels in asp.net page.
modified on Monday, April 6, 2009 1:54 AM
|
|
|
|
|
There is a separate forum dedicated to ASP.Net is available....
You may give a try there...
Have a Happy Coding.....
|
|
|
|
|
Hello everybody,
I am having a problem to solve the following c# exercise:
You will take into account that February can be 29 days if it is during a leap year. Do NOT change the implementation of date_convert. Instead, add additional code in your main so that before you display the output of the method, if the month entered by the user is February, prompt the user for the year, and then use IsLeap to check the year and adjust the output of date_convert accordingly. Write appropriate method calls and statements within your main so that the console session may look as follows:
A valid console session may look as follows:
Please enter a month: March
The number of days in March is 31
Another session may look as follows:
Please enter a month: february
Please enter a year: 2007
The number of days in February is 28
Another session may look as follows:
Please enter a month: february
Please enter a year: 2000
The number of days in February is 29
If anybody can help me to solve the problem then i will be very greatfull.
Syed
|
|
|
|
|
This is your homework. What have you done to solve it ? Are you allowed to use the DateTime class ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
hey sah496
this will give u days in month according to month no u have passed to
<pre>
public int DaysInMonth(int nMonth)
{
int nDays = 0;
switch (nMonth) {
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
nDays = 31;
break;
case 4:
case 6:
case 9:
case 11:
nDays = 30;
break;
case 2:
int nDay=1;
int nYear=GetYear();
DateTime oDate;
oDate=Convert.ToDateTime(nDay.ToString()+ "-" +
nMonth.ToString() + "-" +
nYear.ToString() ,"dd-mm-yyyy");
if (DateTime.IsLeapYear(nYear)) {
nDays = 29;
}
else {
nDays = 28;
}
break;
}
return nDays;
}
public int GetYear()
{
// read year and return
}
akhilonly007@gmail.com
modified on Monday, April 6, 2009 5:07 AM
|
|
|
|
|
Hi,
How to sort an arraylist in decending order?
Thankyou
YPKI
|
|
|
|
|
Why would you use an ArrayList ? That's only there for legacy code. Does it not have a Sort method ( I can't remember ).
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|