|
I am having digital signatures with me installed on my computer..
And I am working in ASP.Net C# (2005 framework 2.0)
in this web application I am trying to make some pages which sign the data using the digital signature and save it on the server in either of the format .doc or excel file PowerPoint file r HTML or pdf file ...
or the data may be stored in the database (in my application db is NySQL)
and as and when require i want to retrieve those file decrypt them using the digital signature and then save them to the local machine or just to view information.....
this is the scenario I want to work on
but no ideas of digital signature trying this since 4 days on google did't find any solution...
Please Help me
Thanks and Regards
Meetu Choudhary
http://www.msdotnetmentor.com/
|
|
|
|
|
I am having digital signatures with me installed on my computer..
And I am working in ASP.Net C# (2005 framework 2.0)
in this web application I am trying to make some pages which sign the data using the digital signature and save it on the server in either of the format .doc or excel file PowerPoint file r HTML or pdf file ...
or the data may be stored in the database (in my application db is NySQL)
and as and when require i want to retrieve those file decrypt them using the digital signature and then save them to the local machine or just to view information.....
this is the scenario I want to work on
but no ideas of digital signature trying this since 4 days on google did't find any solution...
Please Help me
|
|
|
|
|
Does anyone know if there is a place I can get hold of generic "website terms of use" and "privacy policy"?
Does anyone know what the legal stance is for copying someone elses privacy policy off their website? Is it in violation of copyright?
Any help would be greatly received!
|
|
|
|
|
Have you tried google?
SopraPol wrote: Does anyone know what the legal stance is for copying someone elses privacy policy off their website? Is it in violation of copyright?
I would expect so, if they have a copyright notice like most sites do!
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi All,
There are two divs (See html code below), one having simple html dropdown list and another one having html textbox.
Now what we are doing here is:
We are overlapping the div containing text box over to the div containing dropdown..
Such that a user can enter his values in the text box as well as will be able to select options from dropdown,
Textbox is overlapped to dropdown so that initial value of dropbox cannot be visible to user & he can enter his keyword in text box over it..
Kindly provide me with the solution.. the code is working well in IE 7 & firefox but not in IE6..
<div style="border:1px solid #000; width:250px"><select name="puneet">
<option>puneet</option>
<option>puneet1</option>
<option>puneet sharma</option>
</select></div>
<div style="border:1px solid #ff0000; position:relative; top:-15px; width:200px">
<input type="text" style="width:90px" /></div>
Thanks & regards
Neeraj Rawat
|
|
|
|
|
<div class="FQA">NeerajSharp wrote:</div><div style="border:1px solid #ff0000; position:relative; top:-15px; width:200px">
why are you specifying the top as -ve value. This is a cause of your error. Make it +ve figue and everything will be fine.
|
|
|
|
|
Dear all,
I am creating a ASP.Net application to simulate SQL Server 2005 Notification Services.
Query Notification will be automatically created when using SqlDependency.
But,When I execute the application I get the following message in the profiler trace.
--------------------
<qnev:qnevent xmlns:qnev="http://schemas.microsoft.com/SQL/Notifications/QueryNotificationProfiler"><qnev:eventtext>subscription
fired<qnev:subscriptionid>0<qnev:notificationmsg><qn:QueryNotification
xmlns:qn="http://schemas.microsoft.com/SQL/Notifications/QueryNotification" id="0" type="subscribe" source="statement" info="invalid"
database_id="0"
sid="0x339E5CD52F1FEB419D35D66253BDD553"><qn:Message>00000000-0000-0000-0000-000000000000</qn:Message></qn:QueryNotification><qnev:brokerdlg>75BC3CE3-9DFD-DD11-8F07-00145EBC7544
--------------------
In the above trace,
type="subscribe" source="statement" info="invalid"
is the error. Please help me how to rectify this.
I hope that the subscription is not registering.
Thanks in advance.
Senthil
|
|
|
|
|
this is in IE
{
for (i=0; i < row.childNodes.length; i++)
{
//alert(row.childNodes(i).className);
row.childNodes(i).className = row.SubMenuTextClass;
}
What do i need to write in FireFox ?
|
|
|
|
|
I do not know the error message you get in Firefox, but the code you posted is not the right javascript syntax, although ie does not care...
row.childeNodes(i) should be row.childNodes[i]
Wout Louwers
|
|
|
|
|
Hi,
i have already posted about div resizing problem and got the sol too.... . but i am getting a small problem...
i have two divs in my page out of that one i am resizing, it works fine but when i click on the other div and then again try to resize my previous div i am not able to do...i feel the control doesnt come there or what i am not sure...
this is a simple div:div id="example" style="position: absolute; overflow: hidden; left: 14px; width: 400; height: 200;border: 2 outset white; margin: 0; background: buttonface; color: black;padding: 2px; top: 100px;"/div;
this is the div i resize:
div
class="resizeMe" style="position: absolute;left: 369px; width: 300px; height: 240px;border: 2 outset white; margin: 0; background: buttonface; color: black;padding: 2px; top: 138px;" /div;
i call the Resize.js javascript which i got fron the codeproject itself.
can someone please help me
thanks
Baishali Deb
|
|
|
|
|
Hey guys, I'm new to web dev so just bare with me
I'm busy working on a website, obviously, but I've hit a bit of a snag...
At the moment its pretty simple, all its supposed to do is query the db and put the result in a text box. Now this all works on my dev machine, but as soon as i upload it to the host of the site i get the following error
Parser Error
Description: An error occurred during the parsing of a resource required to service
this request. Please review the following specific parse error details and modify
your source file appropriately.
Parser Error Message: Could not load type 'MyProjectNameSpace._Default'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
Inherits="MyProjectNameSpace._Default"%>
Line 2:
Line 3: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /default.aspx Line: 1
If i remove the Inherits="MyProjectNameSpace._Default" for line 1 the page displays... But its like my data access code is ignored cause it does not execute.
Any ideas as to why this is happening? Cause i am stumped
Thanks
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
How are you publishing the web site? Seems like an issue in publishing? Do you see anything in bin folder?
|
|
|
|
|
crudeCodeYogi wrote: anything in bin folder
YOU LITTLE LEGEND!!! I wasnt copying(FTP to my server) the bin folder
Thanks alot!
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
how to implement a global search in asp.net? something that will search the entire website including any documents that in the virtual directory...etc.
|
|
|
|
|
I have a application that brings the window to top on particular event. Command self.focus()(JavaScript) works fine with IE6, but the same do not work in IE7. Please suggest the alternative.....
|
|
|
|
|
I guess this will be helpful :
Use document.getElementById(id)
|
|
|
|
|
Hi all,
as a project i'm building USB HID device using PIC18C4550 microprocessor, now it is no-brainer to build windows application to communicate with such a device. i was wandering if it is possible to accomplish the same thing with web application.
in other words i would like to connect my USB HID device to any PC with internet connection open a web page and work with my device in the same matter as i would with windows application.
Tnks u all.
modified on Tuesday, February 17, 2009 7:55 AM
|
|
|
|
|
Hi all,
i dont know this is right place to put my query..
my Site is crash twice, i got log file to analysis, but unable to solve the issues.
i am using Debug Diagnostic Tool.Unable to generate Error code or Error Description.
can you please help me.
Thanks in Advance...
JohnDas
|
|
|
|
|
can you please describe the event when site crash, if there is a live link can you give the steps how to crash site.
|
|
|
|
|
Hi
I have a web site
it is wroking fine with IE but not with FIREFOX
it has problems in the Menu bar...
I have 3 places i need to replace code lines
now i have the problem in 3 lines
Warning: Non-standard document.all property was used. Use W3C standard document.getElementById() instead.
Line:59
Error: parentMenu is null
Line:79
Error: row.childNodes is not a function
Line: 269
someone can help me what do i need to write instead in line 79,269 ?
|
|
|
|
|
I think the problem is the warning. Since you do not get the parentMenu-object with document.all it is null. As the warning says: Use document.getElementById().
Also posting the code will help a bit more to find the issues.
Regards
Sebastian
|
|
|
|
|
some has an e mail i can send the JS file to check it and see where are the problems ?
|
|
|
|
|
Could you post the snippet at the forum? It is there for this reason.
|
|
|
|
|
here it is all the menu.js
/*------------------------------------------------------------------
File: menu.js
Use: Collection of clients functions
that used for interface of the menu bar.
-------------------------------------------------------------------*/
var g_MaincontextMenu;
var currentMenu; //The last sub menu that open.
/*-----------------------------------------------------------------
Calculate the top position of the object.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function offsetTop(obj)
{
var top = 0;
for (; obj; obj=obj.offsetParent)
{
top = top + obj.offsetTop;
}
return(top);
}
/*-----------------------------------------------------------------
Calculate the left position of the object.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function offsetLeft(obj)
{
var left = 0;
for (; obj; obj=obj.offsetParent)
{
if (obj.tagName == "BODY") break;
left = left + obj.offsetLeft;
}
return(left);
}
/*-----------------------------------------------------------------
Loaded the child of the first menu.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
p_Dir Direction of the web: RTL or LTR
------------------------------------------------------------------*/
function loadContextMenu(obj, p_Dir)
{
var contextMenu;
var parentMenu;
parentMenu = returnContainer(obj);
contextMenu = document.all[obj.id + "Sub"];
//document.form2.strSearch.value = document.form2.strSearch.value + "," + contextMenu.id;
if (currentMenu)
{
menuOut(currentMenu);
}
if (contextMenu != null)
{
if(contextMenu.style.display == "block")
return;
contextMenu.style.display = "block";
var l_contextMenu_Top = offsetTop(parentMenu) + parentMenu.offsetHeight - 2;
contextMenu.style.top = l_contextMenu_Top;
contextMenu.style.width = parentMenu.offsetWidth;
contextMenu.firstChild.style.width = "100%";
contextMenu.parentMenu = parentMenu;
parentMenu.subMenu = contextMenu;
currentMenu = parentMenu;
if (p_Dir == 'RTL'){
if(contextMenu.clientWidth > parentMenu.clientWidth){
var contextMenuPosition = offsetLeft(parentMenu) - (contextMenu.clientWidth - parentMenu.clientWidth);
}else{
var contextMenuPosition = offsetLeft(parentMenu);
}
if(contextMenuPosition < 0){
contextMenu.style.left = 0;
}else{
contextMenu.style.left = contextMenuPosition;
}
}else{
contextMenu.style.left = offsetLeft(parentMenu);
var l_WindowWidth = document.body.clientWidth;
var l_DivWidth = contextMenu.clientWidth;
var contextMenuLeft = offsetLeft(parentMenu)
//alert("l_WindowWidth = " + l_WindowWidth)//
//alert("l_WindowWidth = " + l_WindowWidth + " : l_DivWidth + contextMenuLeft = " + eval(l_DivWidth + contextMenuLeft));
//alert(contextMenuLeft);
if(l_WindowWidth < l_DivWidth + contextMenuLeft){
//alert("l_WindowWidth = " + l_WindowWidth + " : l_DivWidth + contextMenuLeft = " + eval(l_DivWidth + contextMenuLeft));
contextMenu.style.left = l_WindowWidth - l_DivWidth;
}
}
contextMenu.style.height = 0;
var l_DivHeight = contextMenu.clientHeight + 2;
//-----Set The div top postion ------------------
var l_WindowHeight = document.body.clientHeight;
var l_ScrollTop = document.body.scrollTop;
//alert(l_WindowHeight);
//alert(document.body.scrollTop);
if(l_WindowHeight < (l_contextMenu_Top + l_DivHeight) - l_ScrollTop)
contextMenu.style.top = l_contextMenu_Top - ((l_contextMenu_Top + l_DivHeight - l_ScrollTop) - l_WindowHeight);
//-------------------------------------------------
contextMenu.style.overflowY = 'hidden';
contextMenu.style.height = 0;
//contextMenu.style.display = "none";
var g_MaincontextMenu = "";
SetMainDiv(contextMenu);
BuildDiv(0, l_DivHeight);
}
}
var y="";
function SetMainDiv(p_MaincontextMenu){
g_MaincontextMenu = p_MaincontextMenu;
clearTimeout(y);
}
function BuildDiv(p_Height, p_HighHeight){
//alert(1);
//document.form2.strSearch.value = document.form2.strSearch.value + "," + p_Height + "," + p_HighHeight;
//document.form2.strSearch.value = document.form2.strSearch.value + "," + g_MaincontextMenu.id;
var l_contextMenu = g_MaincontextMenu;
//g_MaincontextMenu = "";
//alert(l_contextMenu);
//alert ("p_Height = " + p_Height);
//alert ("p_HighHeight = " + p_HighHeight);
//alert(l_contextMenu.id);
if (p_Height < p_HighHeight){
l_contextMenu.style.height = p_Height + 10;
//alert(p_contextMenu.clientHeight);
//alert(1);
y = setTimeout('BuildDiv(' + parseInt(p_Height + 10) + ',' + p_HighHeight + ');', 30);
//alert(2);
//alert(p_contextMenu.style.height);
}else{
clearTimeout(y);
//alert('Clear');
}
}
/*-----------------------------------------------------------------
Loaded the child of the submenus.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function loadContextMenuSub(obj) {
var contextMenu;
var parentMenu;
//alert('loadContextMenuSub');
parentMenu = returnContainer(obj);
contextMenu = document.all[obj.id + "Sub"];
contextMenu.style.display = "block";
var l_contextMenu_Top = obj.offsetTop + parentMenu.offsetTop;
contextMenu.style.top = l_contextMenu_Top;
var l_DivHeight = contextMenu.clientHeight;
if (parentMenu.offsetLeft - contextMenu.offsetWidth + 1 < 0)
contextMenu.style.left = parentMenu.offsetLeft + parentMenu.offsetWidth - 7;
else
contextMenu.style.left = parentMenu.offsetLeft - contextMenu.offsetWidth + 7;
contextMenu.parentMenu = parentMenu;
parentMenu.subMenu = contextMenu;
//-----Set The div top postion ------------------
var l_WindowHeight = document.body.clientHeight;
var l_ScrollTop = document.body.scrollTop;
//alert(l_WindowHeight);
//alert(document.body.scrollTop);
if(l_WindowHeight < (l_contextMenu_Top + l_DivHeight) - l_ScrollTop)
contextMenu.style.top = l_contextMenu_Top - ((l_contextMenu_Top + l_DivHeight - l_ScrollTop) - l_WindowHeight);
//-------------------------------------------------
}
/*-----------------------------------------------------------------
function that change the interface of the menu item on mouseover event.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function menuOver(obj)
{
var parentMenu;
var subMenu;
var i;
parentMenu = returnContainer(obj);
for (i=0; i < obj.childNodes.length; i++)
{
obj.childNodes(i).className = obj.SubMenuTextClassOver;
}
if (parentMenu.subMenu != null && parentMenu != parentMenu.subMenu)
{
subMenu = parentMenu.subMenu;
while (subMenu != null)
{
subMenu.style.display = "none";
subMenu = subMenu.subMenu;
}
}
}
/*-----------------------------------------------------------------
function that change the interface of the menu item on mouseout event.
Parameters:
Name Description
-------------------------------------------------------------------
row The object
------------------------------------------------------------------*/
function menuOut(row)
{
var parentMenu;
var subMenu;
var i;
parentMenu = returnContainer(row);
if (parentMenu != row)
{
for (i=0; i < row.childNodes.length; i++)
{
//alert(row.childNodes(i).className);
row.childNodes(i).className = row.SubMenuTextClass;
}
}
var toElement = returnContainer(event.toElement);
var toHide = true;
if (toElement == null)
{
if (parentMenu.subMenu) parentMenu = parentMenu.subMenu;
while (parentMenu.parentMenu != null)
{
parentMenu.style.display = "none";
parentMenu = parentMenu.parentMenu;
}
}
else
{
while (toElement)
{
if (toElement == parentMenu)
{
toHide = false;
window.event.cancelBubble = true;
break;
}
toElement = toElement.parentMenu;
}
if (toHide)
{
subMenu = parentMenu.subMenu;
while (subMenu != null)
{
subMenu.style.display = "none";
subMenu = subMenu.subMenu;
}
}
}
}
function contextHighlightRow(obj)
{
var parentMenu;
var subMenu;
var i;
parentMenu = returnContainer(obj);
if (obj.selected == "false")
{
for (i=0; i < obj.childNodes.length; i++)
{
obj.childNodes(i).style.borderTop = "1px solid white";
obj.childNodes(i).style.borderBottom = "1px solid white";
if (obj.childNodes(i).cellIndex == 0 || obj.childNodes.length == 1)
{
obj.childNodes(i).style.borderLeft = "1px solid white";
}
if (obj.childNodes(i).cellIndex != 0 || obj.childNodes.length == 1)
{
if (obj.childNodes(i).cellIndex == obj.cells.length-1)
{
obj.childNodes(i).style.borderRight = "1px solid white";
}
}
}
if (parentMenu.subMenu != null && parentMenu != parentMenu.subMenu)
{
subMenu = parentMenu.subMenu;
while(subMenu != null)
{
subMenu.style.display = "none";
subMenu = subMenu.subMenu;
}
}
obj.selected = "true";
}
else
{
for (i=0; i < obj.childNodes.length; i++)
{
if (i == 0)
{
//obj.childNodes(i).style.borderTop = "1px solid " + obj.background;
obj.childNodes(i).style.borderTop = "1px solid white";
//obj.childNodes(i).style.borderBottom = "1px solid " + obj.background;
obj.childNodes(i).style.borderBottom = "1px solid white";
}
else
{
//obj.childNodes(i).style.borderTop = "1px solid " + obj.titlebar;
//obj.childNodes(i).style.borderBottom = "1px solid " + obj.titlebar;
obj.childNodes(i).style.borderTop = "1px solid white";
obj.childNodes(i).style.borderBottom = "1px solid white";
}
if (obj.childNodes(i).cellIndex == 0 || obj.childNodes.length == 1)
{
//obj.childNodes(i).style.borderLeft = "1px solid " + obj.titlebar;
obj.childNodes(i).style.borderLeft = "1px solid white";
}
if (obj.childNodes(i).cellIndex != 0 || obj.childNodes.length == 1)
{
if (obj.childNodes(i).cellIndex == obj.cells.length-1)
{
//obj.childNodes(i).style.borderRight = "1px solid " + obj.background;
obj.childNodes(i).style.borderRight = "1px solid white";
}
}
}
obj.selected = "false";
}
}
/*-----------------------------------------------------------------
function that return the parent of the item.
Parameters:
Name Description
-------------------------------------------------------------------
container The Item
------------------------------------------------------------------*/
function returnContainer(container)
{
if (container)
{
while (!container.menuElement)
{
if (container.parentElement)
{
container = container.parentElement;
}
else
{
container = null;
break;
}
}
}
return(container);
}
/*-----------------------------------------------------------------
Open new window
Parameters:
Name Description
-------------------------------------------------------------------
p_Id Category Id
*/
function loadCategoryFile(p_Id){
window.open ("OpenFileById.asp?Id=" + p_Id,"");
}
/*-----------------------------------------------------------------
Redirect function
Parameters:
Name Description
-------------------------------------------------------------------
lngCategoryID The CategoryID
------------------------------------------------------------------*/
function loadCategory(lngCategoryID)
{
window.location = "main.asp?lngCategoryID=" + lngCategoryID;
}
/*-----------------------------------------------------------------
Open Window
Parameters:
Name Description
-------------------------------------------------------------------
p_Url Url to Open
p_Width The Width of the window
p_Height The Height of the window
p_Resizable yes or no
p_Scrollbars yes or no
p_Status yes or no
p_Addressbar yes or no
p_Toolbar yes or no
------------------------------------------------------------------*/
function OpenNewWindow(p_Url, p_Width, p_Height, p_Resizable, p_Scrollbars, p_Status, p_Addressbar, p_Toolbar)
{
window.open(p_Url,"" ,"height=" + p_Height + ",width=" + p_Width + ",top=100,left=100,resizable=" + p_Resizable + ",scrollbars=" + p_Scrollbars + ",status=" + p_Status + ",location=" + p_Addressbar + ",toolbar=" + p_Toolbar);
}
/*-----------------------------------------------------------------
function that handling the onclick event
Parameters:
Name Description
-------------------------------------------------------------------
item The object that on click occured in
lngCategoryID The CategoryID
------------------------------------------------------------------*/
function clickMenu(item, lngCategoryID)
{
lngCategoryID = parseInt(lngCategoryID.substr(1));
switch (item.TypeRef)
{
case "1":
break;
case "2":
switch (item.TargetRef)
{
case "1":
window.open(item.Link);
break;
case "2":
window.location = item.Link;
break;
case "3":
parent.location = item.Link;
break;
}
break;
case "3":
window.location = "main.asp?lngCategoryID=" + lngCategoryID;
break;
case "6":
// item of the menu is a folder
window.location = "PublicLibrary.asp?lngCategoryID=" + lngCategoryID;
break;
case "8":
window.location = "DisplayNodeList.asp?lngCategoryID=" + lngCategoryID;
break;
}
}
//-------------------------------------------------------------------------
/*-----------------------------------------------------------------
Loaded the child of the submenus.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function loadContextMenuSubRight(obj) {
//alert();
var contextMenu;
var parentMenu;
parentMenu = returnContainer(obj);
contextMenu = document.all[obj.id + "Sub"];
contextMenu.style.display = "block";
var l_contextMenu_Top = obj.offsetTop + parentMenu.offsetTop;
contextMenu.style.top = l_contextMenu_Top;
var contextMenuLeft = parentMenu.offsetLeft + parentMenu.offsetWidth - 7;
var l_WindowWidth = document.body.clientWidth;
var l_DivWidth = contextMenu.clientWidth;
//alert("l_WindowWidth = " + l_WindowWidth + " : l_DivWidth + contextMenuLeft = " + eval(l_DivWidth + contextMenuLeft));
//alert(contextMenuLeft);
if(l_WindowWidth < l_DivWidth + contextMenuLeft){
//alert("l_WindowWidth = " + l_WindowWidth + " : l_DivWidth + contextMenuLeft = " + eval(l_DivWidth + contextMenuLeft));
contextMenu.style.left = l_WindowWidth - parentMenu.offsetWidth - l_DivWidth;
}else{
contextMenu.style.left = contextMenuLeft;
}
var l_DivHeight = contextMenu.clientHeight;
//-----Set The div top postion ------------------
var l_WindowHeight = document.body.clientHeight;
var l_ScrollTop = document.body.scrollTop;
//alert(l_WindowHeight);
//alert(document.body.scrollTop);
if(l_WindowHeight < (l_contextMenu_Top + l_DivHeight) - l_ScrollTop)
contextMenu.style.top = l_contextMenu_Top - ((l_contextMenu_Top + l_DivHeight - l_ScrollTop) - l_WindowHeight);
//-------------------------------------------------
contextMenu.parentMenu = parentMenu;
parentMenu.subMenu = contextMenu;
}
|
|
|
|
|
As pointed out before: use document.getElementById() instead of document.all.
|
|
|
|