|
pankaj.indore wrote: So many experts are their so why we need book...?
Probably because he wants to learn and is not a lazy oaf like most of the people we get on here. To anyone that wants advice on a book I have the highest respect.
|
|
|
|
|
Beautiful Code
by Andy Oram, Greg Wilson
--------------------------------------------------------------------------------
Publisher: O'Reilly
Pub Date: June 15, 2007
Print ISBN-10: 0-596-51004-7
Print ISBN-13: 978-0-59-651004-6
Pages: 618
Publisher: Que
Publication date: 2001
Que-Special Edition Using Microsoft Visual Basic .NET
|
|
|
|
|
thank you
help as a alias.
Be happy and make others happy.Cheer up...........
|
|
|
|
|
hello experts,
How I can add multiple web service in single desktop application...?
If any service shows the WSDL the its Ok but when any service don't shows the WSDL then What I should do...?
.net 2005 give error like The HTML document does not contain Web service discovery information.
Regards
Pankaj Joshi
|
|
|
|
|
I make a desktop application in that I make 10-12 DLL's
Now I want to prevent these DLL files. I.e. No one can re-use these DLL's
How Can I do that..?
I don't want to use other party tool's..
I want to do it with pure C# code
Regards
Pankaj Joshi
|
|
|
|
|
You could try (by hand, or with an aspect weaver) checking on entry of any of your exposed methods (or just some important ones) that the calling assembly has your public key token.
If not, throw.
|
|
|
|
|
Sorry to say,
I can't understand your reply....
Can you describe in detail...?
Regards
Pankaj Joshi
|
|
|
|
|
Have a search around on this site for how to give an assembly a "strong name".
Then in your assemblies you can use code similar to:
if(Assembly.GetCallingAssembly().PublicKeyToken* != myPubKeyToken) throw new Exception("Go away");
Check the MSDN to find the appropriate property.
|
|
|
|
|
I search a lot onto the net, But unable to get proper response.
everybody is talking about the strong name. But this is not very clear to me.
My Problem....
I make a DLL in which I add two methods say AddTwoNumbers and MultiplyTwoNumbers What I Need no one can use these function without the an unique password. Say when other user import the DLL and try to access any method an exception is generates the password is wrong. I also try to send a password into the Constructor of the class but unable to get proper result.
If possible also provide me simple and good articles links on the code project.
Regards
Pankaj Joshi
|
|
|
|
|
Hi All,
I have to implement export to csv & excel functionality for my datagrid. (The project is in asp.net 1.1 with scripting language C#).
The datagrid has a repeater in one of its template columns. While export, the export works perfect for xls but not for csv.
In xls, the inner repeater data is shown well-structured as in the page.
But for csv, the html of the repeater (tr/td/table) is also printed in csv and so the data is not exported perfectly for csv.
The code used is:
string attachment = "attachment; filename=Tasklist.xls";
//string attachment = "attachment; filename=Tasklist.csv";
Response.ClearContent();
Response.AddHeader("content-disposition", attachment);
Response.ContentType = "application/ms-excel";
//Response.ContentType = "text/csv";
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
output_Reportmy.Columns[0].Visible=false;
output_Reportmy.Columns[1].Visible=true;
output_Reportmy.RenderControl(htw);
output_Reportmy.Columns[0].Visible=true;
output_Reportmy.Columns[1].Visible=false;
Response.Write(sw.ToString());
Response.End();
The two commented lines are used to check for the export functionality for xls and csv.
Can anyone please suggest a solution for it as I am badly stuck up with it?
Thanx a lot in advance
Kushan Shah,
Web Developer.
|
|
|
|
|
Hi All,
Iam creating a table dynamically with this structure
Rno Name Address
1 xyz TextBox1
2 yzx TextBox2
3 aaa TextBox3
Now the user enters data into text boxs.I want to get those data.How can i do this.Iam creating textbox id's dynamically.This is my code
for (int i = 0; i < 10; i++)
{
string boxName = "monthData" + (i).ToString();
TextBox tb = form1.FindControl(boxName) as TextBox;
string txt = tb.Text.ToString();
Response.Write(txt.ToString());
}
Iam accessing id's of text box's but there is an error "Object reference not set to an instance of the object" in string txt = tb.Text.ToString(). Please help me on this.
i want to join this group
|
|
|
|
|
Maybe because you're starting iteration with i=0? Start with 1.
Visit my blog at http://dotnetforeveryone.blogspot.com
|
|
|
|
|
intReq = Convert.ToInt32 (selectRow.Cells[0].ToString());//getting error here
|
|
|
|
|
intReq = Convert.ToInt32 (selectRow.Cells[0].ToString());//getting error here
use
intReq = Convert.ToInt32 (selectRow.Cells[0].value.ToString());
hope it works
Regards
Pankaj Joshi
|
|
|
|
|
Hello out there.
How to marquee the richTextBox in winform?
Thanks.
Jac
|
|
|
|
|
just change the left,right point with in a timer.
|
|
|
|
|
Dear Abhijit...
Since i'm very new in c#, i hope that you can explain more detail...
Thanks
|
|
|
|
|
Hi,
First of all i dont understand why you trying to merquee of a reachtextbox ...
if you want to Marquee Horizantl way change the X location of Reachtext box
RichTextBox1.Localtion.X= location inecrment....
inside a loop or timer
and Vertical Y
hope this is clear to you
Good luck
|
|
|
|
|
Hello, how can my application dynamically load a .NET library? Lets say I want to create an SDK.
|
|
|
|
|
sabrown100 wrote: how can my application dynamically load a .NET library?
Through a .dll.
|
|
|
|
|
I thought that only worked with a win32 dll.
|
|
|
|
|
Look at Assembly.Load method.
|
|
|
|
|
This is my question, lets say that i have a picture, his resolution is 1600*1200,, and i want to know the RGB number of the pixel 100*100 (for example), and by the RGB number i mean the Red, Green and Blue number that are combined to make a custom color.
Note:
If it is posible, i can use other method, the important thing is that i need to be able to compare one pixel color whit other pixels colors.
This is because i am currently making a robot that is able to follow lines, for this i am currently using a PIC(Programable chip), but since this just works whit a crappy line of white tape on the floor and this robot is already using a labtop to work, it will make muck more sence to use a cam, and stop using that crappy tape, and it will make much more sence to use signboards to extend is functionality.
Any help will be very apreciated
|
|
|
|
|
Hi,
the Bitmap class is intended for holding images. It has a GetPixel(x,y) method that
returns the Color of a single pixel. The Color struct has properties Red, Green, Blue.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
tanks works great, i have already google this but i tink i remember why i dont use it, it was because when i crate a bitmap:
Bitmap bmp = new Bitmap(@"C:\1.jpg");
the "Bitmap" was pointed like a namespace not a type, however i remenber someting similar so i put it like:
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(@"C:\1.jpg");
I have spend some time looking for the source of this, but seems to be an internal error.
tanks fot the help work great.
|
|
|
|