|
Hi all. I have a textbox in which i will add "Comments" on aspx page along with an Add button. On this page , i have a gridview as well. The problem is,
When i enter value in TEXTBOX and press ADD button, the value in textbox should have to be populated in Gridview without PAGE REFRESH. Please make sure the current scenario.
I have a table ABC with a column Comments. I pull Data from ABC table in Gridview. so, when i add value in Textbox and press add button, basically it will save first in ABC table and then refresh the gridview behind the scene. Please let me know How I can achieve it. Thanks for your consideration
|
|
|
|
|
Your question should be posted in the Web Development or ASP.NET forums. What you want can only be done in client-side script since you don't want a post-back to the server.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I am trying to select the current email from someones inbox (not open one just the highlighted one) using vb.net + vsto SE from VS 2005, and am having difficulty finding a property that relates to it, I am assuming its would be in the active inspector method? If not would it be part of the MAPI folder?
Thanks for any help
Chris
|
|
|
|
|
There is no "current email" as far as MAPI or any other email datastore goes. The "current" email only has any meaning in the application thats showing them. There's nothing that says "this email is selected" in MAPI. Soooo, you're question is a bit vauge.
Are you writing an extension for Outlook?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
yes, its an outlook 2003 addin, and i'm trying to mark a selected email in the same kinda way as marking a mail read/unread.
|
|
|
|
|
Well, I don't do Office integration, so my help is probably going to be limited, but you might want to take a look at this[^] page. The formatting is a bit messed up, but you can copy the code into your favorite editor to study it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Yes that helps a lot, thank you very much
|
|
|
|
|
Hi!
I want to make a project which can draw graphics user write values then the program draw graphic.Can i make this (i am the beginner of programming)?
Is there any sample code?
I couldn't find
|
|
|
|
|
I'm sure thats possible, you might want to do a search on google for direct draw? or look at direct x in vb might help
|
|
|
|
|
Check out the System.Drawing.Graphics namespace
for example :-
Dim oGraphics as System.Drawing.Graphics = Me.CreateGraphics<br />
Dim oPen as New Pen(Color.Blue, 10)<br />
oGraphics.DrawLine(oPen, 45, 45, 95, 95)<br />
oGraphics.DrawArc(Pens.Green, 8 ,10 ,30, 30, 90, 180)<br />
<br />
Dim oBrush as New SolidBrush(Color.Purple)<br />
oGraphics.FillRectangle(oBrush, 100, 100, 50 ,50)<br />
oGraphics.FlllEllipse(Brushes.Orange, 10 , 10, 30, 30)<br />
Steve Jowett
|
|
|
|
|
hmm does it have the values that the user give
|
|
|
|
|
Hi,
I am adding text to a text file but I don't want to have any duplicates. I am searching a system for files and if the file occurs twice I only want it added once to the text file.
If any one can help it would be great.
Thanks
|
|
|
|
|
johnjsm wrote: Hi,
I am adding text to a text file but I don't want to have any duplicates. I am searching a system for files and if the file occurs twice I only want it added once to the text file.
If any one can help it would be great.
Thanks
There are many ways of implementing this...
You could write it to a database table and check if it already exists (probably the easiest method)
You could create a tree structure or some kind of sorted array in memory and search in it...
|
|
|
|
|
I agree with Chandra. The text file is just a place to store stuff when your app isn't running. So, do your work in memory, then write the end result to the file when your done. Don't try to work with it in the file itself.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi,
i am looking for code example for saveing data to database.
i have recordset as datatable in .net and now i want to save this datatable records to the
database on sql server so how this is possible.
please tell me with code so i working on that way.
i use like this code also. "insert into saleitm select * from datatable"
but its giving me error
so tell what i do.
mitesh
mitesh_pattani@rediffmail.com
|
|
|
|
|
mit2223 wrote: i use like this code also. "insert into saleitm select * from datatable"
but its giving me error
What error? Are the structures of both tables the same??
|
|
|
|
|
It would help if you knew SQL before you try to write code to do it for you. Might I suggest something from the menu[^]?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: Might I suggest something from the menu
Hmmm, SQL cookbook might have some nice entrees in it
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Hi
I have this C# code I wrote that I'd like to implement in a VB.NET project:
<br />
using System;<br />
<br />
public class PairTT<T1, T2><br />
{<br />
public T1 First;<br />
public T2 Second;<br />
<br />
public PairTT(T1 first, T2 second)<br />
{<br />
this.First = first;<br />
this.Second = second;<br />
}<br />
}
I tried this in VB.NET:
Public Class PairTT(Of T1, Of T2)<br />
End Class
But VS2005 complains about the second "Of" saying "Keyword is not valid as an identifier".
Any help with this would be greatly appreciated!
|
|
|
|
|
Got it:
Public Class PairTT(Of T1, T2)<br />
<br />
End Class
Easy when you know how!
|
|
|
|
|
You should be using the Of keyword at all. Your arguments, in the C# code, are being passed by value, so...
Imports System
.
.
.
Public Class PairTT
Public First As T1
Public Second As T2
Public Sub New(ByVal first As T1, ByVal second As T2)
Me.First = first
Me.Second = second
End Sub
End Class
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave, but damn I pasted the wrong C# code into my first example, I should have pasted this (the class-level typeparams disappeared because they contained HTML angle brackets):
[Serializable]<br />
public class PairTT<T1, T2><br />
{<br />
public PairTT(T1 first, T2 second)<br />
{<br />
this.First = first;<br />
this.Second = second;<br />
}<br />
<br />
public T1 First;<br />
public T2 Second;<br />
}<br />
How would I implement this in VB? I think my 2nd post answers what I should have asked for originally, but thanks again for any help!
|
|
|
|
|
how I make virtual com port to my usb port?
simple can help thanks.
|
|
|
|
|
You don't. The device you want to talk to has to have drivers that exposes it AS a COM port. USB really has nothing to do with it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Check if the USB device you want to use already acts as a com port. My "USB GPS" work as a COM thru a USB port, I was lucky. If not, you can buy a USB to COM port adapter. That also works for me on an other device I use.
Hope this helps.
Rob
|
|
|
|