|
There might be some solution to the problem, i am seriously stuck up with that issue
|
|
|
|
|
Have you tried in other browsers ? It looks like a browser setting issue. BTW, have you enabled caching on your webpage ?
|
|
|
|
|
hello guys,
i need to compare two word document contents.i'm loading both of word document into richtextbox.actually both document are the version of each other.so i want to mark the changes in higher version.
i can not use any tool i need to write the code for this.
all suggestions are welcome.
thanks
Amit Agarwal
|
|
|
|
|
I might be wrong, but try checking bytes. Get byte array for both files and check each locations.
|
|
|
|
|
hi,
Thanks for the Reply.
I tried a lot, but i'm not getting the actual logic for getting the differences between two files while i'm fetching both of them content into the richtextbox.
any suggestion on this.
Thanks.
Amit Agarwal
|
|
|
|
|
Have you checked comparing bytes ? It worked for me here.
|
|
|
|
|
ok, that's really great.
can u please available me the sample code.bieng a developer, its really bad for asking a code.
but i need it.what u suggest.
thanks
Amit Agarwal
|
|
|
|
|
Use File.ReadAllBytes() to get a byte array of the file. Like this take two byte arrays represents two files. By checking the array length, you will find which is big one. If both are same length, then loop through each bytes and check with the same location in second array.
Hope you can make it.
|
|
|
|
|
Following is the expression i am using to validate for the numeric expression.
[0-9]+ (in regular expression validator)
if i leave the textbox blank , then the above expression gets failed to validate.I am not getting the error message in this case.
Any idea ?
|
|
|
|
|
In this case you have to handle RequiredFieldValidator not RegularExpression
|
|
|
|
|
Yes Thanks.I think , I need to use both validator altogether.
|
|
|
|
|
iam having a frid view with one visible field and one with hidden fields now i want to compare the hiedden field value with visible field how could possible.
|
|
|
|
|
Hi,
CType(gvMaster.Rows(e.RowIndex).FindControl("HiddenField"), HiddenField).Value = CType(gvMaster.Rows(e.RowIndex).FindControl("textfield"), TextBox).Text
|
|
|
|
|
Hi All,
I develop an application(ASP.NET1.1) in which I want to import data from *.xls file to Sql Server 2000. But there is SQLBulkcopy does not work. Please help me.
Thans & Regards:
Suveen Mohan
modified on Wednesday, January 09, 2008 11:31:13 PM
|
|
|
|
|
Are you sure you want the data from .xls, Basically .xls files define just rendering of xml.
Be more precize paste a sample source file and specify requirement.
|
|
|
|
|
|
I think you probably need to check the name of checkedboxes. AFAIK, if you put the checkbox in GridView, the checkbox name will be like "GridViewName_ControlName_01". so, you will need to check the name in for-loop of checkAll function.
|
|
|
|
|
I check the code by specyfing the checkbox name itself.I attach the javascript code below.Please chk it and reply me.
function SelectAllCheck(chkVal, ValId)
{
var frm = document.forms[0];
if (ValId.indexOf('DeleteRecd') != -1 && chkVal == true)
{
var AllAreSelected = true;
for (i=0; i<frm.length; i++)
{
if (frm.elements[i].id.indexOf('DeleteRecd') != -1 && frm.elements[i].checked == false)
{
AllAreSelected = false;
break;
}
}
if(AllAreSelected == true)
{
for (j=0; j<frm.length; j++)
{
if (frm.elements[j].id.indexOf ('CheckAll') != -1)
{
frm.elements[j].checked = true;
break;
}
}
}
}
else
{
for (i=0; i<frm.length; i++)
{
if (ValId.indexOf ('CheckAll') != -1)
{
if(chkVal == true)
{
frm.elements[i].checked = true;
}
else
{
frm.elements[i].checked = false;
}
}
else if (ValId.indexOf('DeleteRecd') != -1 && frm.elements[i].checked == false)
{
for (j=0; j<frm.length; j++)
{
if (frm.elements[j].id.indexOf ('CheckAll') != -1)
{
frm.elements[j].checked = false;
break;
}
}
}
}
}
}
|
|
|
|
|
|
Your code looks totally inefficient and loops unnecessarily. You need to consider a re-design. Problem here is you are taking all the checkboxes in the form. But you need to take only checkboxes contained in the gridview. For doing that put a public variable which holds total gridview count. When checkbox is checked, get this value in your JS function. Start a loop till the count. Create check box id's inside this loop and find the check box. This will be much efficient.
|
|
|
|
|
|
SreejithAchutan wrote: Please send the code for that .What ever changes need in the code plz change it
I have given you all possible ideas for doing that. Why don't you write code yourself ? I have no time to write code, Sorry.
|
|
|
|
|
Im trying to use the gridview and i keep getting the following error:
Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server, even though i do have a runat server tag:
<asp:gridview id="GridView1" runat="server">
br mode="hold" />I am a novice to asp.net, its probably sometrhing very simple . Can anyone help?? Many thanks.
modified on Wednesday, January 09, 2008 7:28:28 PM
|
|
|
|
|
Is your Gridview inside a form tag?
|
|
|
|
|
No it is not within a form tag. Where do i put the form tag??
|
|
|
|