SQLEXPRESS.exeÃÂ /xÃÂ ÃÂ --> opens an GUI where the target path should be selected
But is there any way to extract the files to an custom folder without GUI?
View Complete Post
I managed to port Asp.net MVC to run in a Sharepoint site (only inside a particular folder not everywhere) by:
But I would like to accomplich
I'm trying to write code to Ping a database server to check for connectivity in the event of a SQL connection error. I'm grabbing the server name out of the database connection string, but the connection string sometimes uses a relative path such as ".\SQLExpress"
with a period to denote the current machine as the host. The .NET Ping/Dns classes don't appear able to resolve "." as a machine name. I get an exception saying "No such host is known". Are there any built in classes/methods that can resolve
a period to the machine name for me or do I need to write the code myself?
I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,
Note that the slashes go in different directions
I've tried a number of things but nothing seems to work. Thanks-
Partial Class Protected_imageupload
Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
' Initialize variables
Dim sSavePath As String
Dim sThumbExtension As String
Dim intThumbWidth As Integer
Dim intThumbHeight As Integer
Dim sFilename As String = ""
' Set constant values
'sSavePath = "images/"
sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"
sThumbExtension = "_thumb"
intThumbWidth = 160
intThumbHeight = 120
' If file field isn?t empty
If FilUpload.PostedFile IsNot Nothing Then
' Check file size (mustn?t be 0)
Dim myFile As Http
Hi again, i have a client that needs me to create a custom view on thier webpage similar to Microsoft Word.
It goes about that, when I click on an image it redirects me to another page and must create a custom view for a certain paragraph on that page. I am not sure how to do this and wonder if anyone knows how.
I am using C# programming language if that helps at all.
dears,advance thanks.can anybdy help to solve my problem which is describing below.Example- %%D1,100,0,0004[data...][0d0a]Head - %%D1Amount of data package -100The data package No. - 0Data Length -1024 (0004 (low bit in front, high bit in back) 0004= 0x0400=1024;)data- Original Picture data -1024(maximum)Tail -0x0d0aData in hexfrom
the above example i want to extract picture data and need to store in
to the sql table.sql table columname is image and datatype is also
image.after that i wanted to display this image column to an aspx page.expecting help asap.
I have to set custom paper size 6X8 inches
plz tell sugest me code how to do it.
in C#.net 3.5
i m using Asp.net 3.5 Crystal report
i have to do it programiticlly
I am hosting my ASP.NET application on a Windows 2003 Server.
To browse to my application one has to type the path :http://serverName/applicationName
I want users to only type applicationName on the web adress area.I believe there is something to do with alias and CNAME on DNS records that can adress this.
Any help on how to go about doing this will be highly appreciated.
I need to extract or get the schema from tables in my databse and what is the best way to do it. Is there any third party tool to do it??
Any idea will be appreciated..
I created an application and implemented IHTTPHandler for all incoming request ending with ".aspx" extension.
Under "ProcessRequest" module, I am creating an instance of HttpContext (with URL attributes different from my application's URL i.e. if I am working on localhost then speciying Yahoo.com as its URL) and assigning it to "context" which comes as method argument.
After redirection, an error is generated. Also, the custom HTTPContext is not passed to the requested page (default.aspx, in my case.)
Code is as follows.
Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements System.Web.IHttpHandler.ProcessRequest
Dim requestedUrl As String
Dim targetUrl As String
Dim urlLength As Integer
'Save settings which will be used while redirecting to appropriate page
requestedUrl = context.Request.RawUrl
If requestedUrl.IndexOf("?") >= 0 Then
targetUrl = requestedUrl.Substring(0, requestedUrl.IndexOf("?"))
targetUrl = requestedUrl
If targetUrl = Nothing Or targetUrl.Length = 0 Then
targetUrl = requestedUrl
I have just joined the forum. I have a very simple query. I have added custom header to my website. Now I want to read the custom header. I am using IIS 6.0 on windows XP. I have already tried using using the Request.ServerVariables and and Request.header method. But none of them give me the custom header added to website.
Can any body help?
Thanks a lot in advance