|
Hi,
I have a datagrid which i have set up so that if the user clicks on the ListID it redirects to another page and passes the ListID with it.
<asp:hyperlinkcolumn datatextfield="ListID" headertext="Select" datanavigateurlfield="ListID" datanavigateurlformatstring="BBO_StartManual.aspx?ListID={0}">
I have another variable that I want to send to the next page as well which is not from the dataset. Do you know anyway i can send the other vairable? I have tried doing it inline but it just sends the variable as the code i have written.
Am fairly new and so not sure if this is the best way to do it. If this doesn't make sense let me know and i will try to explain.
Cheers,
V
|
|
|
|
|
Sorry forgot to click the check box - here is code which should have been above
<asp:hyperlinkcolumn DataTextField="ListID" HeaderText ="Select" DataNavigateUrlField="ListID" DataNavigateUrlFormatString="BBO_StartManual.aspx?ListID={0}"></asp:hyperlinkcolumn>
Cheers,
V
|
|
|
|
|
Your question would be much better answered in the ASP.NET Forum.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I have win2k SP4 and I need to use some com server from VC++ and VBA6. In C++ I can use sequence like this to get pointer on interface Intrfc1 from ISrvr object:
ISrvr* pSrvr = NULL;
IIntrfc1* pIntrfc1 = NULL;
::CoCreateInstance(CLSID_Srvr,
NULL, CLSCTX_ALL,
IID_ISrvr,
(void **)&pSrvr);
pSrv->QueryInterface(IID_ IIntrfc1, (void**)& pIntrfc1);
What do I need to do in VBA 6.3 to get the same result?
|
|
|
|
|
There are a couple of ways to do it...
The simplest is to use CreateObject() function specifying the ProgID of the component.
The other way is to set a Reference to the object (in Word VBA, go to tools-> References), then declare yourself a variable of that type - this is the early bound version of the late bound Creat object....
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi all,
I draw a rectangle. Now I want, that rectangle changes the color, when mouse over it.
I want to have an event when mouse is over rectangle, and NOT track all mouse moves.
Is it possible? I just can't find a good way to do it?
Thanks a lot,
Boni
|
|
|
|
|
Sure, but you will have to track the mouse movement, if you think about it, if you didn't track the mouse movement it wouldn't be very effective. Assuming your class has a Rectangle object (i.e., rect in the example), within your MouseMove eventhandler you could say:
If rect.Contains(Cursor.Position) Then
'change your color here, you are inside the rectangle
End If
- Nick Parker My Blog | My Articles
|
|
|
|
|
Hi Nick,
thank you so much for the answer. But can't windows notify me with an event, when the mouse is over my rectangle? (I could imagine to register the rectangles "contain"-method somewhere(?)) I fear, that if track mouse for all of my 1000 objects (not only rectangles but even more complicated figures) for each move this will slow down the PC very much.
Thanks for your time,
boni
|
|
|
|
|
I’m about ready to complete my first program, thanks to a lot of you and your help!
I have no idea how to create an installation program though. I want to create an installation program that will:
1-check for certain directories and create them if they are not available
2-install the latest version of the dotnet framework
3-and, of course, install my application.
Can anybody offer any good resources or suggestions?
Thanks
Brad
|
|
|
|
|
To create installation programs, we need to add Setup or Web Setup projects to the solution and manage all the things like directories etc on the target machine.
You will find lot of information on deployment on MSDN
Bhaskara
|
|
|
|
|
You can use install shield to package your project and make a setup file. Read the help file for more help, or run its wizard two or three time for test it.
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Thanks for your suggestions. I’ll check them out.
Brad
|
|
|
|
|
I found a great installation program called GP-Install[^].
I’m sure that this application lacks a lot of the functionality that you get from Install Shield but it worked perfect for my needs and, best of all, it's free.
Thanks
Brad
|
|
|
|
|
Can you explain me why do we need Optional arguments?And what are ParamArray Arguments?
|
|
|
|
|
You will use optional parameters and paramarray when you want to create a method which takes 'n' number of arguments
for more into refer MSDN
Bhaskara
|
|
|
|
|
What is the difference between ByRef and ByVal.Please answer me as clearly a spossible cause Im a beginner and I want to deeply understand the cases when we use the one and the other.Thank you.
|
|
|
|
|
dear
ByRef thats mean the parameter take a vlaue in method and after the method end run, the value still there and if you call the method another one the last value is the initial value to the method.
but ByVal that means the value discared its value after the run end and take the standard initial value when you call the method a gain
regards
Palestine Guy
|
|
|
|
|
My first post to the code project... I am developing an application that will run on a Windows CE device using the Compact Framework provided with VB.NET.
I have developed a class that inherits from PropertyDescriptor. When I call the PropertyDescriptor constructor from my inherited class and provide an existing PropertyDescriptor object I get "An unhandled exception of type 'System.NullReferenceException' occurred in System.dll".
Has anyone else seen this problem? Suggestions?
Thanks a lot!
Kurtis
|
|
|
|
|
Well, for one, this question really belongs in the Embedded/Mobile forum. Second, without seeing your code where the problem occurs, it's impossible to tell you what your doing wrong.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
is one better then the other?
i like select case better then if....then...elseif...else...end if
but im not sure really what im missing out on if anything by not using the if statment
thank
foolish
|
|
|
|
|
Switch/Cases accept only primitive data types, such as byte, short, char, int.
If you are checking for a string, a case becomes much more complicated to use.
It is better to use a Switch/Case when you are dealing with options, where you can associate each option with a Letter or Number.
If statements should be used when more complex comparisons are made, and can be grouped using the AND/OR keywords.
|
|
|
|
|
Hey Guys
I am trying to Bulk Insert a Text file into an SQL DB through VB6. I have never used this Object Model before so any help would be appreciated.
I have this code from MSDN but cant seem to implement it??
-----------------------------
'initialize Payroll table in DTS_UE db with bulk data
Dim objPackage As DTS.Package2
Dim objConnect As DTS.Connection2
Dim objStep As DTS.Step
Dim objTask As DTS.Task
Dim objBulkCopy As DTS.BulkInsertTask
On Error GoTo Handler
Set objPackage = New DTS.Package
'create database connection
Set objConnect = objPackage.Connections.New("SQLOLEDB.1")
With objConnect
.ID = 1
.DataSource = "(Local)"
.UseTrustedConnection = True
End With
objPackage.Connections.Add objConnect
'create step and task, specify data file and format
Set objStep = objPackage.Steps.New
Set objTask = objPackage.Tasks.New("DTSBulkInsertTask")
Set objBulkCopy = objTask.CustomTask
With objBulkCopy
.Name = "BulkInsTask"
.DataFile = "C:\Development\Bulk Insert\TEST.txt"
.ConnectionID = 1
.DestinationTableName = "BULK_INSERT_TEST..BI_Test"
.FieldTerminator = "-t"
.RowTerminator = "\n"
End With
'link step to task to package, run package
objStep.TaskName = objBulkCopy.Name
objStep.Name = "BulkInsStep"
With objPackage
.Steps.Add objStep
.Tasks.Add objTask
.FailOnError = True
.Execute
End With
|
|
|
|
|
hi all
i want to know how to load a form from another one by vb.net
by vb6 it was form2.visible=true
i tried it but it make error
Lost & Forgotten
|
|
|
|
|
Well you do as follows depending on scenario
just to show dialog
dim myform as new form2
myform.showdialog
|
|
|
|
|
dear
try to do this things
Me.hide()
Me.yourFormName.ShowDialog()
regards
Palestine Guy
|
|
|
|