|
thanks for your reply.
can u pls give me any help link for such senario.
because my senario is
i have one server i ll install my remote service and window application over der
now my client(desktop application) will connect to server using one port i.e. 1069
now i want to give mulitple access (RDP) to say 5-10 users now they all will login and will run the same exe but i think its not possible
i m not sure about it
wil u pls give ur glance to such senario and let me know wht can be possible in my senario
y we want to put remote service and desktop application on same machine and then give to rdp because when users are connect from theri own machine then system is not responding as quick as we have too.
Reasons are not Important but Results are Important.
http://www.sql4professional.blogspot.com
Swati Tripathi
|
|
|
|
|
Can a web application run without Web.Config, If Yes then How?
One person's data is another person's program.
--J.Walia
-- Modified Friday, May 13, 2011 11:47 AM
|
|
|
|
|
Your question Title and Description are completely different. Update it.
J walia wrote: Can a web application run without Web.Config
Yes. If web.config file is not there, then the configuration settings are included from machine.config file. web.config file override the settings of machine.config at directory level.
modified on Friday, May 13, 2011 4:11 AM
|
|
|
|
|
done. Thanks
One person's data is another person's program.
--J.Walia
|
|
|
|
|
A website cant run with out web.config. when you first create the solution intime of developing. Visual studio ask youto place web.config.
|
|
|
|
|
Prasanta_Prince wrote: A website cant run with out web.config
Of course it can. If one isn't present, the runtime will attempt to apply values from machine.config.
|
|
|
|
|
how i can use machine.config inside of web.config
One person's data is another person's program.
--J.Walia
|
|
|
|
|
You don't need to. By default, if a section is present in machine.config, and the same section is not present inside your web.config, the website can read the values it needs from machine.config. The important thing to note is that machine.config is seen by all .NET applications, so you should not look to modify it yourself unless you really know what you are doing.
If settings are present in your web.config, and also present in machine.config, the settings from web.config will be used.
|
|
|
|
|
- Delete web.config.
- Run website.
- ...
- Profit!
|
|
|
|
|
Yes.
Practically, you need configuration. I have never seen practical scenario where you do so.
// ♫ 99 little bugs in the code,
// 99 bugs in the code
// We fix a bug, compile it again
// 101 little bugs in the code ♫
|
|
|
|
|
|
Yes you can because required configuration will pull from machine.config file.
Thanks
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
|
Hi All,
I have two tables (sql server)
MainTable
---------
Emp_code BasicPay TotalAddition
------- -------- --------------
160 3000 200
161 4000 100
Additions Table
--------
trx_amount desc emp_code
---------- ---- --------
100 Bonus 160
100 Transport 160
20 Bonus 161
30 Transport 161
50 Food 161
My output grid should be like this
Emp_code Basicpay Bonus transport Food TotalAddition(total of additions)
-------- --------- ------ --------- ------ -------------
160 3000 100 100 0 200
161 4000 20 30 50 100
Please suggest with this
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
Ramkumar_S wrote: Please suggest with this
I suggest you post your question in the correct forum[^]
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
Hello experts,
I would like to ask what will be the things I need so that my hosted asp.net website(hosted from free hosting site) can access my local machine database. I've done accessing my asp.net website database using webservice but I don't know the other way around.
Any help is kindly appreciated.
Thanks,
DAN
|
|
|
|
|
Hi All, I am in trouble at some pint. I am working on a app which collet data from the user or database. Then populate on screen. after that user click submit button then it will write required data on a word form,to a specific Bookmark,which is allready exist and send to printer.
I really don't know what would be the best way froward.
|
|
|
|
|
Hello,
I have a datagrid populating about 60,000 rows from a view. I have set the paging to show only 10 rows at a time. This data ia being filtered before it shows these 60,000 values. It is very slow and sometimes the grid timesout. I did increase the server.scripttimeout to 300 seconds. and this has helped a bit but not a lot.
any ideas suggestions would be helpful.
thank you.
|
|
|
|
|
Sounds like you are filtering the data on the client side with the Grid. Not a good idea. Filter as much data as you can on the server so you are not sending 60,000 records to the client machine. This will avoid the grid timing out.
|
|
|
|
|
I've recently been given a task to take information out of a SQL database and display it on a site. I didn't create the database or the application that stores information on the database, but there are images stored in the database that I must display on my site. The images stored are of different sizes which I'm sure of until I pull them out using a Generic HTTP handler on my site. I've got to show thumbnails of these images so I was was wondering if I could use something that could do this dynamically in code.
The following is the handler I am using:
<%@ WebHandler Language="VB" Class="ShowImage" %>
Imports System
Imports System.Configuration
Imports System.Web
Imports System.IO
Imports System.Data
Imports System.Data.SqlClient
Imports util
Public Class ShowImage : Implements IHttpHandler
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim staffID As Integer
If Not context.Request.QueryString("id") Is Nothing Then
staffID = CInt(context.Request.QueryString("id"))
Else
Throw New ArgumentException("No parameter specified")
End If
context.Response.ContentType = "image/jpeg"
Dim strm As Stream = ShowSTARImage(staffID)
Dim buffer As Byte() = New Byte(4095) {}
Dim byteSeq As Integer = strm.Read(buffer, 0, 4096)
Do While byteSeq > 0
context.Response.OutputStream.Write(buffer, 0, byteSeq)
byteSeq = strm.Read(buffer, 0, 4096)
Loop
End Sub
Public Function ShowSTARImage(ByVal staff As Integer) As Stream
Dim strConnection As String = ConfigurationManager.ConnectionStrings("Star").ToString
Dim conn As SqlConnection = New SqlConnection(strConnection)
Dim sql As String = "Select picture from contactPage where userID = " & staff
Dim cmd As SqlCommand = New SqlCommand(sql, conn)
conn.Open()
Dim img As Object = cmd.ExecuteScalar ()
Try
Return New MemoryStream(CType(img, Byte()))
Catch ex As Exception
Return Nothing
Finally
conn.Close()
conn.Dispose()
End Try
End Function
Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
Get
Return False
End Get
End Property
End Class
Right now I am displaying the image on my site with an image control which calls the handler like so:
imgContactPage.ImageUrl = "~/ShowImage.ashx?id=" & Session("selectedUser").ToString
Using this, I can have some very large images that look bad on the page as it breaks all of my other design elements.
|
|
|
|
|
Add two query string parameters to the request string so it becomes something like "~/ShowImage.ashx?id=1234&width=320&height=200". Then resize the image to that size. You can use System.Drawing.Image.FromStream to load the image from a memory stream that you create from the byte array. You can then use the GetThumbnailImage function, as is done here.
|
|
|
|
|
Guess I don't understand where to put this. Is it after the
Do While byteSeq > 0
context.Response.OutputStream.Write(buffer, 0, byteSeq)
byteSeq = strm.Read(buffer, 0, 4096)
Loop
or before?
|
|
|
|
|
Rather than answer that, I'll explain the steps and I trust you can figure it out:
- First, you'll load the image file data from the database.
- That image file data will be loaded into an in-memory image.
- That in-memory image will be resized.
- The resized image will be saved as image file data.
- That file data of the resized image will be returned in the HTTP response.
Just to clarify, there are several ways to represent an image. One of those ways is as file data. So when I say "image file data", I mean the image as it would be represented in a file (e.g., the file "AngelinaJolie.jpg" is 300KB of image file data, though that data need not necessarily be stored on the file system itself). In particular, you will typically be working with image file data in byte arrays and memory streams.
|
|
|
|
|
I program ASP.NET only occasionally and need a timer control for some trivial tasks. After some searchs, I get an impression that I have to use AJAX Extensions.
I am using ASP.NET 2.0 with VS2005. Why can't WebForm support a simple timer like WinForm? What are other options here? Thanks!
Best,
Jun
|
|
|
|
|
Yes, you have to download AJAX Toolkit for ASP.NET 2.0
AJAX for ASP.NET 2[^]
Then you can use Timer control on your asp.net page.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
Depending on your needs, you can just use JavaScript's setInterval function. The setTimeout function works similarly.
|
|
|
|