Installation :: Not Changed The Webconfig, Only Changed Pages' Content/code Behind?
Jan 13, 2010
After some code change I have published my AJAXised web application to the server and the application failes to work properly - something weird is going on, as all .aspx pages are displayed as an ASPX markup text (page declaration, html controls, etc.), rather than a page is being rendered as an html. I have not changed the webconfig, only changed my pages' content/code behind.
View 4 Replies
Similar Messages:
Mar 10, 2010
Is this normal? Whois and my windows hosting account at godaddy both say the DNS records for my domain are changed to the godaddy ones, but the domain still points to the old server. Do I have to wait longer?
View 1 Replies
Sep 14, 2010
For our ASP.NET project for school we had to build a sport event management web application.
We provide the application in three languages (English, Dutch & French) which you can switch all the time. This has worked all the time for all users, well that's what we think anyway.
Yesterday I found out that switching from one to another language isn't working for 2 of our users. So I started testing a bit and I always got this error.
I'll try to explain what happens behind the doors when changing the language:
First of all the current language is saved in a session so we don't have to check the user row every time a page loads. Besides that we save the language in the users row in the database.
Users Table:
Id int
Unchecked
Email varchar(150)
Unchecked
View 2 Replies
Jan 20, 2011
this web application must scan any webpage and save result if some data has been changed.
it should to search for key words and seek if their values has been modifyed/changed.
i will create this application with asp.net mvc.
what should i use to scan some webpage? if i will insert in my page any url of page which i will to scan, what should happens? are they some robots which looking for it if some content changes?
View 1 Replies
Aug 7, 2010
in a page that i have datagrid i see that if the content of the grid has changed in the meantime then occurs thwe follow message in all browsers(different in every browser)To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier.and then if i click yes resends the last post that was sended
View 32 Replies
Feb 3, 2010
I have a page that shows the value of a property of my model. The value of that property is changed in the action-method of the controller (that recieves the model as a parameter). It turns out that this line of code:
<%= Html.TextBoxFor(m => m.Problem)%>
does not represent the value that it got in the action-method-code (just the value it got from the POST), but this does:
<input type="text" value="<%= string.IsNullOrEmpty(Model.Problem) ? "" : Html.Encode(Model.Problem) %>" />
Is this a bug or is some caching-mechanism working against me?
BTW, it is especially annoying when using HIDDENs, because the user can never change that value at all... That's how I found out...
I have a demo-project demonstrating the problem here for download. It is based on the default-application, so very small.
View 2 Replies
Oct 7, 2010
I am a newbie in asp.net. I am trying to load the text and the URL into hyperlink from a database. After debugging, I found out that the value is successfully loaded into the hyperlink control, however it doesn't shows at the html code? Does anyone knows how this happened?
If myReader2.Read Then
Dim temp_panel As Panel
Dim temp_hyperlink As HyperLink
temp_panel = FindControlRecursive(Me, "Panel" & i.ToString())
temp_panel.CssClass = "accordionItem"
[Code]....
View 1 Replies
Apr 13, 2010
In a form control i have a listview and some textboxes and comboboxes.
When a list item is selected i add the data to the textboxes so the user can change them. non of it is databound. all the changes are made in the code.
I wanted to know the best way to find out if i the checkbox_SelectedIndexChanged event was triggered by the code behind or the user. is this possible through either the sender object or EventArgs. i didnt want to have to set bool values or something like that every time i change the values from the code. prefer a solution where i only have to add code to the checkbox_SelectedIndexChanged() method.
NB: the initial use for this is just to enable a save and cancel button (without having to remeber and compare values). There will be other uses for this later on as well.
View 1 Replies
May 3, 2010
i have one user control which has hiddenField name ='hdnShow' as runat='server'
my scenario is that i have a function in userControl name Show(MessageType);
void Show(MessageType msg)
{
switch(msg)
{
case MessageType.Success:hdnShow.Value= "Success fully saved";
[Code]....
when i execute it and tries to get value of hiddenField thru javascript it still predicts the initial value.
Strange thing is that when i make a textbox in webusercontrol and then try to set its value thru this function.
even the textbox value don't change we can see it on aspx page that value is still the initial one.
some site has asserted that we can do that thru preRender event but it is not working.
may be it is happening coz it is in updatePanel??
yeah i have tried EnableViewstate true and false both condition.
View 4 Replies
Dec 27, 2010
i am using jquery upload plugin- jquery.MultiFile.js in my project to upload multiple files in this file now i need a confirm button when delete file so i changed code
if(!MultiFile.trigger('onFileRemove', slave, MultiFile)) return false;
View 1 Replies
Apr 19, 2010
I did my drop down list that get it,s values from database and when run the application it did not work and compiler did not see the code
// aspx
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:DropDownList ID="DDlProductFamily" runat="server"
ondatabound="DDlProductFamily_DataBound"
onselectedindexchanged="DDlProductFamily_SelectedIndexChanged">
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="DDlProductFamily" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
// cs
protected void DDlProductFamily_SelectedIndexChanged(object sender, EventArgs e)
{
using (SqlConnection Con = Connection.GetConnection())
{
SqlCommand Com = new SqlCommand("SelectThumbByProductFamily", Con);
Com.CommandType = CommandType.StoredProcedure;
Com.Parameters.Add(Parameter.NewInt("@ProductCategory_Id",
DDlProductFamily.SelectedValue.ToString()));
SqlDataAdapter DA = new SqlDataAdapter(Com);
DA.Fill(dt);
DataList1.DataSource = dt;
DataList1.DataBind();
}
}
View 3 Replies
Feb 14, 2010
I have a gridview that loads with a new datasource on button click event. On the gridview (which is located in a table columm incidentally) are 2 columns, a descriptor and a checkbox. The problem is that after postback, the column widths change, the checkbox column expands and the other column contracts. Is there a way to keep the gridview column sizes the same after postback?
View 2 Replies
Mar 11, 2011
In ASP .NET 2.0, I've created a user control which is meant to work as a dropdown or popup by using an <input type="button" id="btnTogglePopup" runat="server" style="display:inline"... /> and <div id="divPopup" runat="server" style="display:none" ... /> the rest of the controls are contained inside this div, and they do mantain their values between posts, etc. This button 'runs at server' but it's not intended to post back or submit.It just toggles the popup (div) visible/hidden using Javascript client code by setting the div's style display property to "none" or "block" The problem I'm having is that when a page containing this control posts back, the state visible/hidden of the div is not maintained. If the user had the popup open, after the postback, it will display closed.I've read a bunch by now about ViewState & ControlState, and have the save and load contol state methods working, but when I step thru them they load old values (setting the popup to hidden all the time),and the popup doesn't work! I've come to think that b/c when the button is clicked,the visible state of the div is changed in client code w/o a postback, maybe I have to maintain this state info in a hidden fiel or something like that?At the same time I don't want to have a hidden field if it's unnecessary,and I may just doing something wrong.
View 2 Replies
Mar 7, 2011
gaining mode changing for formview in VB.The problem is that, the current mode im using was ReadOnly, and i want to add some button so thatit could connect to Edit mode in the same formview.Is it necessary to add modechanging and modechanged in the back code?
View 2 Replies
Aug 3, 2010
I have a select box in an asp.net form like so:
[code]....
This way I can set a session variable with the same name in Process.aspx:
[code]....
, and then set the value of the select box when the user returns later like so:
string referer = (string) Session["referer"];
foreach (ListItem i in refererSelect.Items)
if (referer == i.Value)
i.Selected = true;
The problem is when the form is sent to the server, the form key gets changed to "ctl00$content$refererSelect". Is there any way to fix this?
View 1 Replies
Jan 9, 2010
I'm working on a master page, I right click and add a content page, However now I am missing the code behind. So if I make a default2.aspx there is no default2.cs. I can't figure out what I did, It was functioning perfectly before.
View 3 Replies
Mar 19, 2011
When I try to Update or Delete a single selected item, it throws a "Row not found or changed." exception. Basically I only did a linq query and use most of the auto-generate function. I added LinqDataSource1_ContextCreated function,
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"
DataSourceID="LinqDataSource1" Width="100%"
onrowdatabound="GridView1_RowDataBound">
<Columns>
<asp:BoundField DataField="JobId" HeaderText="JobId" ReadOnly="True" />
<asp:BoundField DataField="JobTitle" HeaderText="JobTitle" />
<asp:BoundField DataField="Summary" HeaderText="Summary"/>
[code]...
View 1 Replies
Apr 14, 2010
I have a Model named "User" and have three property: Name,Passport,Password what's more, I made the Model Verification with these three property When I want to Login,
I do this:
public ActionResult Index([Bind(exclude="Name")]User user){} and my form in View does't include "Name" ,"Name" is null the problem comes....
when I use the MVC2 RC(Visual Studio 2010 RC),It works will the Model Verification didn't check the "Name" property there are no errrers in ModelState but in the MVC2 (Visual Studio 2010,I downloaded it two days ago,the newest version) I changed nothing! but it doesn't work!~ there is an error in the ModelState and tells :The "Name" is null =.=|||
View 2 Replies
Apr 19, 2010
I have over 300 content pages to create. Each has some standard styling. I would like to generate these pages, and was just wondering if there is a utility in web developer 2008 express to do so (otherwise I will just build one - but it would be great not having to do so!)
View 1 Replies
May 12, 2010
well what i want to find out is how can i figure out if some change occurd in page when postback , i mean when the first state of the page hahe any changes after postback . I thought maybe somehow to compare viewstaes but i can not find out how can i do that.
View 13 Replies
Feb 21, 2010
I use asp.net to download a csv file from server, like: ttp://www.asd.com.tw/files/items.csv , but when user click the link, the download file name change to items.xls. How can I let the file not to be changed?
View 1 Replies
Jul 24, 2010
I am trying to build the MVC Music Store from ASP.Net, my only problem is that the tutorial is made for asp.net 4.0 C# and mvc2 an i am creating it with asp.net 3.5 VB mvc 1. For now i found out a lot of thing wich will work much better in the new frameworks, but my webhost still doesnt support it, because they have some problemms with PLESK.
Now i have a problem i cant figure out, i cant update data from a dropdown list, in the database using the updatemodel, that are foreign keys. Just all other data wich are not foreign keys and primary keys are updateable. These are automaticly created in the sql entity model.
Here is my code.
[code]....
View 3 Replies
Jun 28, 2010
I'm using asp.net 2005,I have one textbox and datagrid. i want to change the datagrid when i entered some value in textbox.ok.I know textchanged event is best ...but my question is textchanged event fired only when i entered "enterkey or space or tab key"...i want to fire when i enter the value without "enterkey or space or tab key"
View 3 Replies
Oct 22, 2010
SelectedIndex_Changed event occurs when selection changes, and selection is changed or not is decided by comparing dropdowns current selectedIndex and its value in viewstate.
When we changes dropdown's selected Item using Javascript, it does not change the viewstate's value (which is previously selectedIndex). Now if you change dropdown's selectedIndex to any new index it will work fine, but if you select the previously selectedIndex (which we reset using javascript), then postback will occur, but selectedIndex_changed function will not get fired because in viewstate of dropdown, selectedIndex is same as the Index we select after resetting it using javascript.
View 1 Replies
Mar 19, 2010
using asp.net you could create a listbox_valueChanged event and handle the user selection inside the event handler. How could i implement such a functionality using asp.net mvc? I guess that the best way could be to use ajax techniques in order to manage the user selection on the client side.
View 2 Replies