|
Can you include the .NET 3.5 SP1 msi in your installer? It should be able to do the check and return a pass fail on success.
Note in case I get called on it, I didn't actually look to see if the MSI was available but if it is it should be a solution.
|
|
|
|
|
Here[^] is an article that shows checking for SP1 for .Net 1.1. If it exists for 1.1, it has to exist for 3.5 as well. You can try your luck with it. Online only for only an hour a day. Please expect delay in response.
|
|
|
|
|
Seems a little odd to me. When I look at the Prerequisites, it shows .NET Framework 3.5 SP1 and not .NET Framework 3.5.
|
|
|
|
|
The .NET Frameworks Launch Condition does not have the ability to test for SP1 levels.
I found a solution here. This should help you write a check for SP1 in your setup[^] project.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
hi every body iam new to Entity framework i have learned about using SP and how to map (insert \ delete \ update) in every table and how to import function to call SP that returns values from one table
my question is hot can i to call SP that returns multiple columns from multiple tables
in LINQ to SQL generating class that represents all columns that returned by SP how can i use Entity Framework in this case
thanks in advance Every Body
|
|
|
|
|
Hi,
To retrieve multiple records using more than one table, you have to create your custom entity on Entity Framework Model. Follow the below steps:
1. Open Entity Framework Model file (*.edmx) in Visual studio
2. Right click on design pane and select "Add" -> "Entity"
3. One blank entity is created. Just add number of properties which you need to retrieve from the database (please check the property of each columns means data type, Nullable and Entity Key option)
4. After creating custom activity, Right click on design pane and select "Add" -> "Function Import".
5. In function import dialog box, select your stored procedure, Function name and select Return type as "Entities" and select custom entity from the drop down box. Click on OK button.
6. Now you have to call that function to retrieve data from the stored procedure. please find code below:
TestDBEntities1 testdb = new TestDBEntities1();<br />
var p = from d in testdb.GetOrderInfo() select d;<br />
MessageBox.Show(p.Count<OrderInformationEntity>().ToString());
Here TestDBEntities1 is my entity framework class and OrderInformationEntity is a custom entity.
You can find primary information of using Entity framework here.
Hardik Patel
Blog: DotNet Code GuruRegards,
Hardik Patel
|
|
|
|
|
I have a datagridview which is bound to a ms access database, through a dataset.
The user can click one record on the DGV, and open another window with all the data of the record, so that he can edit them,etc.
If he tries to sort the DGV by a column, let's say the date field and then tries to load a record the thing gets messed up.
It seems that whilst the DGV is sorted, the dataset is not equally "sorted".
That means that the user can try to load a specific record but instead he gets a completely different one.
Is there a solution to that ?
|
|
|
|
|
You need to either use a unique key to load the record into the new window, or sort your underlying dataset in the same way as the DGV when the column header is clicked. Bob
Ashfield Consultants Ltd
|
|
|
|
|
You need to either use a unique key to load the record into the new window, or sort your underlying dataset in the same way as the DGV when the column header is clicked.
There is already an ID field which is unique.
How do i sort the dataset ? That's the question in the first place.
|
|
|
|
|
Anyone guys ?
Any ideas ?
|
|
|
|
|
Hello everyone
I have a second form in my program that will keep all the setting for my app
i am having a hard time to get my controls to pull the vavlue from the text boxes that is in the second form
What is the easyest best way to do this ??
or is thare a better way then using a second form
Thanks
Bobmodified on Wednesday, February 17, 2010 3:18 PM
|
|
|
|
|
In the second form do something like this:
public string SomeSetting
{
get { someTextBox.Text ; }
}
Then in Form1:
string mySetting = Form2.SomeSetting ;
Do this for all your text boxes.
|
|
|
|
|
is that for vb 2008 it dont work
|
|
|
|
|
Sorry, that is C#, I don't know VB.
But if you look up Properties, that should get you started.
|
|
|
|
|
Thats cool thanks anyways
|
|
|
|
|
Public ReadOnly Property SomeSetting() As String
Get
Return SomeTextBox.Text
End Get
End Property
Dim mySetting as String = Form2.SomeSetting I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
Hello Everyone,
I am looking into developing an extension for windows explorer that will add a kind of a virtual folder (which access files and directories through a web service) so that I can drag files from my desktop and deposit them on a server via a web service.
Any ideas on how I should proceed? I'd like to write this in either c# or vb.net.
Thanks!
|
|
|
|
|
seanwright wrote: I'd like to write this in either c# or vb.net.
Either will do
seanwright wrote: Any ideas on how I should proceed?
Buy a book for the language you have decided on, start with the easy examples and work up from there.Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thanks for the tip. However, I have been writing programs for several years, albeit rather simple ones. I am familiar with both languages.
I guess I should be more precise: what I really want to know is: what are the mechanisms involved with creating this type of application? How do I interface with windows explorer through .net? Can anyone direct me to some sample applications?
Thanks
|
|
|
|
|
Writing shell extensions in anything other than .NET 4.0 is highly recommended AGAINST.
If your entire experience is writing simple applications, a shell extension is going to be a major shock to you. Unless you have a very good working knowledge of COM and how to interop, you'll find this task very tough. For a sample of what you'd be getting into, read this[^].
seanwright wrote: so that I can drag files from my desktop and deposit them on a server via a web service.
A stand-alone application would allow you do this much easier than writing a shell extension, and you can write this in any lanugage you want.
|
|
|
|
|
Hi,
I use OdbcCommandBuilder.DeriveParameters to get a stored procedure parameters and fill them in with values. After that, I can access the command object to see all parameter's name and values. But when I fill the command with the data adapter I got the following error:
ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Procedure 'sSPName' expects parameter '@dteBeg', which was not supplied.
Code:
......
Dim cmdODBC As OdbcCommand = cnnODBC.CreateCommand()
cmdODBC.CommandTimeout = 300
cmdODBC.CommandType = CommandType.StoredProcedure
cmdODBC.CommandText = sSPName
cnnODBC.Open()
OdbcCommandBuilder.DeriveParameters(cmdODBC)
'Add values to parameters:
For i As Integer = 0 To cmdODBC.Parameters.Count - 1
......
Next
'Write out the parameter's name and value:
For Each parameter As OdbcParameter In cmdODBC.Parameters
response.write(parameter.ParameterName & "=" & parameter.Value)
Next
Dim adpODBC As New OdbcDataAdapter(cmdODBC)
adpODBC.Fill(ds, "Results") 'error appeal here.
......
Any helps are appreciated.
|
|
|
|
|
Hi,
I have a webapp on my filesystem that will eventually be deployed somewhere else where IIS obviously exists.
For now is it possible for my webapp to be made accessible from other systems on the LAN without hosting it on IIS? I mean can it be accessed from the development server itself? Something like:
http://10.x.x.x:port_number/MyWebAppName
I mean if I unblock the port in my firewall.
Kindly advise. I just need to get it up and running for a demo.
|
|
|
|
|
No, you must have a webserver of some kind. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
callousfantom wrote: from the development server itself
Cassini[^]?I are Troll
|
|
|
|
|
Hi,
As already pointed out, I was asking if it could be accessed from the development server itself. If not, can anyone guide me as to how to host it on IIS 7(windows vista). I have never hosted a website and am absolutely clueless.
My website is built in Visual Studio 2008. I Installed IIS 7. Added my website folder to inetpub/wwwroot, converted it to Application inside the "Default website" as I read in an article and even created an Application Pool and assigned it to my website but it keeps throwing different sorts of errors.PLEASE HELP. ITS URGENT! modified on Thursday, February 18, 2010 12:20 AM
|
|
|
|