Click here to Skip to main content
15,912,756 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am Very new to mvc, I have asp.net project which reads the data from Any ID card which contains a chip,now i want to display only the ID card NUmber IN a view textBOX in mvc Project Is this possible, I tried By adding asp.net project solution to the mvc Project Solution,Here I didn't get any idea to read the aspx page data and display it in mvc view.can any one help plz, if any alternate is there to do this please suggest.

Thanks in advance divya
Posted
Comments
Krunal Rohit 25-Oct-15 8:25am    
You need to make this solution as a Class Library. Library that takes input and gives output.

-KR
Member 12078709 25-Oct-15 8:33am    
Sorry I didn't get you krunal, if i make asp.net project as a class library then how can i display only ID Number in MVC view
Krunal Rohit 25-Oct-15 11:52am    
You need to share your code. (relevant only)

-KR
F-ES Sitecore 25-Oct-15 8:56am    
You'll need to just copy the relevant functionality from the webforms project to the MVC one, there is no way of merging two projects, or having two web-projects work in the same solution.
Member 12078709 26-Oct-15 4:26am    
I tried by coping relevant code into the mvc project, but I am not able to read the data from applet.jar file which is in normal asp.net project.
Here I attached some code please look into it once, On button click i need to read the data from The ID card,

the java script function is
function Initialize()
{
try
{


ZFComponent =document.getElementById(ZFComponentName).value;

var Ret = ZFComponent.Initialize();
alert("divyaaaa");
if(Ret.startsWith("-") || Ret != "")
{
ProcessError(Ret);
return false;
}

return true;
}
but here ZFcomponent value I am getting is null, the problem is applet.jar may not reading the Name

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900