Web Forms :: Figure Out Though C# Whether The OS Is 32 Bit Or 64 Bit?
Jan 4, 2010
I need to figure out though c# whether the OS is 32 bit or 64 bit.
Does IntPtr.size is the right way to figure out the version? 4 => 32 and 8=> 64
Does Environment.OSversion.version.major is right way? 5 => 32 and 6=> 64
OR should have to check both of them?
View 2 Replies
Similar Messages:
Jul 29, 2010
I'm looking at a site with horizontal menu and sub-items for each item. When an item is clicked, a second horizonal menu is presented under the first, with all the sub menu items for that particular main item. I can do this with the asp.net menu? Almost seems like it would require a second menu control under the first.
View 3 Replies
Sep 30, 2010
how can I figure out from within a server control wheather it is being used in design mode or in runtime ?
View 5 Replies
Aug 10, 2010
I have a page that has a note to the user about the file they're about to download and a button to click to start the download. When they click the button, it does a Response.Redirect to another page with the following code in its Page_Load:
Response.Clear()
Response.Buffer = True
Response.AppendHeader("Content-disposition", "attachment; filename=" & FileName)
Response.AppendHeader("Content-length", FileSize.ToString)
Response.ContentType = "application/download"
Response.WriteFile(Page.ResolveUrl(FilePath))
Response.Flush()
Response.End()
I want the download to start and then I want this page (which is a tab in the browser) to close.
The code to download the file works fine. I just can't figure out how to close this tab when it's finished. I understand that Response.End means that I can't put any more code this page; it will be ignored. But how do I get this tab to close?
View 5 Replies
Mar 23, 2011
I've been researching an issue for quiet some time, but most of the posts I'm reading are older. I'm trying to figure out if there is a new solution to getting an asp:dropdownlist vertical scrollbar. I have several dropdownlists with fixed widths, but the data that populates these dropdownlist do not fit inside the width. Is there a recent - acceptable workaround or solution? I'm using Visual Studion 2010.
View 4 Replies
Jul 26, 2010
I'm trying to create a simple contact form for a website and cannot figure out how to properly configure it. I have a simple code I got off a tutorial (VB), that I pasted inside my Contact.aspx code-behind-page:
[Code]....
It brings up errors everywhere (declarations expected, etc) in the code-behind-page. I'm new to VB so I don't know what I'm missing. The above code is exactly the content in my code-behind. Does anyone know what I'm missing?
View 4 Replies
Jul 13, 2010
Working with VB code - I have code which displays a figure between brackets. The figure displayed is a count of the amount of entries made to my textbox and outputs to my placeholder- I hope I make sense here...???Anyways, I'd like to output the correct data and time (at time of textbox entry) instead of the count.
[Code]....
[Code]....
View 5 Replies
Apr 15, 2010
I have a .NET app (webforms - .NET 3.5) that is running on a 64-bit server as 32-bit (I checked the IntPtr.Size result). The compilation is set to AnyCPU so I would expect that on a 64-bit machine, the app would be run at 64-bit. There are many Third-party programs incorporated into the app, could they be causing a problem? How do I figure out why 64-bit compilation is not being done?
View 1 Replies
Oct 13, 2010
I'm trying to figure out how to use SSL for only certain pages on my website. It's an ecommerce site, and I don't want the whole site to use SSL, only the checkout areas. I'm not sure what's needed to set this up, is it all IIS, web.config file, etc. I'm hosting with Discount ASP.Net, and will purcase an SSL cert through them for my site.
View 5 Replies
Apr 5, 2010
I have sesssion time out issue. Mine is a very big application and 10 yrs old application, so I m unable to figure it out. I have these timeouts in my web.config file. Session is getting expired in 2-3 min or sometimes I m unable to figure the exact time. Here is my timeout sessions in web.config file
<httpRuntime maxRequestLength="102400" executionTimeout="360"/>
<sessionState mode="StateServer" stateConnectionString=" something" cookieless="false" stateNetworkTimeout="30" timeout="30"/>
View 7 Replies
Dec 19, 2010
I'm passing a variable between pages and want to print the value of the variable on my page and don't particularly want to try to get into figuring out the codebehind stuff. I can't figure out the syntax. I'm trying:
Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication2.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script runat="server">
Request.Querystring("letter")
</script>
I know I'm passing the variable correctly because it works in a query further down the page, so I suspect I'm just not using Querystring right.
View 1 Replies
Jul 13, 2010
I am trying to figure out what is the best way to go about creating functionality like this[URL]with ajax. I am just looking for the clock countdown functionality and the constant seamless update of the price.
View 5 Replies
Jul 9, 2010
while viewing Class diagram its images are not clear since they are of small size.Its width are increasing but not height. How to increase its height ?
View 1 Replies
Mar 31, 2011
I have an user control that reads the data from app_data folder and does some processing.In design time I'd like to show the row data in control placeholder (using GetDesignTimeHtml).To do that I need to figure out the absolute path to app_data folder on my project.The HttpContext is not available and HostingEnvironment.MapPath returns null.
View 3 Replies
Jun 15, 2013
how to show the progress bar when file is upolading
in windows application with C#
View 1 Replies
May 7, 2015
URL....I use this one as my login, and I addes hyperlink for Forgot Password. But why I can't access the FORGOT PASSWORD.aspx for every time I click it. And when I login it redirects t Forgot Password.How I can access it without logging in?
View 1 Replies
Apr 13, 2010
In our application we are using forms authentication, we have given defaulturl also in the config file. But the problem is that it is not getting redirected to the default url when the session timeout is occuring.
View 2 Replies
Mar 21, 2010
I have been presented with numerous word and excel docs. The goal is to put them online and bind to a database for the fields and also to store data for easy searching and reporting.
Has anyone done anything like this before?
I know the easy solution would be to create a database table for each particula form and also an ASP.net page for each form.
But then there are problems like printing and correct formating so it fits on the page, spaning multiple pages and so on.
And also is there any advice on how to write to PDF straight from the page?
View 1 Replies
Jan 18, 2011
I have a treeview named Treeview1 with checkboxes. I want the child checkboxes to be checked if parent is checked.
I am trying to use a simple code that I found on msdn :
[Code]....
For some reasons I got this error and I really dont understand why:
Type 'System.Windows.Forms.TreeViewEventArgs' is not defined.
warning BC40056: Namespace or type specified in the Imports 'System.Windows.Forms' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
View 3 Replies
Jan 25, 2010
Really getting better with VS, but I've mostly been displaying data. I'm on a new project and now and I have a lot of data entry forms to create. I created a form to enter data into an access db and got it working. I thought it would be cool to add an edit button that fired a gridview to load on the same page, under my original forms, so that that they could load up the data and edit or delete mistakes. But when I try to update the gridview, it also tries to post the original forms (text boxes), which fail because there is no data in them, and I get an error.
What is the proper way to handle this in asp.net? I'm sure this is kind of a common issue. I've done some searching, but the search terms, like forms and gridview, are kind of generic and I'm not coming up with anything useful. I just need a more experienced person to point me in the right direction and I'll get it figured out.
View 9 Replies
Jun 16, 2013
I do have combo box on my page where the items are retrieved from database.
I have an link label which leads to new form to add value for corresponding column in database.
After add the value, when i click refresh on my current page, the values in combo box must be updated.
I have used this
private void button3_Click(object sender, EventArgs e)
{
this.Refresh();
}
View 1 Replies
Nov 11, 2010
We have a number of projects and across projects cerrtain forms are duplicated.
Is there a way that I can create one form and reuse it across multiple projects?
View 2 Replies
Feb 19, 2011
I am using forms authentication, and for some reason it shuts off my images. I have tried putting them in the same directoy, and still nothing.
If I turn off forms authentication, they come back alive so I know my urls are correct.
View 2 Replies
Feb 24, 2011
My images show up find in design time, and if I have logged in and go back to the page, they show, but upon initial login,they aren't visible. What do I need to do?
View 1 Replies
Mar 7, 2011
In windows forms, there is the "show data sources" under the "data" menu item, and I love it because I can drag and drop the fields I need onto the form and it makes the control automatically.In web forms however, this option isn't there. Why? I try to drag and drop fields from the "server explorer" but it generates grids, I don't want grids I just want to drag and drop the text boxes or checkboxes etc.
View 4 Replies