asp.net-2.0

Updateable Google Sitemap for ASP.NET 3.5 Web App Project

房东的猫 提交于 2019-12-12 18:34:54
问题 I am working on an ASP.NET 3.5 Web Application project in C#. I have manually added a Google-friendly sitemap which includes entries for every page in the project - this is not a CMS. <url> <loc>http://www.mysite.com/events.aspx</loc> <lastmod>2009-11-17T20:45:46Z</lastmod> <changefreq>daily</changefreq> <priority>0.8</priority> </url> The client updates events using an admin back-end. Other than that, the site is relatively static. I'm trying to decide on the best way to update the <lastmod>

ASP.NET child window opens up on a new window on every post back

风格不统一 提交于 2019-12-12 16:18:34
问题 I have an asp.net page with a grid. On RowDateBound event mybutton.Attributes.Add("onclick", "javascript:window.showModalDialog('some.aspx?ID=" + mybutton.CommandArgument + "','window.self','dialogWidth:800px; dialogHeight:800px;center:yes; status:yes; scroll:no; help:no');"); on some.aspx page I have dropdowns and asp.net button that does a postback.On postback the some.aspx page opens again in a new window (Browser). How to prevent this? I appreciate your support. 回答1: I've had this problem

How do I get the dimensions of a mp4 video file?

心已入冬 提交于 2019-12-12 11:18:20
问题 I have a form that will accept and save a MP4 video file. I need to be able to get the dimensions of the video as well. This will be running on a server running ASP.NET 2.0 so any external libs must be able to be placed in the Bin folder as they can not be installed on the server. Any ideas how to get the information? If the same lib would let me transcode the video to flv that would be a huge bonus. Update: The server is XP Service Pack 2 with .NET Framework (2,0,50727,0) 回答1: There are a

Using validators to ensure that user filled either one of two required fields

穿精又带淫゛_ 提交于 2019-12-12 11:04:20
问题 I have an ASP.NET form for currency exchange requests. There are two text fields there: amount-source and amount-target. One of them must be filled and only one. How to implement this using Validators, if applicable? 回答1: You can use Custom Validators for this: <asp:Textbox id="textbox1" runat="server" /> <asp:CustomValidator id="valCustom" runat="server" ControlToValidate="textbox1" ClientValidationFunction="ClientValidate" OnServerValidate="ServerValidate" ErrorMessage="*You can only enter

ASP.NET 2.0, AppTheme: How can we utilize AppTheme in best way for my ASP.NET WEBSITE

杀马特。学长 韩版系。学妹 提交于 2019-12-12 05:18:55
问题 I am writing asp.net website which will going to be host on public network. I don't have very much knowledge about AppTheme specially utilizing theme, css and skin in asp.net 2.0. Previously i have worked with asp and asp.net 1.0 where i only write css class and write attribute class="***" inside every control where i want to have css. I don;'t know whether this is right practice with asp.net 2.0 because in asp.net 2.0 we have advance features like theme and skins. So can i have help from you

Could not load file or assembly DevExpress version 11.1 in asp.net(vb)

北城以北 提交于 2019-12-12 04:55:51
问题 I am working on project which is build on 2.0 framework of .net We were using devExpress version 7 before but the some controls of devExpress 7 doesn't supports modern browsers. So i installed and included devExpress version 11 assemblies. I copy/pasted assembly files of version 2011 into Bin folder of my project. I added reference in web.config file In web.config, I have now <add assembly="DevExpress.Data.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A"/> <add

What happens with this thread after the method finishes?

我与影子孤独终老i 提交于 2019-12-12 03:42:49
问题 In my ASP.NET application, a while down the stack I call the following code: Public Shared Sub Larma(ByVal personId As Integer) Dim thread As New System.Threading.Thread(New ParametrizedThreadStart(AddressOf Larma_Thread)) thread.Start(personId) End Sub Private Shared Sub Larma_Thread(ByVal personId As Integer) StartaLarm(personId) Thread.Sleep(1000 * 30) StoppaLarm(personId) End Sub While this thread is running, the rest of the request is handled and a response is sent to the client. However

capturing the enter key on textbox in asp.net for windows ce

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:21:40
问题 I want to capture the enter key on text for windows ce msie6.0 but there is no button for that so i cannot use default button property for the form tag itself. What else i can do to capture the Enter key? Thanks.. 回答1: I have used this function javascript in IE6, not sure if it will work in Windows CE <script language="javascript"> document.onkeydown = myOnkeydown; function myOnkeydown() { var key = window.event.keyCode; if (key == 13) { //13 is the keycode of the 'Enter' key //do stuff } } <

GridView changes not showing in binded datatable

僤鯓⒐⒋嵵緔 提交于 2019-12-12 01:07:34
问题 I have a GridView setup with I've tried to bind to DataTable .. I then make some changes to the GridView's values through the webpage .. Then I go behind the code of a button click, and see that the DataTable still has the old values in it ... ASPX Markup code for the GridView: <asp:gridview ID="ESBAndTSRValuesInputGridView" runat="server" ShowFooter="true" AutoGenerateColumns="false"> <Columns> <asp:BoundField DataField="Award ID" HeaderText="Award ID" Visible="false" /> <asp:BoundField

Facebook Toolkit 2.0 - Error when running it on a server with asp.net 2.0 installed

霸气de小男生 提交于 2019-12-11 17:23:30
问题 I'm getting the following error when trying to run the Facebook Connect toolkit on a server with ASP.Net 2.0 installed - I manually moved over System.Core and System.xml.Linq to the server from the 3.5 DLLs. Most other things seem to run, until I try to access the "users" object - more specifically, the getinfo() method. This is the error - anyone have any ideas? Thanks! Method not found: 'Void System.Xml.XmlReaderSettings.set_MaxCharactersFromEntities(Int64)'. [MissingMethodException: Method