|
I am using
window.showModalDialog(...
to open a modal dialog window. Does anyone know how I can hide the titlebar.
Thanks in advance
Ami
|
|
|
|
|
When I click a button on an ASP page, I want to open a new popup window and submit the parent ASP page to itself. Once this ASP page is reloaded, I want to close the popup window.
How do I do this?
Hitesh
|
|
|
|
|
|
I am trying to write a simple batch file to get a project from source safe, build it using the vs.net cmd line and then deploy it somewhere.
I am using the following line to get the project from vss:
ss get $/MyProjects/MyProject1 -R -I- -NL
–R -> recursive
-I- ->don’t ask for input
-NL -> use long names (alternatively –NS for short names)
However, this is an asp.net project, all the filenames are being trimmed when getting from vss, and this results in files being copied over. I have searched the documentation and on the web and cant find my answer, can anyone help?
Thanks,
Rob
|
|
|
|
|
> Hello,
> I would like to know how can I download html files from the
> internet and save them programmatically. I want to perform
> the task in VBA. Currently I am using Microsoft Internet Controls shipped
> with Internet Explorer and the ExecWB method supported.
> I was able to invoke the saveas dialog using the same, but I would like
that
> to happen automatically without user intervention.
> Example :
> ie.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER,
> "C:\Temp\Testing.htm"
>
> Another problem is that the resources embedded in the HTML are not
> downloaded using this mechanism.
> I would want a functionality similar to IE SaveAs Option.
> Any guidance would be helpful.
>
> Thanks,
> Abhishek.
|
|
|
|
|
Hi All!!
I am using classic ASP and I am having the following error:
· Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'Session'
//global.asa, line 15
· Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
· Page:
GET /nederburg/admin/updateBids.asp
And this how I have it in my global.asa file:
Sub Session_OnStart
Session("SafeTrack") = ""
Application.Lock
Application("Sessions") = Application("Sessions") + 1
Application.UnLock
' Brendans addition
'----------------------------------------------------------------
' Store database connection string - MS ACCESS
'----------------------------------------------------------------
Application("ConnectionString") = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=;Password=;Data Source=" + Server.MapPath("/db/db.mdb")
End Sub
Line 15 refers to Session("SafeTrack") = ""
I don't understand the error. When does global.asa get loaded? Does it only get loaded through a default.asp in the root directory?
I would appreciate any help.
Thanks
Brendan
|
|
|
|
|
If you are using Session to store varchar values then you have to initialize with some values such as Session("SafeTrack")="none", or
If you are using Session to store integer or float values then you have to initialize with some values such as Session("SafeTrack")=0
Session("SafeTrack") = "" does not specify data type you are storing in session. hence it leads to Type Mismatch
Hope this helps,
AnandG
|
|
|
|
|
I am creating a web app that has several UserControls loaded. What I want to do is when the user clicks the Datalist Item that has a Controls corresponding value, it sets the UserControl to being visible. All the other UserControls are set to hidden.
I know how to set Textboxes etc to hidden and visible using Javascript, but how do I set the UserControl to hidden and visible when the correct item in the datalist is selected.
Any help would be greatly appreciated.
Graeme
|
|
|
|
|
|
Thanks Deepak I will try that and let you know how it goes.
Graeme
|
|
|
|
|
Excellent that worked brilliantly. Just have to set the height and width and visibility, as I was having a problem that the rest of the items below the ascx page (static data/GUI) do not move down when you set the visibility to visible.
It seems to place is over the top of the items currently on the page, instead of moving them down.
We will have to set the height depending on the size of the DIV that we set up for each control.
Is there any way of getting the height of the DIV tag as a variable and just increasing the height based on the height of the div that should be visible. IE: can you get the div's height value at run time from the client side script, and when setting the visibility, setting the height also?
Thanks for the help
|
|
|
|
|
Dear CPians,
Has anyone ever come up with any problems related to Sessions in IIS or with Macromedia Communication Server when the client accessing the website uses toolbar addin such as the Google bar or the MSN Toolbar?
I think that there is an issue with Macromedia Communication server and I am wondering wether there is a problem with IIS too.
My experince shows that when using MSN Toolbar or Google Bar and accessing a Flash that communicates with the communication server, the connection on server will never close even when the browser is closed and the pc rebooted. This does not happen when the toolbar addin is disabled.
Today, I noticed some abnormal session handling by IIS on another website and thought that it could be the same problem as the one above.
What I am asking is if anyone has noticed any problems like this. It might be my code, but so far I have been through alot of debuging and haven't found the flaw, so I started wondering if there is a more general problem. I have googled the problem but no related links came up.
Any hint, help, idea is wellcomed!
Thanking you in advance.
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
Any one with a piece of code to validate the email address like @ sign and the .
-oam-
|
|
|
|
|
The code i was looking for is here[^]
-oam-
|
|
|
|
|
Here's my scenario:
I want to run some sort of game engine on a server so that clients can:
- get a list of the games already running on the server
- join one of these games
- interact with the game
The idea is for the games to be multi-player and operate on asp.net pages. If a user refreshes his client, he can see the changes to the game caused by other players. I've already designed the necessary classes for game play, but I'm a little unsure how to have the games running constantly on the server. Would I use a WebService? Should I take the remoting route to solve this? I doubt I can run a console app on the server, since I will not be hosting this on my own server.
I don't consider myself a .NET newbie, but I think I'm missing a few key ideals that it takes to implement such a project.
Thanks for any constructive advice!
|
|
|
|
|
Hi M,
I had a same kind of issue when i was writing a chat application. I ended up using iframe and javascript as i was not refreshing iframe with any parameters. In your case you can use iframe or use webservices from javascript and it should fine.
Thanks
Manoj
|
|
|
|
|
Thanks for your response Manoj...
Refreshing the page isn't really my problem though; it's bigger than that.
I need to know how to keep some sort of application running on the server that instantiates some objects and is able to share those objects with clients.
|
|
|
|
|
One of the ways i can think you can solve the issue is using web services as you can share some global variables between your webapp and webservices
|
|
|
|
|
Does anyone know how to code a text field in classic ASP to auto insert a dash when some types in a phone number or a date. Thanks.
|
|
|
|
|
|
|
I'm not sure if this is the right forum, but my question covers many areas. Firstly I am VERY new to C#, ASP.NET, so please tell me if I am going about this the wrong way!
I am having to develop an intranet site for the College where I work. This has to be done quickly so I have used FrontPage to get me going - ok, so far so good. We have to have a lot of reports (currently paper-based) available on the intranet, either as HTML pages or in Snapshop format. These reports come from Access and Oracle Discoverer. Additionally, I have some C# routines which are invoked from the relevant intranet pages producing information which could not necessarily be produced in a straight report - these are ok.
The problem I have is that I want users to be able to click a report title on the intranet page so that it does NOT just display the report content that we may have previously saved in html format, but actually invokes Access to run the report there and then.
I have managed to write a Console Application in C# which fires up Access, supplies it with the data base path and the name of the report to run. This works well from a command line interface. The BIG question is now, "How can I get the same thing to happen from HTML?" Probably because of my lack of experience, I cannot see how I can invoke the C# Console application, passing it parameters, from the html page.
Can anyone put me out of my misery?
Many thanks
Keith
|
|
|
|
|
I have a couple of webservicees that we deploy on various servers. They work fine on everything but 2003. I have had to give the ASP.NET user permissions to the install directories in order for log files to be read and written, but other than that, they seem to work fine. Well, on the 2003 install it gave us a 401 permission denied error, along with some errors about trying to read and write log files, once again, permission errors. We attempted to give ASP.NET and the iis_wpg rights to the folders and still no luck. Any help would be greatly appreciated.
Thanks so much,
Ryan
|
|
|
|
|
Hello
I want to ask if there is a way to change the source of <embed /> tag in html throught
java script. I have added sound to a web page and after clicking on an image I need
to change the playing track (wav or mp3) but I don't want to use <object> tag because of
compatibility with other browsers.
I just need a sample function and I don't know how correctly define the object's 'name' or 'id'
f.e.:
<embed name="audio1" src="sound/01.wav" ...="" />
or
<embed id="audio1" src="sound/01.wav" ...="" />
?
So how can I access this object in a function?
thanx a lot
|
|
|
|
|
Is there a function in ASP to extract a substring from a string.
|
|
|
|