|
hi
I want to implement data versioning in a application...
I need a Delta(diff) algorithm component.
I nedd a text diff class library.
where can I find it?
thanks.
Mohammad Khansari
|
|
|
|
|
Google ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
For word-by-word diff I like to use the SequenceMatcher class in CPython. It has a method get_opcodes which is helpful. I was able to call get_opcodes in C# using IronPython (uses 5 .py files). I store the PythonEngine in session since the ctor is expensive.
|
|
|
|
|
hai all,
i want to delete the rows using checkbox and delete button in a datagrid,if i checked one row at that row will delete? asp.net and C#,please help me
|
|
|
|
|
There's all sorts of articles on putting checkboxes in a datagrid, read one of them. There's got to be several on this site.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
please give the code and methods
|
|
|
|
|
Is someone paying you for this ?
The core issue you have, is that you're not asking a 'help me fix this code' question, but a 'I can't be bothered trying to work this out, do my work for me question'. And hte core issue with that is not that you're lazy, or that you're being paid for work you seem incapable of, it's simply that no-one is going to cover this issue in depth in a forum reply, and why should we type 'datagrid asp.net checkbox' into google to give you a link, if you're too lazy to type that into google yourself ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i have a gridview in my application.if there any javascript to check a checkbox in the onClick event of an asp:TextBox in a gridview of the same row.how to catch the onclick or onfocus event of an asp:textbox.
|
|
|
|
|
You've been asking this for days. Please tell me someone isn't paying you to ask the same question over and over and not research it yourself ?
If you put an onfocus in an asp:TextBox, the framework will ignore it and pass it through to the client. So you put an onfocus event in an asp:TextBox by typing it in there.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Boss,
I am getting Edit/Delete Button with your messages ( In fact with all messages ) . Did you noticed it ?
Think Serious Issues in forum
|
|
|
|
|
Abhijit Jana wrote: Think Serious Issues in forum
No. That's a new feature
|
|
|
|
|
N a v a n e e t h wrote: No. That's a new feature Smile
Navaneeth, Are you Serious ? Please let me know the details ...
|
|
|
|
|
N a v a n e e t h wrote: No. That's a new feature
Is it? But when I tried to edit your post (Yes I tried with yours one only ) it asked for password but could not go further as it was showing the same screen even after entering the password.
Apurva Kaushal
|
|
|
|
|
If you don't know the password, you can't edit the post.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: If you don't know the password,
Which password it is talking about ? I believe this is the Message owner password ? Please correct me if I am wrong .
Now My Question is then what is the use of it ? That was better if this link should only visible to the message owner ?
Or is there any other tricks ?
|
|
|
|
|
I believe the point is that when you post, you can assign a password, and this means that people who create dummy accounts ( Member 83428348 tyoe thing, or just plain people who create a new account every day for some bizarre reason ) can use the same password and thus be able to go back and edit their posts. I don't know, as a former employee, I can click on them and edit any post I want. I only know that b/c I tried b/c of this thread, I obviously don't go and delete or edit other people's posts, no matter how annoying they are... :P
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Okay, I got your point.
Few hours back ( Before this discussion ) , I thought that this is a serious issue and I have raised an defects on Suggestion/Bug Section.
Hope Will get some more clarification from Chris.
Christian Graus wrote: obviously don't go and delete or edit other people's posts, no matter how annoying they are... Poke tongue
|
|
|
|
|
Apurva Kaushal wrote: it asked for password but could not go further as it was showing the same screen even after entering the password
Ohh then this might be a defect. I was thinking it is something like a wiki.
|
|
|
|
|
Yes I too think so, otherwise forums will be a mess if everybody is allowed to modify anyone's post. And anyway it didn't accepted my password there.
Apurva Kaushal
|
|
|
|
|
That is coming for all the posts for me too.
Apurva Kaushal
|
|
|
|
|
Did you get a chance to add java script events i.e OnClick OR OnFocus event using Controls.attribute.add("event","call javascript function") during the Row bound event?
Parwej Ahamad
|
|
|
|
|
I'd like to make a change to an existing ASP.NET 2.0 commerce site so that certain products are flagged with a warning label. The website's product details page already uses such boolean-triggered flags for other product information, so I have copied the existing format to add a path for this additional boolean field from the .cs page back through the DAL, the stored procedure, and the database's products table.
I have the new flag's [b]asp:Image[/b] tag in place on the .aspx page, but I am not sure where to place the switching code on the .cs page so as not to create a compile or runtime error.
Here is a cut-down version of the Product Detail page's .cs file showing what I hope are the relevant parts; a copy of the full .cs page is here:
namespace MySite
{
public partial class productdetail : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Image Image1;
protected System.Web.UI.WebControls.Image imgNew;
public void BindTheData()
{
.... code ....
if (!errorFlg)
{
if (dataset.Tables[0].Rows.Count > 0)
{
DataRow tr = dataset.Tables[0].Rows[0];
imgProduct.ImageUrl = "images/products/" +tr["IMAGEFILE_NM"].ToString();
litName.Text = "<h3 id='detName'>" + tr["NAME"].ToString() +"</h3>";
string from_grade = tr["FROM_GRADE"].ToString();
string to_grade = tr["TO_GRADE"].ToString();
if (from_grade.Length > 0 && to_grade.Length > 0)
{
lbGrades.Text = "Grades "+ from_grade + " - " + to_grade;
}
if (from_grade == to_grade)
{
lbGrades.Text = "Grade "+ from_grade;
}
if (from_grade.Length > 0 && to_grade.Length == 0)
{
lbGrades.Text = "Grades "+ from_grade + "+";
}
if (from_grade.Length == 0 && to_grade.Length == 0)
{
lbGrades.Text = "";
}
lbContent.Text = tr["NSES_NM"].ToString();
lbDescription.Text = tr["DESCRIPTION"].ToString();
string topic_id = tr["TOPIC_CD"].ToString();
if (topic_id != "1" || topic_id != "11")
{
string awardFlg = tr["award_flg"].ToString();
string ResourceFlg = tr["resource_flg"].ToString();
if (awardFlg == "1")
{
imgAward.Visible = true;
}
if (ResourceFlg == "1")
{
imgResource.Visible = true;
}
}
.....code.....
}
I want the flags to apply to all products, not just the "if (topic_id != "1" || topic_id != "11"" ones mentioned above. I have tried to insert a copy of the code for one of the preexisting flags:
string MyNewFlg = tr["my_new_flg"].ToString();
if (MyNewFlg == "1")
{
imgMyNewFlag.Visible = true;
}
If I place the new flag code either inside or outside of the topic_id exclusion the solution builds OK, I get the following runtime error:
Column 'my_new_flg' does not belong to table Table...<br />
Exception Details: System.ArgumentException: Column 'my_new_flg' does not belong to table Table.
Is the code I am imitating creating some sort of dynamic table, and that is causing the screwup? Should I be using something like
if (productTable.MyNewFlagColumn > 0)
{
MyNewFlag.Visible = true;
} ?
Thanks for any advice.
|
|
|
|
|
Hi guys,
I have develoved a dll file for asp.net with "BusJWLRY" namespace and placed under "Bin" folder. It works fine in local computer but its throws exception as "Compiler Error Message: CS0246: The type or namespace name 'BusJWLRY' could not be found (are you missing a using directive or an assembly reference?)" while running from www.
What is the main reason? plz.
Thanks,
Dibya Mani Suvedi
|
|
|
|
|
There are several reasons for this error:
The name of the type or namespace you are trying to use may be misspelled (including the correct case). Without the correct name the compiler is unable to find the definition for the type or namespace you have referred to in your code. This occurs most often because C# is case-sensitive and the correct casing has not been used when referring to the type. For example, Dataset ds; will generate CS0246; notice the s in Dataset is not capitalized.
If the error is for a namespace name, you may not have referenced (/reference) the assembly containing the namespace. For example, your code might contain using Accessibility;. However, if your project doesn't reference the assembly Accessibility.dll then you will get CS0246. See Add Reference Dialog Box for information on how to add a reference in the development environment.
If the error is for a type name, you may not have the proper using directive, or you have not fully qualified the name of the type. Consider the following line of code: DataSet ds;. To be able to use the DataSet type you would need to do two things. First, you need a reference to the assembly that contains the definition for the DataSet type. Second, you need a using directive for the namespace where DataSet is located. For example, because DataSet is located in the System.Data namespace, you would need the following statement at the beginning of your code: using System.Data;.
The second step is not required. However, if you omitted this step then it would require that you fully qualify the DataSet type when referring to it. Fully qualifying it means that you use the namespace and type each time you refer to it in your code. So, if you decided to skip the second step you would need to change your declaration code above to: System.Data.DataSet ds;.
If the error is for a non-type, you may have used a variable or something else when a type was expected. For example, in the is statement, if you use a Type object rather than an actual type, you will get this error.
http://msdn.microsoft.com/en-us/library/w7xf6dxs(VS.80).aspx[^]
|
|
|
|
|
I doubt it's any of these things, it's a deployment issue, he says it works fine for him locally.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|