4
Answers

Modifying html output on page load

martin

martin

15y
3.1k
1
Hi,

I am trying to replace a string in the HTML of an aspx page before it is shown to the user. I thought I could handle the Page_Load event and from there access the HTML in the Response object, but apparently not. Maybe it should be done it in another way?

The aspx page I want to modify is part of a SharePoint site.


Answers (4)
1
Jignesh Trivedi

Jignesh Trivedi

NA 61k 14.2m 10y

Hi,

No
Each model does not become a DB table, If you decorated them with "Table" attribute or define dbset property in context class then it become DB table.

Generally db table name and column name is same as model class name and properties name but we can change also.

Please refer
https://msdn.microsoft.com/en-us/magazine/hh126815.aspx

hope this will help you.

1
Suraj Sahoo

Suraj Sahoo

NA 10.2k 922.3k 10y
Follow the below link for better understanding.
http://www.google.co.in/url?q=http://www.entityframeworktutorial.net/code-first/entity-framework-code-first.aspx&sa=U&ei=z6rbVIn4A4zluQT6poHgBg&ved=0CAsQFjAA&usg=AFQjCNHXrGApef8mPSHLY8B5kkpoArcnLQ
What happens is you create a class with properties and you specify the id or primary key with key attribute. Thus when enable migration is done it creates the migration which picks the classes and its properties and on update database the tables are created based on the connection strings.
accept if helps
thanks
0
Rollin Shultz

Rollin Shultz

NA 5 631 10y
Thank you Suraj and Jignesh, I will study your suggestions.