|
Hmm, have you got the pdb available/debug build etc? Also, its a long shot but there's a custom attribute (can't remember what it is) which instructs the debugger to step over methods and such. There's also an option on the debug context menu which tells the debugger to 'step over properties and operations'. Check you don't have that set.
Regards,
Rob Philpott.
|
|
|
|
|
It's DebuggerStepThrough[^]. Generally it's added by tool generated code (such as the one coming from svcutil).
|
|
|
|
|
Is it just that class that doesn't work, or is it during any debug session with any project?
Are you sure F11 is mapped to that command?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Yes just one class and one method. No attributes are on the method or it's class.
_____________________________
...and justice for all
|
|
|
|
|
I am using RDLC and i want to add dynamic text in header as well as in footer and some images in to the header but i cant understand how to add it in same rdlc.
i can add static text in header as well as footer and when i add dynamic text in header it will be displayed in the first page only(after saving report in PDF format) but i cant get same text in next continuing pages
will you help me please as early as possible
|
|
|
|
|
Hi All,
I want to copy data from another website which is not mine domain.
There is no link provided or RSS feed available for it.
Below is the link from where I want to copy table data
http://www.ndtv.com/convergence/ndtv/pollution.aspx
Is it possible ?
If no then, is there any web service aailable to get Pollution Watch like in above link ?
Kindly let me know asap.
Thanks in advance
|
|
|
|
|
Member 3669889 wrote: Is it possible ?
Yes, just like it's possible to rob a bank. Did you consider "asking" them whether you can use their data? Is there any particular reason not to ask permission?
I are troll
|
|
|
|
|
If the data you're interested in is always in the same xpath, you can just load the html into an XMLDocument.
|
|
|
|
|
I would just write a Windows Service that pulls in the page periodicaly and scrapes the data I want.
|
|
|
|
|
Hi,
I am trying to validate a excel sheet with student details using a c# code.
If there are any invalid cell found during validation I have to display it in the response.
I tried to add this all to a string and then display it in a label and the output was
Invalid Roll no: 1 Invalid Name:#@#$@#T^$ Invalid Roll no: 2 Invalid Email:2342345345345
The following is how it should be displayed
Invalid Roll no: 1
Invalid Name:#@#$@#T^$
Invalid Roll no: 2
Invalid Email:2342345345345
I got to do this for nearly 100 rows
Friends, Please let me know if you have any Ideas. I don't worry about the scrolls.
|
|
|
|
|
Oops forgot to say this is ASP.NET web page. And the validation should be done on click of a button.
|
|
|
|
|
I think you just need to add a newline constant to the end of each value (not title) you add. The constant is Environment.NewLine
As a side point, you shouldn't really be using a string if you're continually adding values - it's not very efficient. You'd be better using a System.Text.StringBuilder.
HTH
It definitely isn't definatley
|
|
|
|
|
this is a c# class file to encrypt/decrypt
a string when i am using this code in asp.net i am getting an error saying "an error occured in oaep padding" so plz guys help me to get out of this error
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using System.Collections;
namespace Cryptography
{
public class AsymmetricCryptography
{
// Fields
private string pk;
private string prk;
// Methods
public AsymmetricCryptography()
{
RSACryptoServiceProvider provider = new RSACryptoServiceProvider(0x400);
this.prk = provider.ToXmlString(true);
this.pk = provider.ToXmlString(false);
}
public static string Decript(string Decript_Text, string Private_Key)
{
string str = Decript_Text;
string str2 = "";
string xmlString = Private_Key;
RSACryptoServiceProvider provider = new RSACryptoServiceProvider();
// RSAParameters parameters = new RSAParameters();
provider.FromXmlString(xmlString);
string str4 = "";
Queue queue = new Queue();
while (str.Length != 0)
{
if (provider.KeySize == 0x400)
{
str4 = str.Substring(0, str.IndexOf("=") + 1);
queue.Enqueue(str4);
str = str.Remove(0, str4.Length);
}
else
{
str4 = str.Substring(0, str.IndexOf("==") + 2);
queue.Enqueue(str4);
str = str.Remove(0, str4.Length);
}
}
queue.TrimToSize();
int count = queue.Count;
for (int i = 1; i <= count; i++)
{
str4 = (string)queue.Dequeue();
str2 = str2 + Encoding.ASCII.GetString(provider.Decrypt(Convert.FromBase64String(str4), true));
}
return str2;
}
public static string Encript(string Plain_Text, string Public_Key)
{
string str = Plain_Text;
string xmlString = Public_Key;
string str3 = "";
RSACryptoServiceProvider provider = new RSACryptoServiceProvider();
//RSAParameters parameters = new RSAParameters();
provider.FromXmlString(xmlString);
int num = (str.Length / 0x20) + 1;
char[] chars = str.ToCharArray();
byte[][] bufferArray = new byte[num][];
int index = 0;
for (int i = 1; i <= num; i++)
{
if (i == num)
{
bufferArray[i - 1] = Encoding.ASCII.GetBytes(chars, index, chars.Length - index);
}
else
{
bufferArray[i - 1] = Encoding.ASCII.GetBytes(chars, index, 0x20);
index += 0x20;
}
}
string str4 = str;
for (int j = 0; j < bufferArray.Length; j++)
{
str3 = str3 + Convert.ToBase64String(provider.Encrypt(bufferArray[j], true));
}
return str3;
}
// Properties
public string Private_Key
{
get
{
return this.prk;
}
set
{
if (value != null)
{
this.prk = value;
}
}
}
public string Public_Key
{
get
{
return this.pk;
}
set
{
if (value != null)
{
this.pk = value;
}
}
}
}
public class HashCalculate
{
// Methods
public HashCalculate()
{}
public static string HashMD5(byte[] file)
{
MD5CryptoServiceProvider provider = new MD5CryptoServiceProvider();
byte[] buffer = file;
byte[] inArray = provider.ComputeHash(buffer);
provider.Clear();
return Convert.ToBase64String(inArray);
}
}
public class SymetricCryptography
{
public SymetricCryptography()
{
}
// Fields
private SymmetricAlgorithm mCSP = new DESCryptoServiceProvider();
// Methods
public byte[] DecryptFile(byte[] file)
{
ICryptoTransform transform = this.mCSP.CreateDecryptor(this.mCSP.Key, this.mCSP.IV);
byte[] buffer = file;
MemoryStream stream = new MemoryStream();
CryptoStream stream2 = new CryptoStream(stream, transform, CryptoStreamMode.Write);
stream2.Write(buffer, 0, buffer.Length);
stream2.FlushFinalBlock();
stream2.Close();
return stream.ToArray();
}
public string DecryptString(string Value)
{
ICryptoTransform transform = this.mCSP.CreateDecryptor(this.mCSP.Key, this.mCSP.IV);
byte[] buffer = Convert.FromBase64String(Value);
MemoryStream stream = new MemoryStream();
CryptoStream stream2 = new CryptoStream(stream, transform, CryptoStreamMode.Write);
stream2.Write(buffer, 0, buffer.Length);
stream2.FlushFinalBlock();
stream2.Close();
return Encoding.UTF8.GetString(stream.ToArray());
}
public byte[] EncryptFile(byte[] file)
{
ICryptoTransform transform = this.mCSP.CreateEncryptor(this.mCSP.Key, this.mCSP.IV);
byte[] buffer = file;
MemoryStream stream = new MemoryStream();
CryptoStream stream2 = new CryptoStream(stream, transform, CryptoStreamMode.Write);
stream2.Write(buffer, 0, buffer.Length);
stream2.FlushFinalBlock();
stream2.Close();
return stream.ToArray();
}
public string EncryptString(string Value)
{
ICryptoTransform transform = this.mCSP.CreateEncryptor(this.mCSP.Key, this.mCSP.IV);
byte[] bytes = Encoding.UTF8.GetBytes(Value);
MemoryStream stream = new MemoryStream();
CryptoStream stream2 = new CryptoStream(stream, transform, CryptoStreamMode.Write);
stream2.Write(bytes, 0, bytes.Length);
stream2.FlushFinalBlock();
stream2.Close();
return Convert.ToBase64String(stream.ToArray());
}
public string Initialization_Vector
{
get
{
this.mCSP.GenerateIV();
return Convert.ToBase64String(this.mCSP.IV);
}
set
{
if (value != null)
{
this.mCSP.IV = Convert.FromBase64String(value);
}
}
}
public string Sessio_Key
{
get
{
this.mCSP.GenerateKey();
return Convert.ToBase64String(this.mCSP.Key);
}
set
{
if (value != null)
{
this.mCSP.Key = Convert.FromBase64String(value);
}
}
}
}
|
|
|
|
|
Firstly, have you not noticed that there is an asp.net forum?
Secondly, TOO MUCH CODE
Thirdly, which line is causing the error? Failing that, give us a clue. Which method contains the line?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
You may need to specify/change the padding mode[^]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
I'm making a small backup application. And I want the user to be able to drag files and folders from the - file explorer style - TreeView(treeOne) to the second TreeView(treeTwo)
Drag and Drop works fine, exept when I'm dropping a file/folder into treeTwo.
In the Treeview treeTwo node, i can't get access to the full path of the original file/folder, or the parent nodes. And I need this to process the files
example;
I drag temp\blah\ folder from treeOne to treeTwo ... now in treeTwo i only have temp\blah (the root information (my computer\c:\ isn't included)
so no access to the parent nodes (c;\) or fullpath.
I tried everythin to bring them over, stick the fullpath in the tag property.
Tryed to make a new 'supernode' , inheriting treeNode and add some properties. butthat didn't work.
without that fullPath i can't process the files or folders.
Im so close to a sollution if I could just drag/drop the whole node tree over, with all the parent and sub nodes.
anyone can help me out a bit, know a sollution, an idea , some resources of how other ppl done it ... verry much appreciated
regards
|
|
|
|
|
TreeNode has a FullPath property. Have you tried using that?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
yes, but when you drag/drop, you visualy select a node in treeView1 and drag it to treeView2. But what happens in code is you create a new node in treeview2, that takes the name of the selected node in treeView1.
And the new node.FullPath is automatically set in relation to the Treeview2.
I have to find a way to take the FullPath of node1 and copy it to node2 FullPath property. problem is, FullPath is readonly so I can't set it.
I tried creating a class that inherits TreeNode, and add an extra property 'originalPath' but it doesn't work... I'm getting a lot of errors in other functions regarding the TreeView, have to look into that later...
|
|
|
|
|
Hows about, in the OnDrop code, taking the fullpath , splitting it and then check if each part exists in TreeView2 and if not, adding it. If you don't have access to the fullpath at that point you might have to create a DragItem class with fields for the node itself and a string for the fullpath . Use this when starting the drag.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
yeah, I think I'm going to try the DragItem class sollution, seems the most reliable
and I can add some other properties like include subfolders, etc ... (it's for a backup project)
thanx
|
|
|
|
|
Ok.
Good luck!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Greeting,
I want to monitor the data that I received continuously.I use Datagridview control to monitor data(a data received as a structure of some fields and i show them as some columns )
It seems the Datagridview is slow and when number of records is growing this control will be very slow.
Which control is better?
I should monitor data in some columns , and every columns should has title.
Thanks
|
|
|
|
|
A datagridview has a lot of intelligence for sorting and the likes. Lots of data makes every control slow. Fill a textbox with 10Mb and you'll see what I mean
If it's for personal viewing then you might consider using a TextBox with a fixedsize-font.
I are troll
|
|
|
|
|
In my current c# application I need a combobox that can have in it atleast 500 entries. But when I tried to do I, it says it can store at the max! only 100 entries in it.
Is there any way I can set the combo's max drop down items?!
Regards,
na_ab
|
|
|
|
|
then just put 500 items in, its not a problem.
The MaxDropDownItems value is the number of item to be displayed during drop down at any one time. Which is limited to 100
May i also just suggest that a combo box with so many items is not very user friendly IMO
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|