Topics
-
-
- Administrators
- 1 reply
- 1k views
Is there a way to format the numbers displayed in the datatable. Suppose I am reading a 16digit number from from Excelsheet and getting this on to a Datatable for binding on to a Datagrid. But when that 16 digit number gets into DataTable say (1234567890123450 ) will automatically gets formatted as 1.23457E+15. But I want to retrieve the number 1234567890123450 as 1234567890123450 itself not as 1.23457E+15 Any help will be greatly appreciated :confused: :confused:
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 2k views
Hi, this is my first post, and hope I dont have to post many more ;) When i ve reached this forum what i want was: Open a website, login into, download a file I've looked in 27 pages of networking :p forum and now I can: Open a website and download a file, so... How can I login into a website? I've see some people suggest to do: http://www.site.com/login.php?username=strUser&password=strPass But it doesnt work in the web I want to login (neither user:pass@www.site.com) I dont know if there is a way to do this with this: Dim wc As New System.Net.WebClient wc.DownloadFile("http://www.site.com/file.php", "C:\test.xml") Thank you
Last reply by HelpImNewbie, -
-
- 2 replies
- 1.6k views
Hi, :D How to execute a javascript function when the asp.net webpage is first loaded? or refreshed? Currently, I put the javascript function in the Page_Load Method. Visual Studio 2005 is used. The asp.net language is in vb. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Page.RegisterStartupScript("MyScript", _ "<script language = 'javascript'>" & _ "function showIFrame(){" & _ "var iframe = document.createElement('iframe');" & _ "iframe.ID = 'testiframe';" & _ "iframe.name = 'testiframe';" & _ "iframe.frameborder = 1;" & _ …
Last reply by LiLo, -
- 0 replies
- 586 views
Hi, I got a datagrid that is an extended version of VB.net built-in datagrid which can support combox in the cell. After binding the combox to the datagrid and setting the ValueMember and DisplayMember for the combox. In order to get the ValueMember value, we can use the datagrid.Item(rowIndex, columnIndex). However, I wanna know is there any method so that I can get the DisplayMember value instead of ValueMember value.
Last reply by lamnic, -
-
- Administrators
- *Experts*
- 2 replies
- 1.1k views
daNamePhone = New SqlCeDataAdapter ("SELECT SUM(nec_amo) where nec_type = 'Food' As total from nec", ssceconn) is this sql command correct?
Last reply by Nerseus, -
-
-
- Administrators
- 3 replies
- 1.1k views
I've created a working MasterPage (there are a few niggles that need ironing out, but largely it works perfectly). This is based around a 3x3 table, with the middle and middle-right rows merged for the content provider. I've since been informed that i should be using div's instead of tables to layout the screen. Could someone please tell me whether this is right? If so, are there any good places or example on how to do this? Thanks
Last reply by fizzled, -
-
-
- Leaders
- 10 replies
- 1.8k views
I'm trying to create a version checker in C#. But I have a little problem. I have a webpage, containing only the version. (http://ircbot.aoe3capitol.nl/e107_plugins/ircbot_menu/version.php) I want that version to a double in C# so I can compare it with the version of the program. But the problem is, when I use Convert.ToDouble or double.Parse the dots disapear, so the version will become 35 instead of 0.3.5. How can I fix this? My Function: private void Checkversion() { System.Net.WebClient wClient = new System.Net.WebClient(); byte[] buffer = wClient.DownloadData(@"http://ircbot.aoe3capitol.nl/e107_plugins/ircbot_menu/version.php"); double lat…
Last reply by mskeel, -
-
-
- Administrators
- 7 replies
- 1.2k views
Hi, I had a look but couldn't find any thread which matched. I want to know how to implement a method that listens for a change of tab (e.g. someone clicks from one tab to a different tab) and for that click to trigger an event. J# would be ideal, C# is fine, VB probably wont help me see what to do I'm afraid :p Thanks.
Last reply by closet geek, -
-
- 2 replies
- 1.8k views
Hi, I created two classes, MenuItem.vb and MenuItemCollection.vb. The two files are in the same folder but for some reason the MenuItemCollection class cannot find the MenuItem class, and I get this error when I try to add the menu item to the collection. <%@ Assembly Src="MenuItem.vb" %> <%@ Assembly Src="MenuItemCollection.vb" %> <script language="VB" runat="server"> Sub Page_Load If Not IsPostBack Then Dim MenuItems = New MenuItemCollection() MenuItems.Add(New MenuItem(1, "Test")) End If End Sub BC30002: Type 'MenuItem' is not defined. Line 9: Public Sub Add(ByVal MenuItem As MenuItem) Line 10: Me.List.Add(MenuItem) Line 11: End Sub…
Last reply by Polar Bear, -
- 13 replies
- 13.8k views
I have a C# AddIn for Excel in which I get the Excel.Application object as follows: private Excel.Application applicationObject; public void OnConnection(object application, Extensibility.ext_ConnectMode connectMode, object addInInst, ref System.Array custom) { applicationObject = (Excel.Application) application; } I can get all sorts of information about the spreadsheet via methods on applicationObject, but I am unable to change anything on the spreadsheet through this object. If I do this ... applicationObject.calculateFull(); ... or this ... Excel.Worksheet ws = (Excel.Worksheet) applicationObject.Worksheets[1]; Excel.Range range = (Excel.Range) ws.Cel…
Last reply by Hippo Man, -
-
- Administrators
- 1 reply
- 1.1k views
what is the syntax to binds data from db into the text box?
Last reply by PlausiblyDamp, -
-
- 2 replies
- 4.2k views
I have several pages that are supposed to list all the files that are .pdf files in a certain directory. For some reason, the page displays one less file than is actually in the directory. What am I doing wrong? Here is my code: Sub BindGrid() Dim dirInfo As New System.IO.DirectoryInfo(Server.MapPath("/p1/Docs/JobOrders/6500 - 6599")) Dim arrFileInfo As Array Dim filesInfo As System.IO.FileInfo Dim filesTable As New DataTable() Dim drFiles As DataRow Dim dvFiles As DataView Dim ofn, ext As String Dim charCt, fileCt As Integer filesTable.Columns.Add("Name", Type.GetType("System.String")) filesTable.Columns.Add("LastWriteTime", Type.Ge…
Last reply by Cags, -
- 0 replies
- 1k views
Hi, I have a ASP.net (1.x) datagrid that lists the Production sequences (from a SQL database). The row has the following details Sequence Order Product To Produce Production Date Capapcity What I want is to have the Sequence Order field in a dropdownlist so that the user can change the sequence. i.e lets say the sequence orders is 1,2,3,4,5,6,7,8,9. If the user changes the 6 sequence to 2 , the row should automatically become the second row. (It is similar to what is in Sharepoint Portal server where you can change the sequence order of items in a list) Thanks
Last reply by Rattlesnake, -
- 3 replies
- 1.8k views
Hi, How do we pass an integer argument from C# into a javascript function? I declare an integer variable first, then I pass it into the javascript function. But the javascript code didnt execute correctly. //First, an integer variable is declared int numofItems; // Returns the Javascript code to attach the context menu to a HTML element public string GetMenuReference() { return String.Format("return __showContextMenu({0},numofItems);", Controls[0].ClientID); } //Then the Javascript is called when the oncontextmenu event happens ctl1.Attributes["oncontextmenu"] = GetMenuReference(); Initially the javascript function has the {0} argument only and it…
Last reply by Diesel, -
- 1 reply
- 919 views
I have some javascript that takes data that is being typed into a html text area, and counts the number of characters entered on the keyup event of the textarea. I currently have set the maximum number of characters to a default value in code, ideally I need that value to be easily changed depending on who the user is. I know that I can change the value be introducing a query string variable and examining that variable each time. However I feel that this option is unsafe as the individual user can simple alter the value at random. I have tried to use a textarea, by setting the value in the textarea on the page load event, and then passing the name of the textare…
Last reply by Diesel, -
- 1 reply
- 844 views
Hi, :) Why does the asp.net controls dissapear when javascript method is called? Using Visual Studio 2005, I created an asp.net webpage where I placed button controls and a radio button list on the webpage. I have also added a javascript file to the asp.net project. The javascript file is called Frames.js. It is responsible for displaying an IFrame. The javascript method inside Frames.js is called showIFrame(). Under the page_Load(...) method, I called the javascript function using: Page.RegisterClientScriptBlock("MyScript", "<script language=javascript src='Frames.js'>") Button1.Attributes.Add("onclick", "showIFrame()") When I ran the web app…
Last reply by Diesel, -
- 4 replies
- 2k views
Hi, How do I call a javascript function from ASP.Net (VB) code? I added a javascript file into the asp.net project and wrote some javascript statements to display an IFrame. The javascript function in the jscript file is: <script language = "javascript"> function showIFrame() { var iframe = document.createElement("iframe"); iframe.id = "testiframe"; iframe.name = "testiframe"; iframe.frameborder = 1; iframe.height = 185; iframe.width = 175; iframe.src = "C:\Documents and Settings\RadioButtons\Office.jpg"; window.document.body.appendChild(iframe); return false; } How do I call this function from ASP.Net(VB) code? :) e.g Form1_Lo…
Last reply by Diesel, -
- 1 reply
- 1k views
This is the error I got: :confused: fatal error C1084: Cannot read CLR runtime data file: \debug\stdafx.obj': <Unknown> : this didn't happen before. What can be the problem? Thanks in advance. :)
Last reply by mskeel, -
-
- Administrators
- 2 replies
- 9.5k views
Is there a way to trap when a USB drive is plugged into the computer. Right now I just have a timer that checks every 15 seconds to see if my drive is plugged in. This isn't a very good solution. I was hoping there is a way to have an event fired whenever a new USB device is plugged in or a new drive is add. Thanks!
Last reply by jo0ls, -
-
- 4 replies
- 2.5k views
Hi, I was wondering if it is possible to make a form in vb.net have round corners at runtime? I found a few examples on how to do it in vb6 with gdi32, but i can't get it to work in .net. Any help would be appreciated. Thanks in advance.
Last reply by degrande107,
-
Who's Online 0 Members, 0 Anonymous, 53 Guests (See full list)
- There are no registered users currently online