Hey,
Please have a look at http://live.heritageartpapers.co.uk/catalogue.aspx and advise me on the following:
Currently customers are getting confused (judging by the one who clicking the same link 20 odd times yesterday) because each level of product is pretty much the same. I would like to differentiate each level of product. However...
I am trying to set command timeout for enterprise library 4.1 data access. I used below code for get command object from Database.
Dim dbCom as System.Data.Common.DBCommand
dbCom = dbCon.GetDatabase.GetStoredProcCommand(sprocName, parameters)
dbCom.CommandTimeOut 'I dont find this property.
How to set CommandTimeout?
...
Using VB9, I'm trying to populate a DataTable with the results from several stored procedure calls. What I'm trying to make work looks like:
For Each record In New SqlCommand("exec getResults", conn).ExecuteReader
Dim dr As DataRow = dt.NewRow
record.GetValues(dr.ItemArray)
dt.Rows.Add(dr)
Next
It seems like the DataRow.I...
I have below xsl code but it is not working, could anybody please guide me.
<xsl:variable name="indent">
<xsl:if test="@type='Text'">
<xsl:if test="@required='yes'">
<xsl:variable name="indent" select="'return ValidateText(this)'" />
</xsl:if>
<asp:TextBox id="{@id}" onkeypress="{$indent}" runat="...
I drew a Group Box around a bunch of controls cause I wanted to the Box, meanwhile all the controls are glued to the Group Box. How can I remove the Group Box without removing the Controls?
...
How would I get something like this to work so that I can dynamically alter the where-clause in this linq to sql query?
Dim AccountID = 1234
Dim AccountList
Select Case Types
Case 1
AccountList = (from a in dc.Accounts where a.ID = AccountID)
Case 2
AccountList = (from a in dc.Accounts where a.ID = AccountID An...
when i use winrar to zip a file, it for some reason zips the entire path. I am using vb.net for doing this.
here's the code -
Public Sub RunArchive()
Dim p As System.Diagnostics.Process = New System.Diagnostics.Process()
sPath = "C:\Users\images\"
sArchive = "C:\Users\images\test"
p.StartInfo.FileName ...
In the Expression builder window in SQL Server Reporting Services 2008 R2 under Common Functions -> Text -> Item, there is an expression called Filter. This appears to correspond with the Strings.Filter method in the .NET framework. The description of Filter is as follows:
Returns a zero-based array containing a subset of a String arr...
I have a Microsoft Visual Studio Deployment Project that generates a basic setup.exe and appropriate MSI file. I leave the UpdateCode alone, but change the ProjectCode and Version on each build. I've also set the RemovePreviousVersions property to True. However, after I upgrade a machine, it seems as though any class flagged with COM doe...
I'm trying to add a search box to a master page in an ASP.Net MVC web app. What's confusing me is how to properly implement it in the master page. So the user types in data into this search box, how should the data be handled from an MVC perspective?? I know I could use he master page's code behind, but I shouldn't. I'm currently try...
i'm updating some VB6 code to .NET and have come across a small problem. i'm basically in an infinite loop because i don't know the .NET equivalent of RecordSet.MoveNext() (VB6). i've updated the use of a RecordSet with a DataSet
While Not _sqlADP.Fill(_dataSet) = 0
// code
// more code
// original VB6 code had _recordSET....
I have a function where I am performing a lot number of database operations inside a Sub. The operation when called directly like:
ExecProcess()
takes about 11 seconds to run.
However, if I create a Delegate, and call the sub using BeginInvoke(), the very same process takes over 40 seconds to execute.
Here's the threaded code:
Prot...
I am running a website using IIS6 and i wrote a simple generic handler which return smaller images when it receive image url as query string. My problem is that the server is applying gzip to some file types such as .aspx and .ashx.
And that made my response image from the handler appear with lower quality because they are compressed.
...
Possible Duplicate:
Resize image on the fly make the image lose quality online but locally works nice
I wrote this handler to resize images on the fly:
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
'Read in the image filename to create a thumbnail of
Dim image...
How can I execute a stored procedure using sqldatasource and get the return value in vb.net.
Thanks,
Terri
...
How would I make use of a List(of String) in a structure in vb.net. for example
Structure examplestrut
Public exampleslist As List(Of String)
End Structure
How would I call exampleslist.add("example 1")?
...
I have a Job Register Table and that table doesn't have any records.
This is my LINQ code:
Dim QRecordCount = (From LC In CntxtJobDetails.JobRegistrations _
Where LC.JobCode <> 0 _
Select LC.JobCode).Max() + 1
When I execute the code above it gives me the following error:
...
When i run the application i need to extract the information about the sequence of methods or classes the application touches when any event is performed on the application.
Is any there other tool other than profiler?
...
How can I get a list of available webservices from a server/directory?
For example from:
http://localhost/ReportServer_SQL2008/
Which should at least give me
ReportService2005.asmx
I was wondering if there wasn't a ReportService2008.asmx
...
hello,
i need to change the selected value to upper case in the richtextbox i use the code
Dim tou As String
Dim tot As String
tou = RichTextBox1.SelectedText
tot = tou
RichTextBox1.Text.Replace(tou, "")
tot = tot.ToUpper
RichTextBox1.AppendText(tot)
can any one tell where i am wr...