|
hi
Joginder
why dont you ask your NIIT faculty
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
What is NIIT? This is the second poster today who has not 'played ball' who comes from NIIT.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
|
Well perhaps they should start by teaching their students a little humility before telling them all their answers are on CodeProject.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Amar Chaudhary wrote: An educational institute in India[^]
Whay am I not surprised?
|
|
|
|
|
NIIT is aligned with the WIT organisation; the two are usually abbreiviated to NITWIT, and its members are known as Nitwits
Me: Can you see the "up" arrow?
User:Errr...ummm....no.
Me: Can you see an arrow that points upwards?
User: Oh yes, I see it now!
-Excerpt from a support call taken by me, 08/31/2007
|
|
|
|
|
hi
i want to make HTML page.like on button click i have write all code for HTML Page.on click i want that .html page will be display
Jintal Patel
|
|
|
|
|
You're asking this in the C# forum because.... ?
Try explaining it better. What sort of page ? What sort of button do you mean, in the web page ? Sounds like you need to read a beginner ASP.NET article, to me.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi
IN My application i m display all the listing of products in my datalist control .Each Product Have Linkbutton for Description.now on that link button click event i want to display discription and image of product in new page .which is Productname.html page....
Jintal Patel
|
|
|
|
|
You would link the button's OnClick event to redirect to a new 'product.aspx' page, passing the product ID to the page.
The 'product.aspx' page, would query the database and populate the page with the products data dynamically.
You don't want to physically create a new HTML page for each product.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
ya.i have allready made this product.aspx page for each product passing productID
but I want to create HTML page for Each Product Dynamically.
Jintal Patel
|
|
|
|
|
Use a Textwriter/HtmlWriter and write the raw HTML out for each page you want to create.
Where will you store these files? If you want to store them in the web directory you might hit permission issues.
What happens if two users hit the same product at the same time? Which one will do the writing? You will have to handle concurrency issues on the file.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
I need to print encrypted customer details as a barcode. then need to scan the data and read back the details.
My approch is like this,
I encrypted the string data using cryptoservices and get memory stream and sen the byte array data as unmanaged byte arra to the printer.
Byte[] bytes = memoryStream.GetBuffer();
IntPtr pUnmanagedBytes = new IntPtr(0);
int nLength;
nLength = Convert.ToInt32(memoryStream.Length);
pUnmanagedBytes = Marshal.AllocCoTaskMem(nLength);
Marshal.Copy(bytes, 0, pUnmanagedBytes, nLength);
PrintDirect.WritePrinter1(lhPrinter, pUnmanagedBytes, nLength, out pcWritten);
When I try to read the barcode through a serial port my byte array size is smaller
int bytes = comport.BytesToRead;
byte[] buffer = new byte[bytes];
comport.Read(buffer, 0, bytes);
I've send 184 bytes to the printer. but now my buffer size is 181
can anybody help me
|
|
|
|
|
I'm still trying to work out what you're using, that you can send bytes to a piece of paper, and get them back. Your interface is the key question here, and as I've told you, no-one can answer you without knowing what you're using.
Are the 181 bytes the first 181 bytes that you wrote out ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Chris - Drop me a line. I've got Dimension Hatross.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I'm using a windows application (c#.net 2005).
My byte array values are like this, 164, 243, 37, 108, ...
valeus in returned array are almost same order. but values 10 and 13 in original array are moved to the end. but still mising 3 bytes.
when I try with different initial string sometimes i get the exact number of bytes, but still values 10 and 13 in original array are moved to the end.
so the decrypted string is different than original string for that one also.
eg.
original - "1000172;1;PUAY KEE;ANBRTYUIJh JGFT;10041946;SG;M;S1254743J;SG;11091988;11092010;SG"
result - "1000172;1;PUAY K|jj[8�C\b@\"|�2��DS�@\af#�ݧ`-�6�?�T����'k�\akE�;�W��A��1\b�+�`l�E���r"
|
|
|
|
|
The values 13 and 10 are carriage return and line feed, which are used to make a line break in text. This suggests that the printer treats the data as text, not binary values, otherwise those values should not have any special meaning at all.
Therefore you can not send binary data to the printer and expect to get it back unchanged.
Why don't you just say what equiment you are using? Any help you get here is directly related to the information you give, so if you only share a minimal amount of information, you can only get a minimal amount of help.
---
single minded; short sighted; long gone;
|
|
|
|
|
I'm using a "metrologic" scaning device to scan and "SATO" printer to printing. I don't think my problem is related to the device. My barcode is a 2D barcode. When I pass the data as string everything works fine there, when I scan the data I removed those linefeeds and carriage returns. But with the array with the way I'm reading it cant remove those linefeeds and ciarrage returns.
|
|
|
|
|
HI,
Iam tring to print a file(can be word, excel, visio, etc) through c#.
i have used the process and process start info objects and could complete the task bu the constraint is while printing the original file is being opened!
Let us say for example iam printing document1.doc through the code then the document1 is opened first then printing is done at the background, after the completion of printing the document1 is closed by itself. is there a procedure for me to change this behaviour?
gauthee
|
|
|
|
|
gauthee wrote: i have used the process and process start info objects and could complete the task bu the constraint is while printing the original file is being opened!
You mean is opened in Word of Excel, etc?
If so, one solution would be to wait until the file has been sent to the printer(by periodically checking the number of print jobs) and after that close the main application.
The first part can be achieved with this(code suggested by Martin#):
ObjectQuery qry = new ObjectQuery("SELECT * FROM Win32_PrintJob");<br />
ManagementObjectSearcher srchr = new ManagementObjectSearcher(qry);<br />
ManagementObjectCollection coll = srchr.Get();<br />
<br />
int initialJobs = coll.Count;<br />
<br />
while (coll.Count == initialJobs)<br />
{<br />
System.Threading.Thread.Sleep(10);<br />
coll = srchr.Get();<br />
}
Good luck!
|
|
|
|
|
Hi,
I need to compare the records between two datasets, having 5 columns in each.
Dataset1 contains 5 records and Dataset2 contains 100 records.
I need to check whether all the records in dataset1 is present in dataset2 ,
and suppose if the records are not in dataset2 i need to check how many records are not present.
Can anyone help me..
Anuradha
|
|
|
|
|
|
hi
you want to compare the complete row from dataset1 or perticulare column ?
Jintal Patel
|
|
|
|
|
Hi Jintal Patel,
I need to compare the complete row..
I need to find the exact row match.
currently i'm using a for loop
for eg
for(int i=0;i<dataset1.tables(0).rows.count;i++)
{
for(int j="0;j<dataset2.tables(0).rows.count;j++)
{
" <code="" to="" compare="" each="" column="">
if(dataset1.tables(0).rows[i].itemArray[0].tostring()==
dataset2.tables(0).rows[j].itemArray[0].tostring())
{
}
if(dataset1.tables(0).rows[i].itemArray[1].tostring()==
dataset2.tables(0).rows[j].itemArray[1].tostring())
{
}
}
}
Is thr any better way ?
Anu
|
|
|
|
|
for (int i = 0; i <dataset1.tables[0].rows.count; i++)
="" {
="" for="" (int="" j="0;" <="" dataset2.tables[0].rows.count;="" j++)
="" {
="" for(int="" k="0;k">5;k++)
{
if(dataset1.tables(0).rows[i].itemArray[k].tostring()==dataset2.tables(0).rows[i].itemArray[k].tostring())
}
}
}
try this.
Jintal Patel
|
|
|
|