VS 2010 Down Side To Use Compute Method

Mar 9, 2012

Is there a down side to using the Compute method, like this, [code] or would it be better to add the query to my datasource?

View 3 Replies


ADVERTISEMENT

Call A Method That Compute Some Data That Method Is On Another Form In Windows Form Application?

Mar 17, 2012

i want to which way is better when concentration is on processing speed. i want to call a method that compute some data that method is on another form in my windows form application then what you prefer is better way 1) to call that method in another form and use returned value or create similar method in form where it is required.i want to make it's processing fast.

View 3 Replies

Side Of Defining Extension Method?

Dec 16, 2011

I've got a bunch of duplicate code that looks like this:If mValue is Nothing Return ""Return mValue.ToUpper

I defined the following extension method to reduce duplicate code:

[Code]...

View 3 Replies

Call Server Side Method From Javascript But Get Errors When Setting EnablePageMethods To True?

Mar 25, 2011

I am currently adding keyboard shortcuts to our web application, so from JavaScript.So far, it has consisted mostly in triggering the click events of buttons already exposed in the user-interface.Now, I would like to add another one which redirects to another page.The new page URL needs to be generated based on elements from the source page query string.Basically, I have a date in the query string and I want to generate a new URL for the next day.

View 1 Replies

VS 2010 - Compute Max Value Of A Column?

Mar 9, 2012

I've created a DataSet with DataTable and I'm adding values of DataRow - Zvodp [m] in a For loop. Data type of this column is Double. When I want to use Compute method like this:

TB.Text = DataTable1.Compue("Max(Zvodp [m])", Nothing)

I get this message:

Syntax error in aggregate argument: Expecting a single column argument with possible 'Child' qualifier.

View 2 Replies

C# - Send An Object From Client-side Javascript To Server-side Code Via ASP.NET?

May 23, 2011

Can I send an object from client-side javascript to server-side code via ASP.NET ?

View 5 Replies

Fire Client Side Code From Server Side At Runtime

Apr 13, 2010

I know this defeats the purpose of client side vs. server side (refer to title of this thread). What I would love to do is build my own custom progress indicator on the client showing how far a server side code has progressed. I figure if I could only get a JavaScript to fire and render a value of some control at pre-defined intervals while the server is working I could make it happen - but alas I'm beginning to believe that this is impossible. Below is some code that performs three 2 sec loops. At the end of each I want to change the visible value of a control on the browser. [Code]

View 8 Replies

Html - Webpage Stacking Xml Documents Instead Of Showing Side By Side, CSS?

Feb 23, 2012

I have a basic asp.net web page. I have a menu bar divided into 3 columns. Each column displays an xml file. However instead of showing them side by side it displays them one on top of each other. i think it might be to do with my css?

My asp.net web code:
<div class="menubar">
<div class="menuleft">

[code]....

View 2 Replies

Javascript - Format Data (client-side) For (server-side)

Jul 13, 2011

Using the following script:

$("#some_button").click(function() {

var changed = [];

[CODE]...

I need to send back the id, the old value from _1 and the new value from _0 back to the server. What is the best way to format this data so I can easily extract the data from the server side so I can easily email someone for example to let them know which textboxes have changed, what the old values were, and what the new values are

At the serverside level, I am using .NET-3.5 (VB). I know how to send the data bacl. and how to email the data, I just wanted to know how to best format the data at clientside before sending it back. I could have upto 50 sets of id, old, and new values to send back. Sorry for not making that clear earlier.

Example:

How can I modify the script above to generate this?

[
{
"id": "name_0",
"new": "text",

[CODE]...

View 3 Replies

Making A Button That Can Move In A Path Random Up,down, Side -side, Etc?

Dec 18, 2011

I'm working on a 2d game. making a button that can move in a path random up,down, side -side, etc. in a selected space. and once hits end of the form to slide out and reappear at other side of the selected space and do same thing over.

View 1 Replies

Asp.net - Add Bottom Side-to-side Scroll Bar To ExtJS Grid?

Oct 14, 2010

Here are my two grids -- they are ExtJs grids however we wrap the declarations in vb.net code:

Dim VehicleOptionsGrid As New Framework.WebControls.Grids.Grid
With VehicleOptionsGrid
.ID = "VehicleOptionsGrid"
.Title = "Vehicle Options"

[code]....

Using javascript, is there anyway I can add a bottom scroll bar to these grids? Doesn't seem like we have a wrapped command to do it...

View 1 Replies

Html - ASP.NET VB Nested Listviews Appearing Side By Side

May 14, 2011

I currently have a parent Listview and its child Listview displaying in the centre column of an HTML page that consists of three columns left, centre and right. And all looks very good. However I would like to display the child list view in the right column beside the parent list view.

To do this it seems I must somehow generate from the code behind page a new row in the table every time the parent Listview displays a record of its data and then some column HTML so the first child list view will appear in the right hand column.

View 1 Replies

Timers On Server-side - From A Client-side Piece, Call Off To A Server-side Piece

Apr 22, 2011

I'm trying to, from a client-side piece, call off to a server-side piece. I need to do this synchronously. On my server-side code, though, I'm calling off to another piece of code, which I want to have a maximum of, say, 10 seconds to return a value. If I don't have a response within 10 seconds, I want to force my own server piece to set my result equal to 0, and return to the client.

Here's what I have on my server-side code so far:

Public Function GetWebResult(ByVal inputParameter As Object) As WebReturnObject Implements IWebInterface.GetWebResult
Dim result As New WebReturnObject
Dim webItem As WebItem = Nothing

[CODE]...

I realize this code is not functional. The problem is that I'm unsure how I would go about getting back into GetWebResult to set the appropriate return values before it is sent back to the client.

View 1 Replies

Change The Execution Sequence (Client Side Click, Server Side Click) To (Server Side Click - Client Side Click)?

Jun 22, 2011

I am struckup with a problem from last two days. I am creating a web application using VB.NET, Ajax & RAD Controls. When user clicks on a button I want to open a RAD Window and show the list of ledgers available to the user, so that he can select one from the list. And to open that window I have to call a java script function from client side, which is already achieved using the below code.

[Code]...

View 8 Replies

Asp.net - Server Side Doesnt See Changes On Client Side?

Jan 25, 2012

I add an option to a select with jQuery. When I save with an asp button, I don't see the changes on the server side in the click event.

And the HTML is all correct after I add the option.

Is it a coding problem or I don't understand something?

$(selectCourant)
.append($("<option></option>")
.attr("value",$(dropdown).val())
.text($(dropdown + " option:selected").text()));

View 1 Replies

Duplicate From Controls For Side By Side Comparison

Jun 18, 2012

I have an application which have multiple tab pages. On of these pages I have a group box with many controls that do something.Now the problem is I want to add exactly the same group box by the current one that can have different paparemeters.This is exactly the way that i want to add comparison capability between to set of parameters.I have more than 500 lines of code that responde to changes of these parameters and does something.Is there any way to replicate the the whole gropbox and use the same code for both and and being able to difrentiate between gropboxes.I think there was an array control in vb 6 but I am not sure if this the best way to do this in vb.net.What is the best way to do this for the least amount of changing the code and wasting time.

View 1 Replies

VS 2010 What's Equivalent Method In .NET Of Picture1.Scale Method In 6.0

Jun 12, 2011

What's the equivalent method in .NET of the Picture1.Scale (0,0)-(10,10) method in 6.0?

View 2 Replies

IDE :: Toolbar On The Left Side Of The MS - VB - 2010 IDE?

Oct 23, 2011

How do I mimic (in a windows application project) the toolbar on the left side of the MS Visual Basic 2010 IDE? I've tried all the container and menu options as provided on the IDE. I assume that it may be a combination of the IDE options and component properties, but have not been able to find the correct combination(s).

View 2 Replies

VS 2010 Call The Same Method In A Method While Threading?

Jan 29, 2012

I have a Application that Crypts all Files in a Directory and the Subdirectories

Public Shared Sub CryptAllFiles(ByVal crypt As Object)
'check if this dir exists
Dim vDirInfo As New DirectoryInfo(vPath)
If Not vDirInfo.Exists Then Exit Sub
'get all files' sizes in current path

[Code]...

View 3 Replies

VS 2010 Make A Simple Appbar On Right Side Of Screen

Aug 20, 2011

I'm trying to make a simple appbar on the right side of the screen. I have accomplished this many times before.. but I can't seem to get it working in Windows 7. The placement seems right, and as far as I can tell the messages seem to be in the right order. I have tried both Windows.Forms. Form BorderStyle.None as well as Windows.Forms.FormBorderStyle.FixedToolWindow. [code]

View 4 Replies

Loading Forms Side-by-side?

Jul 3, 2010

I have form 1 and form 2 form 1 is already loaded. When i load form 2 i want it to apprear right next to form 1 on the right hand side. What code should i use to accomplish this.

View 3 Replies

Sorting 2 Arrays Side By Side?

Jan 18, 2012

Basicly I have a program that retrieves data and parses it, which is fine, so it starts from:11:981.8 which equals to November 981.8 now what I have done is split the "November" and the "981.8" into 2 different arrays, with other similar data, now what I need to be able to do, is sort the array in either Ascending or Descending order, however keeping in tact, the November and 981.8 side by side in a list box.

My current code is:

Private Sub sortData(ByVal strYear As String, ByVal strSort As String)
lbDispData.Items.Clear()
Dim strData As String = My.Settings.usage2011
Dim arrRawData() As String

[Code]...

EDIT: Just to mention, there are many more values, not just November and 981.8, there would be for example December and 128.1, January and 191.1, etc.

View 2 Replies

VS 2010 - Select The First Field Listed On The Left Side Of The Window

Nov 5, 2010

I just started using VS 2010. This product is supposed to be so much better than VS 2008 yet I'm noticing a couple of glaring things that are failures if you ask me.

1. When designing a Gridview, after having clicked on Edit Columns, in VS 2008 I could select the first field listed on the left side of the window, set a property--say headStyle-- and set the Horizontal Align to Left. Then if I clicked on the next field, that same property would still be selected on the right side of the window. In VS 2010, I have to go through finding the property and then expanding it and selecting it for each individual field. While it seems like a small thing, it's time consuming and kind of a pain. Is there some reason they couldn't have made it behave the same as in VS 2008?

[Code]...

View 2 Replies

VS 2010 Forms Startup Position To Be Right Side Of Users Screen?

Nov 8, 2011

I have my main form which will have the option to hide itself and open up a mini version. I would like this mini version to start at the top-right of the users screen.I have went through other posts and understand that you can set distance from top-left.

View 9 Replies

Butterfly Program - Animation - Butterfly Is Going To Be Moving From Side To Side In A Slightly Upward

Jun 3, 2011

I am starting a butterfly program and having an issue and really just barely have it started and would like to get some helpfeedback on how to do this. The following is the instructions and I will make a second post on what code I have so far...The butterfly is going to be moving from side to side in a slightly upward assent when the animation starts. You need to build a set of controls that allow the user to control whether the butterfly ascends (up) or descends (down) and also allows the direction of the butterfly to change (left or right). The best way to implement this feature is through the use of keystrokes that when pressed act to control the direction of the butterfly. Whether you implement this feature through keystrokes or controls, make sure that the feature is communicated to the user.

Butterflies fly by opening and closing their wings. So it is expected that the butterfly will alternate between opened and closed as it wings its way across the form. If the butterfly is moving right, make certain the butterfly graphic displayed shows the butterfly as moving toward the right. If the butterfly is moving to the left, make certain the butterfly graphic displayed shows the butterfly as moving toward the left.

If the butterfly reaches the top of the form in its assent, it should wrap around to the bottom of the form. If the butterfly reaches the bottom of the form in its descent, it should wrap around to the top of the form. If the butterfly reaches the left edge of the form, it should begin flying toward the right side of the form. If the butterfly reaches the right edge of the form, it should begin flying toward the left side of the form. If the user changes the direction of the butterfly, insure that the correct graphics are used in relation to the direction of the butterfly and that the butterfly moves in the indicated direction. Please note that when the butterfly reaches the edge of the form, the butterfly must change direction regardless of any user input.

View 8 Replies

Javascript - Register A Client-side Event Listener On A Server-side Event?

Dec 28, 2011

Ultimately, what I want to accomplish is an AJAX-based messaging system. I already have a database table for messages, and an ASPX to add new messages (and declare old messages no longer relevant).

The current messaging system simply polls the server every 15 seconds, and re-pulls the current message set.

What I am looking to do is: On $(document).ready(), register an ajax callback function that listens for a server-side event (e.g., MessagesUpdated) On table insert/update, fire MessagesUpdated server-side.

This way, whenever the table is updated (or new records added), any clients listening know that new data is available and can re-poll the server then.

Ideally, I'd also like to make the new data available as an event argument (to minimize re-polling the db).

I can find references to something like this in other languages, but I cannot find any actual code examples to get me started.

Assuming this is possible to do via .Net, can anyone help get me started on this?

I'm using the 2.0 Framework. Also while I added a VB.Net tag, I can read C# reasonably well, so please feel free to post in either language.

View 4 Replies

Creating A Space Invaders Game That Has A Group Of "invaders" Moving Side To Side?

Dec 2, 2009

Im creating a space invaders game that has a group of "invaders" moving side to side and when i shoot one it gets destroyed, my invaders are in an array. So in order for the invaders to keep moving right until they get to the edge, i made a function that detects which invader is right most. But this was crudly done as I wa trying to make the opposite of my left most function which works. So my rightmost function dosent work

[Code]...

View 19 Replies

Strongly-typed Generic Method Invokes Its Argument's Base Class Method Instead Of A Shadowed Method In T?

Oct 19, 2010

Consider a MyForm class that contains a shadowed implementation of Show(). It also contains a CreateForm() method, which accepts an instance of the form and calls the shadowed sub:

[Code]....

View 3 Replies

Extension Method Doesn't Work [VB 2010 - VS 2010 RC]

Apr 20, 2010

I have the following extension method. However, when I type "File." this method doesn't pop-up. What did I wrong?

[Code]...

View 1 Replies

How To Compute Income Tax

Oct 2, 2011

how can we compute tax using the values in the database.?

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved