|
Those look to me like custom controls laid out in a simple table.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have seen them on many web sites. Most of which are aspx. I thought there might be a common control since they all look the same...
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
I get an "http/1.0 425 http Error" when i try the create a web service using Visual Studio 2003. I have IIS installed and started.
I go to File -> New-> Projects->C# Projects - > ASP.NET web service.
I click 'ok', then i get the above error. Researched it on the web but cannot find a solution get beyond this point.
Anyone know about this?
|
|
|
|
|
I have a simple web app that alows the operator to search for files and download them (log files), the click a button to look up the directories, pick a file and download it. This seems to work fine if the source files are on a local disk, but not if they are on a network drive. Is there anything special I need to do or is this one of those deals where doing a dir of a network drive is not allowed.
The call is simple
myName = Dir(MyPath, vbDirectory) ' Retrieve the first entry.
If myPath is local it works fine, if not it returns nothing...
|
|
|
|
|
The user context that your web site is running under doesn't allow you access to the the other network drive. Most likely your web app is running under a default app pool which means it is running as aspnet user. This user would not have rights to access a network drive. I would not suggest give that user rights either as it can be a security issue.
In this case it might be best to try to create a virtural directory that allows the web site to have access to those files. Anyway, hope that helps.
Ben
|
|
|
|
|
Thanks for the help, I am trying to figure this out the hard way and did not realize it was running under a different account, that explains a few things.
This network is an internal network, so security wise my concerns are not as large as they woudl be on the internet. So option #1 is not necessarily closed.
I tried to create a virtual directory but may be mis-guided in how to do it. I created a virtual directory, it appears that it figured out that it was a network drive, I gave it the password for that drive, but when I connect with a browser is asks me for a password again. It does not seem to accept any type of local password or the pasword used to access that drive. Do I need to do something to make the web site get access?
Any additional suggestions or guidance are more than welcome...
Mike
|
|
|
|
|
Well, I can think of a couple of different options.
You could create some process that copies the files from the network to the local web server.
If the files aren't a big security risk, you could create a share for that folder and give everyone rights to it. NOTE still not a great idea even if is just on your local intranet.
So you are left with the final option.
This one is a little bit more involved, but I think it will work well.
First create a domain user account (or have your domain admin create the account for you)
Find what ever app pool your site is running on. If you are currently running on the default app pool I would suggest creating a new one for this site.
In the app pool go to the identity tab. Set the identity to be the domain user you created. NOTE this domain user must be in the IIS_WPG group on the web server box.
Next give the domain user the correct rights locally and on the network folder.
It is a bit of work, but in the end it is probably the best choice.
The other cool thing you can do when you have your web app using the app pool identity. You can use NTAuthentication for you sql connection. You just have to change the connection string and set up that domain user with the correct rights on your sql server.
Ok that was probably more then you wanted to know.
Hope that helps.
Ben
|
|
|
|
|
I appreciate your support and help. I like your options but copying the files is not very feasable as we generate some 10,000 a day and they are in Malaysia.
I am not sure I could create a share with everyone permission as they are on a different domain, so it looks like Option 3 is the direction to head if I can get a little more guidance.
I am not sure I understand the App pool I wil try to do a bit of reasearc but is you know of a good article ot two to point me in teh right direction that would be great.
I have a SQL connection to the same sounce (in Malaysia) up and running and it works great, it is just using SQL security though.
Mike
|
|
|
|
|
I don't know of any good articles out there on app pools. I am sure they are there, but I haven't really looked. I will give my understanding of the application pool.
The application pool is kind of like the IIS worker process thread that handles the work for any of the sites under it. So the app pool is kind of the top dog. In your IIS manager you will see a folder right above the web sites call application poos, that is where the app pools are located. A nice feature of an app pool is if you create a new app pool for your web application you can stop and re-start that app pool with out affecting any of the other web application that are connected to different app pools. One interesting default on the app pool is that it recycles itself ever 29 hours. I have seen some interesting problems from this since eventually it happens in the middle of the day and your users lose their session etc. That is one thing I would always suggest changing. I usually set mine to recycle during a time I know there won't be any users on the web site. If you right click your web site and go to properties. If you click on the Home Drectory tab the drop down at the bottom tells you which app pool the site is currently connected to. If you want to create a new app pool. Go to the application pools folder and right click and then new and then new app pool. You give it a new for the app pool and you are done. To set the identity of the app pool. Go to the application pools directory, find your app pool, right click and click on properties. The first tab to see is the Recycling tab. Note the default is in 1740 minutes. This tab is where you would set the recycle time if you wanted it to happen at a certain time of day. NOTE Any changes to the app pool will re-start your web application. So make sure this stuff is set up correct first. If you need make change to it later just keep that in mind or you will have some un happy users. Ok go to the Indentity tab put in your domain user and password. Finally YOU MUST add the domain user to the IIS_WPG group on the web server or things will not work. Go to computer manager, local users and groups, groups find the IIS_WPG group and add your domain user.
I am sure there are better articles out there, but at least that is a quick dump of the stuff I think is important to know.
Ben
|
|
|
|
|
I have 2 images in my sql server dataset. I need to merge and show as a single image in my aspx file.
Any idea how to do that
Thanks in advance
rule
|
|
|
|
|
Create a Bitmap object with the size of the combined images, and draw the images onto that. Save the bitmap to Response.OutputStream.
You need to do this in a separate page, so that the browser can request the image after loading the regular page.
---
single minded; short sighted; long gone;
|
|
|
|
|
Add an image control to your aspx file that points to another aspx file with whatever parameters you need to find the images. In this other file, pull the data out the database, use something in System.Drawing (I can't be more specific than that, sorry!) to merge the images together and then push them down the response stream after setting the content type to whatever image type your serving.
Or an easier way might be to simply put two images on the page styled in such a way as they appear as one (therefor skipping the image mergin bit)
|
|
|
|
|
The method I have coded does not work well when the element is wrapped within multiple DIV elements?
function calcXY (obj) {
var x = y = 0;
while (obj != null && obj.nodeType == 1) {
// alert (obj.nodeName + ' ' + obj.offsetTop);
x+= obj.offsetLeft;
y+= obj.offsetTop;
obj = obj.parentNode;
}
alert ('Location of obj is ' + x + ',' + y);
}
Can anybody help me with a suggestion or a better method?
B2C
|
|
|
|
|
hey. can i send videos on a mobile phone using asp.net
if yes thn plz let me know as soon as u can. its very urgent.
thnx
hope to get a reply
|
|
|
|
|
:(I'm having problems with my resource manager in ASP.NET 2.0 after conversion
from ASP.NET 1.1.
Here is a background:
In ASP.NET 1.1
All my user controls and aspx pages inherit from base classes. A base class
includes this property (among others...):
Private m_rscResources As System.Resources.ResourceManager
Public ReadOnly Property rscResource() As System.Resources.ResourceManager
Get
If m_rscResources Is Nothing Then
m_rscResources = New
System.Resources.ResourceManager("MyPortalNamespac e.Strings",
System.Reflection.Assembly.GetExecutingAssembly)
Return m_rscResources
Else
Return m_rscResources
End If
End Get
End Property
In my application root folder I have two files. One strings.resx and one
strings.sv.resx. When I call the rscResource.GetString method I simply use
the tag name to get the translation.
Label1.Text = rscResource.GetString("First name")
In 1.1 this works absolutely fine. However, In 2.0 (after conversion), it's
not working. The error message I get from .NET is:
System.Resources.MissingManifestResourceException was unhandled by user code
Message="Could not find any resources appropriate for the specified
culture or the neutral culture. Make sure
"MyPortalNamespace.Strings.resources" was correctly embedded or linked into
assembly "App_Code.lkep0udn" at compile time, or that all the satellite
assemblies required are loadable and fully signed."
I've tried to dynamically get the current executing assembly name like this:
m_rscResources = New
System.Resources.ResourceManager(System.Reflection .Assembly.GetExecutingAssembly.GetName.Name
& ".Strings", System.Reflection.Assembly.GetExecutingAssembly)
Same error message (but 'MyPortalNamespace' is replaced).
I've tried a number of things to work around this, but I still get this
error message. I've tried placing the resource files into different
directories including App_Code, App_GlobalResources, application root etc.
None is making it better.
So, here I stand...
I want to clarify that I know how you can use resources in 2.0, but that's
from scratch. I have hundreds and hundreds of places where I use
rscResource.GetString("MyKey") and I really don't feel I want to change all
that now. p
please suggest me how to make it possible
|
|
|
|
|
Is there a way in javascript to call a function that is in an external DLL? Without ASP.NET? I would like to pass back events to a C# DLL program that I’m running.
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
That may be out of the question. You may be able to achieve it with Flash.
Nonetheless, try this page. It may help...
http://www.thescripts.com/forum/thread427912.html
|
|
|
|
|
Thanks for the quick response. I think since I’m using WebBrowser control in my C# dll I can use the ObjectForScripting method to pass what I need from the javascript.
Thanks again
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
Glad I could help!
|
|
|
|
|
Glad I could help
|
|
|
|
|
New to devlopment with VS.net, I created a very basic page that should query a database and return some data. It works fine on the development station but when I run it on the server it does not appear to work. The screen appears to refresh but nothing else happens. In my feeble attempt to degug I added a simple button and added the following code:
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
lblNotes.Text = "Test"<br />
End Sub
This also appears to work on the workstation, but not on the server.
How can I chase this down? I know this may be a simple question but I am self teaching myself and little things like this appear to be my biggest challenge....
|
|
|
|
|
Did you compile in debug mode? Only then PDB files are created.
|
|
|
|
|
How did you deploy the solution to the server?
|
|
|
|
|
Thanks for the response, the solution is set to build in debug mode, deploying to the server is esssentially a copy of the project on the server, not sure if that is teh right way or not.
|
|
|
|
|
Hi!
I have a problem, i am programming a datagrid in asp.net under webmatrix, only is a connection to access database and show this query in a datagrid, every very good exception for the query pagination.
How i can allow what, if the user press a number of page from query, then the asp change the query result to the number page?, attach the code because not work this section, thanks very mucho for you help.
---------------------------------------------------------------------------------------------------------
Private connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=C:\lo que se va a estar respaldando\mio\my_access_db.mdb"
Private dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString)
Private dbCommand As System.Data.IDbCommand = New System.Data.OleDb.OleDbCommand
private dataAdapter As System.Data.IDbDataAdapter = New System.Data.OleDb.OleDbDataAdapter
private dataSet As System.Data.DataSet = New System.Data.DataSet
'/////////////////////////////////////////
Sub cmdQuery_Click(sender As Object, e As EventArgs)
If Len(Trim(txtSQLQUery.Text)) > 0 Then
SQLProcesss(Trim(txtSQLQUery.Text))
Else
MsgBox("No SQL Query string ingresed!", vbCritical, "Error")
End If
End Sub
'/////////////////////////////////////////
Sub SQLProcesss(SQLCommand)
dbCommand.CommandText = SQLCommand
dbCommand.Connection = dbConnection
dataAdapter.SelectCommand = dbCommand
dataAdapter.Fill(dataSet)
dgData.DataSource = dataSet.Tables(0)
dgData.DataBind()
MsgBox(Str(dataSet.Tables(0).Rows.Count) + " rows found!", vbInformation, "Query")
End Sub
'/////////////////////////////////////////
Sub cmdClear_Click(sender As Object, e As EventArgs)
txtSQLQuery.Text = ""
End Sub
Sub dgData_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs)
'This section not change the query results to the number page
dgData.PageIndexChanged = new DataGridPageChangedEventHandler(this.dgrdDepartments_PageIndexChanged)
End Sub
Cuando salga el sol, no estare aqui...
|
|
|
|