|
|
Hi Paw...thanks for the intelligent advice...it was genius to figure that out...
living life on the flip side
|
|
|
|
|
living life on the flip side
|
|
|
|
|
Use the click-Event handler of your ?button? and add the following lines of code
Response.Write("<script language="javascript">window.close();</script>");
hope this helps
Franz
|
|
|
|
|
Hi Franz,
wen i use the code then i get the following error:
Error parsing near '<div class="ForumSig">living life on the flip side</div>
|
|
|
|
|
don't use " - use ' instead
if this doesn't help - post the complete event-handler and I will have a look on it
franz
|
|
|
|
|
Hi Franz...this is the error i got:
Sys.WebForms.PageRequestManagerParserErrorException: The message recieved from the server could not be<br />
parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response<br />
filters, HttpModules, or server trace is enabled<br />
Details: Error parsing near '<script language='ja'
living life on the flip side
|
|
|
|
|
|
Hi Paw...thanks but no luck...it still breaks...my above msg has the full error
living life on the flip side
|
|
|
|
|
The system complains because you are doing something very insecure. I think you can turn this off with PageValidation or something, but rather find another way. I suggest you try that in the Web or ASP.NET forum.
|
|
|
|
|
hi ,
use this in ur aspx page
<asp:linkbutton id="lnkClose" onclientclick="Javascript:window.close()" runat="server" text="Close" xmlns:asp="#unknown">
Ashok
|
|
|
|
|
Hi ashok...sorry but the event needs to be code behind...its a MenuItem event
living life on the flip side
|
|
|
|
|
hi,
I want to catch element Id in html file that opend with WebBrowser Control when end user click it.
thanks.
Wafy
|
|
|
|
|
I am having some serious problems using the built-in setup project in VS2005. During installation users can check if they want a client programm installation, a client installation including database (and database server) or only database (including database server).
Depending on what the user chooses I'd like to show a different setup dialog.
i.e. user chooses client -> install -> ready
user chooses client incl. database -> show dialog with textboxes for servername/databasename
Is it possible to include a user-defined customizable dialog in the setup project?
Is it possible to define different "ways" in a setup project? (on a) show this dialogue, on b) show another dialogue)
Thank you for your help!
|
|
|
|
|
I don't think it's possible to insert custom dialogs into an Installation using a Visual Studio Setup Project. You can customize the dialogs that are already available, but that's about it. For fine grained control over the setup project you'll need to use some other Installer package to create your MSI file. Orca is Microsoft's basic MSI file editor: http://support.microsoft.com/kb/255905[^]
That being said, I've run into the same situation. What I did was customize one of the existing dialogs to allow the user to select a Client (no DB) or Server (lots of DB) installation, and then pass that choice into a Custom Action DLL that performed any configuration items that the MSI wasn't able to handle (that included my DB setup). The custom action can do whatever you want, so I handrolled a dialog sequence that prompted for the DB login info (and a bunch of other stuff) and then went to work beating Windows into submission using C#.
Hope that helps.
|
|
|
|
|
Thanks that worked great for me. I modified the installer class to show a form. This form will retrieve any information that I need!
|
|
|
|
|
hello,
My application depends on a sql server database I want to deploy my project in the client machine with out deploying the sql server express edition because it take some disk space and it some times cause some problems in its deployment(mainly if user don't have any experience).Is there any way to overcome this situation.
thanks
Dad
|
|
|
|
|
Hi
Right-click your project and add a new installer class. Within your installer class add following code
Public Overrides Sub Install(ByVal stateSaver As _
System.Collections.IDictionary)
MyBase.Install(stateSaver)
Try
' Creates the database.
ExecuteSql("master", "CREATE DATABASE dbTest")
' Creates the tables.
ExecuteSql(strDBName, "CREATE TABLE .....")
Catch ex As Exception
' Reports any errors and abort.
End Try
End Sub
I found this code in the net. Although it is written in vb.net it may help you.
Franz
|
|
|
|
|
thanks for help,
but does it will work on a client without installing any version of sql server.The main problem is that the user will use the database as a flat database like the access database.
is there a sql engine in framework 2 to attache the database to it.
thanks.
Dad
|
|
|
|
|
So basically what you are saying is you want a database on the client machine, but not install a full database environment, well sql compact is your friend
http://www.microsoft.com/sql/editions/compact/default.mspx[^]
one thing you cant do is have stored procs tho, but on the plus side its free
|
|
|
|
|
Hello,
most SMTP servers limit sending messages to 600 per hour, my application enables user to send
mail message to more than the limited number so I want to know how to get the count of messages sent in the current hour to inform user that there may be some messages will be send after an amount of time.
Dad
|
|
|
|
|
The SMTP protocol does not support a commmand to retrive the number of messages you can send per timeperiod. So I think you must set the limit and track it in your own application.
Espen
|
|
|
|
|
Is the query below performance-wise? If not, please tell how to optimize it.
return elements.SkipWhile(el => !startCondition)
.TakeWhile(el => !stop2condition)
.Reverse().TakeWhile(el => !stop1condition).Reverse();
The goal is to get a range marked as a ===== line:
---->start========stop1==========stop1------stop2----------
I have to find [start -> stop2] enumerator, and then cut the end. I cannot find stop1 directly, because between start and stop1 there are other elements which satisfy a stop1 condition. Other words, I need to get the last element which statisfies a condition stop1 before stop2. Hope it's clear what I meant here.
Any help appreciated.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
You van combine the boolean test. !stop1condition && !stop2condition
|
|
|
|
|
leppie wrote: You van combine the boolean test. !stop1condition && !stop2condition
!(stop1condition || stop2condition)
You have misunderstood me. I do not want to search for the first occurance of stop1 or stop2. I want to find a stop1 which is nearest to stop2 in a backward search. As I sad: the last stop1 before stop2.
Consider the following example:
-------start========stop1a=====stop1b-----stop2---
Your query would find start -> stop1a and I want get start -> stop1b .
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|