I have a datagrid in ASP.NET using VB.NET code which, when loaded it takes a parameter from the URL called DexNumb. When this parameter is brought it, it highlights the entire row Red and makes it bold but if the datagrid is long and some elements can only be viewed by scrolling down, it will not go straight to the elements, the user must scroll down in order to view them. Here is the method that is launched from the datagrid on Page_Load:
...
User Profile
Collapse
-
setting focus to datagrid item
-
Calling Javascript from XML?
I'm displaying XML through ASP.NET from SQL Server 2000 using a CSS and there are a few alert boxes I want to display from the XML within my ASP.NET webform. I basically want to place a call contained within the XMl to call a JavaScript function. I think I can do this within the XML and it will be displayed in the asp.net but I can find a clear tutorial or example on the web. Anyone have any suggestions where I could find one? Thanks alot. -
I've been trying to do what you said but a regular filestream reader will not accept the byte property which is what my file consists of. I am using the following code:When I run this code, it places an 8 (which is what nBytes is assigned to) into a binary file, however it places...Code:For i = 0 To br.BaseStream.Length() - 1 nBytesRead = br.Read(ByteArray, 0, nBytes) bw.Write(nBytesRead) Next
-
Hi again Plater,
I tried to read in the file I wanted into that file but it wouldn't work. I looked up the reasoning why it wouldn't work and it seems that you cannot create a binary file then read it on the fly within the same program so I created a new one to read the file after all the files within the folder have been created. So my question is now, how to read the 8 bytes at a time inside the reading function. I've...Leave a comment:
-
Hi Plater,
Thanks for the RE: The only problem with doing those two steps is the amount of loops I have to be able to get exactly what I want from the initial Hex file. The following is how the program stores the read-in values:
...Code:'---Loop to get Coords out of intial Byte Array and place into secondary Byte Array For k = 0 To count 'Loops through entire binary CGM Byte Array
Leave a comment:
-
Reading bytes from a file
Hello,
I am reading binary in from a graphic file and storing it in a Byte Array and rewriting the binary data to a text file. Give that the bytes look something like:
ff ff f3 34 00 00 a3 f4
00 00 d3 a2 ff ff f2 ad
I am trying to capture four bytes at a time, place them into a variable and convert them into a readable value in Decimal using h = Val("&H" & someVariable).... -
Thanks a lot. Most times I know what to do but I work all alone and it just takes someone it bounce it off from before I know the idea of what I need to do. Here is what i used just in case it may help out someone if they're in the same situation:
...Code:For k = 0 To count If (bytes(k) = 164) Then For z = -19 To -12 bv.Write(bytes(k + z)) Next End If
Leave a comment:
-
Hi Plater,
I have tried that so many different ways but the syntax only clicked in my head when you posted your response. Everything works fine but considering the following code:
...Code:Dim byteRead As Byte Dim j As Integer For j = 0 To br.BaseStream.Length() - 1 byteRead = br.ReadByte bytes(j) = byteRead count = count
Leave a comment:
-
Retrieving position of a byte within a Hex file using vb.net
Hello everyone,
I am trying to retrieve a byte within a hex document. I am looking for the position of 'R', which I have found but I need the hex value located 28 spaces before the position of 'R'. Here is the code I have been using to find the 'R' value:
...Code:Dim byteRead As Byte Dim j As Integer For j = 0 To br.BaseStream.Length() - 1 byteRead = br.ReadByte
-
My problem is that the last row is being used as the source to update all tables. How can I fix this? Please help!!Leave a comment:
-
Editing entire Datagrid
Hi,
I've brought a table from SQL Server into a Datagrid using VB.NET and have changed all fields to textboxes so I can edit any field and only save once. Everything works fine except the save button. I tried to use stored procedures but this is almost working. I've been working on this for a long time and I still need some help. If anyone could give me some idea it will be greatly appreciated. Here is my function:[code=vb]
... -
Ok, I placed a different button inside the datagrid to access the save method and now I'm getting a much simpler error. I just wanted to post it so nobody wastes any time trying to figure out the last error I posted. The error I'm getting now is:
I've tested it numerous times and this error is displayed when I click on the save button and it's coming straight out of my method. Any thoughts...Leave a comment:
-
My first problem was that I didn't properly call my doSave function. I just put a new button inside my page but outside the datagrid (above the datagrid code) and when I attempt to save it directs to the function but now I get a crazy error message that looks like:
Has anyone else got this error before. If anyone could help me out your help will be greatly appreciated....Leave a comment:
-
Saving using datagrid in VB.NET from SQL Server by SAVE button
Hi all!
I am attempting to bring an SQL Server table into ASP.NET using the datagrid . I have set all cells to be a text box by which the user can just click on and edit the cell. I have a save button and when I click the save button the page reloads and the new data is in the cell, however when I close out and come back in the data is no longer there. I have a databind() subroutine which includes a postback included within my code... -
Ok, I switched my code as follows:
...Code:<%@ Page Language="VB" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.SqlClient" %> <html> <head> <script runat="server"> Public Sub Page_Load(Source As Object, E As EventArgs) If Not Page.IsPostBack Then BindData() End If End Sub
Leave a comment:
-
Using datagrid in ASP.NET to get table from SQL SERVER-Not updating
Hi Everyone!
I have a ASP.NET webform that brings data in from SQL Server 2000 and displays it on a page. I want to update the webpage while in IE using the following code:
...Code:<%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.SqlClient" %> <%@ Import Namespace="System.Data.OleDb" %> <html> <script language="VB"
-
Query search not displaying duplicates
Hi Everyone,
I'm trying to take 2 fields from an Access DB and put them in a report using a query. I want the query to display a part number and a figure index. I only want the part number to be displayed once and the figure index to be displayed as many times as it exists. I tried to filter the query by setting the "unique value" property to yes in the properties window but that didn't work. Anyone know what to do? TH... -
-
Setting maximize to default when opening a form or report
Anyone know how I set the property to open up a report or a form in a maximized view inside the database window? Right now all the windows open up minimized with min/max buttons on the form/report. I would like them to be displayed full size (inside the database window) when opened. Thanks! -
No activity results to display
Show More
Leave a comment: