|
hi
in one of my webform's project , user can select some choice from a list.
after each select, that item insert into a temp table in my database. and ...
at last ,if user click ok button ,all selected things insert into main table.
if page closed or exit with any reason before user click ok or cancel button , in code temp table must be clear.
my problem is can not find any thing such as an event for times when user exit from the page.
how can recognize in asp.net when user exit from a page ?
tanks
|
|
|
|
|
In ASP.NET, you can't, but you can write AJAX code that sends a message to the server when the browser is closed, and of course you can integrate this into your ASP.NET project, although it won't use any ASP.NET libraries or code behind ( unless you choose to emit your script in your code behind ).
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
tanks.
exactly this solution was in my mind.
and now found is right
|
|
|
|
|
To handle the Browser close event you will have to write a javascript function that handles it and call the function on the OnBeforeUnload client event.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
I'm using ACCESS 2000 and i make a connection to dreamweaver 2004.
heres the code:
<configuration>
<appsettings>
<add key="MM_CONNECTION_HANDLER_conn" value="default_oledb.htm">
<add key="MM_CONNECTION_STRING_conn" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\sample\data\data.mdb;User ID=;Password=">
<add key="MM_CONNECTION_DATABASETYPE_conn" value="OleDb">
<add key="MM_CONNECTION_SCHEMA_conn" value="">
<add key="MM_CONNECTION_CATALOG_conn" value="">
I click the test connection and its okay. My problem is when I check my table there no any record. Could somebody help me
|
|
|
|
|
Hard to say based on the half snippet you offer here. What makes you feel you should be getting something back ? What does your code look like ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hello friends,
We got this error in application.What could be the problem? Is our code is wrong? or We miss something? This error occurs when we try to access sql server..
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Please help us.
|
|
|
|
|
Hi
Has anyone built scott mitchells online photo album out of the book learn asp.net 2.0 in 24 hrs?
|
|
|
|
|
Scott Mitchell probably has...
What problem are you having ? Do you have the source code from his site, or have you had to enter it.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Dear Sir
I have tried to enter the code myself.I have a manage categories page and a default page. the details view is supposed to show the category id from the manage categories page in a dropdownlist on the default page. i checked and rechecked the foriegn keys, the sqldatasource. ect ect . It just wont do what i need it todo.
|
|
|
|
|
Are you sure you can't download the code from the web ?
learningman wrote: It just wont do what i need it todo
Well, is that because your expectations are too high ? What *does* it do ? Is it blowing up, or just not meeting your needs ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
My problem is,
I form a string...
string filter="dataView"+someIndicator+".RowFilter='someField="+someExpression+"'"
... and now I want execute that string. What should I do?
@filter
or
Eval(filter) ?
I would be very thankful if anybody could give an advise.
Thanks,
marijus
|
|
|
|
|
There is no such thing as an Eval function in C#. You should rethink the solution.
You can for example keep an array or a list of the data views that you create, so that you easily can access them by index.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks, you gave me a clue. I've done what I needed.
|
|
|
|
|
how can we introduce the concept of themes in Asp.Net 1.1 ????
|
|
|
|
|
Singh Is king wrote: how can we introduce the concept of themes in Asp.Net 1.1 ????
Implement all the necessary classes(styles ) that is need for the whole application in a .CSS file(style sheet). Make another copy of the same style sheet with the same classes implemented but with different styles. Now you have two different themes for your application. In the base class, based on some condition you decide which CSS file you application has to refer.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi All,
I need to set the src to usercontrol form of an iframe , please help me with this.
Ex:
<iframe scrolling="yes" name="changer" id="myFrame" src="TestControl.ascx" width="100%" height="100%" class="text"></iframe>
Thanks in advance...
|
|
|
|
|
The contents of the IFRAME element can be a aspx or html page . You can't set the source to a UserControl. I suggest you to Place the UserControl in a aspx Page and set the source to that Page.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi,
I m using framework 1.1,
Just i want my project don't give the error message of conncetion.......
I have connction problem.
My Conncetion losts everytime, while i m in page that takes more time to fill the informations.
2nd problem is SESSION..
session time?
from where to set a session time..
i want long session time, just like for 45 minutes.
Actually I have set time in Web.config . but i think it is not woking.
<sessionState mode="" stateConnectionString="" sqlConnectionString="" cookieless="" timeout="50" />
In this statement 50 is minutes or seconds?
What settings i have to make.
Do i have to set SQL Command timeout myCommand.CommandTimeout = 180; ? Can This time affect my conncetion?
Please discuss in brief. Thanks:->
Have A Good Day
|
|
|
|
|
Hi
Can any one tell the best way of the project architeture.
If plz send me the architecture.
mallika
|
|
|
|
|
The architecture is dependent on the requirements the project should implement.
There is no one-fits-all architecture.
Therefore your answer can't be really answered.
Of course, you can look for some best-practices, but nothing specific:
- UI specific: ModelViewPresenter
- Design for testability: DesignPatternsForUnitTest
- and many more...
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Hello Everyone,
I want to display the images in the DataGrid's column through template
Can anybody suggest me the way........
|
|
|
|
|
Hi
1.Click on smart tag of grid
2. Edit columns
3. Add command feild.
4.Click ok.
5.Click on smart tag of grid
6.Select edit columns
7.Select the button added
8.Remove button and add a image button
9.Go to edit templates
10. give image url.
hopes this will help.
if worked out please give me a message.
mallika
|
|
|
|
|
Sorry friend,
I think u didn't get my prob. Actually i've stored no. of images and their corresponding infos. in my database now i want to display those images in datagrid. So i'm using the template of the datagrid to show the images ...... but i donot know how to do it ......
|
|
|
|
|
Hi,
I have installed asp.net 2.0 and 1.0 on my pc in C drive. I have a service pack 4 in my pc. When I was debugging the web application in 2.0 it was debug fine but when I was trying to debugging the web application in 1.0 it gives message as-----Unable to start debugging on the web server.
Can any one give me solution for this
|
|
|
|