I have a form that updates a gridview in an update panel via a search button. I also have a reset button that clears the form fields and updates the panel again (removing the search parameters). The problem is that the reset button throws an Event Validation Error (see details below) I have tried everything I can think of to fix this ...
Hi, right now I have a huge Solution in which we use javascript alerts via RegisterStartupScript for all messages and errors.. We were willing to modify all this to making something similar to the modalPopupExtender, or the extender itself in a way that doesn't require too much effort... I mean, to show a modalpopup on a single page I ne...
Anyone know of some code out there that does this already? I have a bunch of pages with data grids on them in an admin website they want to export them to Excel, was hoping someone had this written already - or if not I'll post mine when I am done.
...
Ok so I am trying to have error log file for the website running on ASP.net and C#.
I tried storing to drive with regular path.
Expecting it because it is in c# code (code behind page) it will pick up the server and store it there. (In the end it is a code that gets executed on server)
Unfortunatelly for me thats not true. It gets save...
Hi,
I'm currently implementing an RSS feeder control for a website. I'm planning to allow a limit of 10 items to be displayed on the homepage using a repeater control.
My question is how do I prevent the height of the control exceeding a certain dimension? I cannot guarantee how much content will be provided per RSS feed item.
One op...
I have a an ASPX Page with a Placeholder control declared.
In the Codebehind I create a UserControl I have and add it to the Placeholder.
protected void Page_Load(object sender, EventArgs e)
{
UserControl uc = new ChartUserControl();
myForm.Controls.Add(uc);
}
The UserControl in turn has a Placeholder, but in the Page_Loa...
If I have this:
<img ID="imgField" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem,"Name") %>' />
How can I add "images/" or any other string add on to the url?
I tried
ImageUrl=' "images/" + <%# DataBinder.Eval(Container.DataItem,"Name") %>'
And
ImageUrl= "images/" + '<%# DataBinder.Eval(Container.DataItem,"Name"...
Hi all,
I have developed an web application using Asp.net ( .Net Framework 3.0). In this application I have created a folder in the application directory. This folder contains an xml file to read and write data. when I tested this application in my local machine I can read and write data. But, when I deployed in IIS Ver5.1, I can read t...
I have a form for registration where the user has to select his university.
After this, the user has to select the faculty.
When a value is selected in the university dropdownlist, I want to use AJAX to update the faculty based on the select university.
How would I go about accomplishing this?
...
Writing to a file is not working after hosting the web application, whereas they were working while developing and testing in my localhost on debug mode. What could be the problem in writing to a file after hosting? Is there any special permission that should be given to the folders/file?
...
I need to reset an ASP.NET form. I am trying to use document.aspnetForm.reset() but then whenever I try to do anything after that I get an event validation error. How can I reset my form without upsetting ASP.NET's Event Validation? I CANNOT turn off event validation. Thanks!
...
I have this:
<img id="imgField" alt="" runat="server" src='<%# string.Format("images/{0}.jpg", DataBinder.Eval(Container.DataItem,"Name")) %>' />
and it's rendering %20's from the spaces in the databound Name. So I need to replace all of the "%20's" with ""
I tried
<img id="imgField" alt="" runat="server" src='<%# string.Format("ima...
Lets say I have a asp.net webforms website, and I have a paged gridview. Inside the gridview there are links to other pages in the site, these links may be the only links in the entire site to this content. Currently google and other search engines can probably only follow the links that appear on the first page since the gridview pager ...
I'd like to use an UpdatePanel in my UserControl. The problem is the .aspx page the control is dropped on will NOT have a ScriptManager. I will need to create the ScriptManager in the UserControl. However if the UserControl is used, say twice on the page, then placing a ScriptManager won't work because you can only initialize ScriptManag...
Hi All,
I am having a strange problem. Here is the scenario
Here are my files:
Project1.aspx
Project2.aspx
They are set up the exact same, including their Page_Load functions:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
If (Not Page.IsPostBack) Then
setPrevIndex(-1)
...
End I...
Yes, I have read most of the topics here, but I can't find an answer that works.
I have Three drop-down lists. The first is databound to grab distinct experiment names. The user selects, page posts back, and the second drop-down menu displays distinct time points. This is where I need help. I need to add an item to THAT drop-down list w...
Hi,
I have a validation problem
I have a listview, in the edit item template I have two composite controls with a textbox inside
I put a comparevalidator on it
<asp:CompareValidator ID="myCompareValidator" runat="server"
ControlToValidate="mycompositecontrol1" ControlToCompare="mycompositecontrol2"
Operator="GreaterThanEqual" Type="D...
Does .NET have some type of built in function that allows filtering on Gridviews? I've always programmed my filters by using a datasource generated by a dynamic stored procedure that takes parameters. But in order to keep the filter row always present I have to place the code to create the controls that are used to filter in three differ...
is there a way to find all script files added to a page in asp.net code behind? i am trying to add script dynamically but would like to check first if it already exist on the page.
...
My website look and feel is not 100% the same in Internet Explorer 8 as it use to be with Internet Explorer 7. My site is created with VS 2005 and ASP.NET 2.0.
How can I fix this?
Is there a way to fix this?
Edit:
For those who want to see my website, it is Located Here - Some borders are diff. and the Email/Username text box in th...