Purpose Of <meta Name="MSSmartTagsPreventParsing" Content="TRUE">?
Jan 30, 2010What it does? is there any pros to add this in for all browser?
View 4 RepliesWhat it does? is there any pros to add this in for all browser?
View 4 Replieshow can i add title and meta tags for content pages in a project base on master and content page(dinamically) ?
i used the blow method for master page :
[code]....
and the error is :(in line *)
Error 17 'System.Web.UI.MasterPage' does not contain a definition for 'SetMetaTags' and no extension method 'SetMetaTags' accepting a first argument of type 'System.Web.UI.MasterPage' could be found (are you missing a using directive or an assembly reference?)
I'm trying to add meta tag into head tag in my master page.
Master page has simple html code:
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[Code]....
When I watch in debug mode I see that Page.Header.Controls increased. But when I look through html-code, I find that nothing changed.
How to add meta tag content dynamically. i have metat tag descriptions in my sql Database. so i need to load it dynamically.
View 3 Repliesi am hari,i am working on asp.net 1.1,i want to update meta tag content in page load, htmlmeta isnot working in asp.net 1.1
View 4 RepliesI programatically add meta tags to the head of each page using htmlhead, specifying the name and content. I now need to add new meta tags with property and content.
View 1 Repliescreate db driven meta keywords/description. I would store these records in a database, xml format i presume; since it would be per culture.How would i go about doing this?
View 4 Repliesi have some question about the autopostback. when i set a drop down menu to autopostback to true, the content editor in the same formview is disappear..
View 1 RepliesIt took me a little while to figure this out, but the AllowPaging="true" on the FormView seems to be the culprit. I don't have much experience paging from a FormView, but for this requirement the customers wants this kind of UI.I have a FormView with DefaultMode="Edit", which is bound to an EntityDataSource. One of the entity's properties, "ExternalID", determines whether some of the other properties in the entity are read-only. For example, if IsExternal==null, the FirstName, LastName, and Email fields should be rendered as TextBoxes. If IsExternal!=null, the 3 properties should be rendered in Label controls.
View 2 Replieswhat is the use of delegates. why we use delegates.
View 1 Replieswhat i want to do is to get the current ip i have (with a site as, http://whatismyip.com/) and send it to paypal sandbox so i can get a response (of course i haven't started the paypal code but i first need to be able to get a communication from paypal,non?)Ok the problem is that if i start a new web site on IIS, hit the current ip, i get my router administration console as a response.I have tried to change the port on a new site to 81 or 82 or 83 but i get a page not found.
View 11 Replies<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" onrowediting="GridView1_RowEditing">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Button ID="btnEdit" runat="server" Text="Edit" CommandName="Edit" />
<asp:Label ID="lblFirstColumn" runat="server" Text='<%# Eval("FirstColumn") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label ID="lblEditMode" runat="server" Text="This is Edit mode"></asp:Label>
</EditItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
dt.Columns.Add("FirstColumn", typeof(int));
dt.Rows.Add(100);
GridView1.DataSource = dt;
if (!IsPostBack)
GridView1.DataBind();
}
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
GridView1.DataBind();
}
If I change if (!IsPostBack) GridView1.DataBind(); to GridView1.DataBind(); and try to put GridView into Edit mode by clicking btnEdit, then I get the exception: Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. But if I set EnableEventValidation to false, then GridView1 won't enter edit mode ( ie - GridView1_RowEditing doesn't get called ). BTW - same problem also occurs with other databound controls ( DataList, DetailsView ) Page. EnableEventValidation gets or sets a value indicating whether the page validates postback and callback events. When the ableEventValidation property is set to true, ASP.NET validates that a control event originated from the user interface that was rendered by that control. A control registers its events during rendering and then validates the events during postback or callback handling.
a) Why must postback and callback events be evaluated? and how exactly does evaluation happen?
b) Why would calling GridView1.Databind() on each postback cause exception when trying to put it into edit mode?
c) I also don't see any reasons why disabling EnableEventValidation prevents GridView from entering edit mode?! Thus why did.
Can anyone tell me what does CAPTCHA do as far as security issue is concerned?Registration form of many sites have this field but how it works?
View 5 Repliesi want to know what is purpose of using masterpage?
View 5 Repliesi would like to know what the StringWriter Class is about and when we should use it.
View 2 Repliesfound a .gpState file in the folder,What is the purpose of gpState file?
View 2 Repliespurpose and mechanisms of the postback event? I am becoming very confusined when reading and am hoping that someone could explain it to a beginner.
View 17 RepliesWhat is the purpose of BrowserFile1.browser?
How to use it?
What is the purpose of Handler (.ashx files) and what is the use ?
can i get any sample ?
What is the purpose of the PropertySpecified pattern used by XML Serialization ?
View 1 RepliesI have a problem with URL of my application..................
I want to rewrite my url for security purpose......Like....
suppose my application URl is .....http://localhost/MyApplication/Product.aspx
But i want to change this url with......... http://localhost/MyApplication/MyProducts
In documentation I have read:
„Use the PostBackTrigger control to enable controls inside an UpdatePanel to cause a postback instead of performing an asynchronous postback."
I made simple application and I do not see difference between using PostBackTrigger and standard postback.
I have three buttons: two inside update panel and one outside update panel. When I click btnUpdateAsync in event handler I set text property of lblUpdatePanel and lblNoUpdatePanel and only lbl that is inside update panel is chaned if web browswer - so this is ok.
Whant I click btnUpdateInUpdatePanelSync all page is refreshed and both lablels are changed in web browser.
When I click btnUpdateOutsideUpdatePanel I see the same behavior.
If I used button that is not associated with PostBackTrigger I would get the same behavior - so what is the purpose of PostBackTrigger?
This is my app:
[Code]....
protected void Page_Load(object sender, EventArgs e)
{
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
}
protected void btnUpdateAsync_Click(object sender, EventArgs e)
{
lblUpdatePanel.Text = "btnUpdateAsync_Click";
lblNoUpdatePanel.Text = "btnUpdateAsync_Click";
}
protected void btnUpdateInUpdatePanelSync_Click(object sender, EventArgs e)
{
lblUpdatePanel.Text = "btnUpdateInUpdatePanelSync_Click";
lblNoUpdatePanel.Text = "btnUpdateInUpdatePanelSync_Click";
}
protected void btnUpdateOutsideUpdatePanel_Click(object sender, EventArgs e)
{
lblUpdatePanel.Text = "btnUpdateInUpdatePanelSync_Click";
lblNoUpdatePanel.Text = "btnUpdateInUpdatePanelSync_Click";
}
i have to implement for online payment getting for donation for a social community
View 1 RepliesDuring a recent interview the following question was asked.
- A Master page which contains
- An ASPX web form page which contains
- A Web User Control inside the page which contains
- A button to fire some code in a button_click event
The Init Event will fire (Inner Most to Outer Most)
aspx.page Begin Init
-> Inside user control Page_Init
-> Inside master page Page_Init
-> Inside lifecycle page Page_Init
aspx.page End Init
and Load Event will fire
aspx.page Begin Load
-> Inside lifecycle page Page_Load
-> Inside master page Page_Load
-> Inside user control Page_Load
aspx.page End Load
Why does ASP.NET framework support different execution order in Load() and Init().This was the question asked in interview.I have no idea about what the interviewer expecting from me.
If you have a very large stored procedure, is it okay to just use the commands just once in the script?
ANSI_NULLS ON and QUOTED_IDENTIFIERS ON?I really don't understand the purpose of these commands?