|
Do this:
1. Have a table with column named logged
2. When user1 has logged in fill column with value e.g. 1
3. If user2 tries to log in check if there is a value in the column
4. if so dont let user log in
5. When user 1 logs out clear column.
We are not a Code Charity
|
|
|
|
|
Isn't this the same thing as your post 'single instance of an application using Application start in global.asax.'?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
Use
if (Page.IsPostBack == true)
{
}
We are not a Code Charity
|
|
|
|
|
i am using Ajax 2.0 UpdatePanel. When first time page is load, focus is set properly but after postback code for focus run properly but focus is not set. This is because of updatepanel but i cannot find its solution.
Thankx.
Regards Syed Kamran ul Haq
ALLAH HAFIZ
|
|
|
|
|
Hi,
Can any one suggest me how to maitain a single instace of an application using Application start method of Global.asax.
|
|
|
|
|
|
i have a window from where i ll get the list of records in a pop up window. on selecting a record i have to display the records in a previous window.
the way i am able to do is displayin the data in new window.
|
|
|
|
|
OK so you've basically got a base page and then a pop-up window where you can choose an option and then the window closes and you go back to your base page. You are going to need to re-fresh your base page when you go back to it. Just put any important values in a session.
Does this help so faR?
We are not a Code Charity
|
|
|
|
|
thx..
ill try this
|
|
|
|
|
I have a web page with text written in a special font (that dosen't exist by default in the windows/fonts dir).
So, is there any way to install this font on the user m/c without forcing the user to manually put this font in the fonts dir?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
I think the only way they could do it is to download it from your app.
The problem is, is that there are so many fonts to choose from that asking the user to install another is not great for your app.
I would recommend using one of the exisitng fonts
We are not a Code Charity
|
|
|
|
|
i am dowloading it form my application , but not being saved to the user machine
here is the code.
StringBuilder sb = new StringBuilder();<br />
SHGetFolderPath(IntPtr.Zero, 0x0014, IntPtr.Zero, 0x0000, sb);
if (Directory.Exists(sb.ToString()))<br />
{ <br />
DirectoryInfo f = new DirectoryInfo(Server.MapPath("fonts")); <br />
foreach (FileInfo fil in f.GetFiles())<br />
{<br />
if (!File.Exists(sb.ToString() + "\\" + fil.Name.ToString()))<br />
{<br />
fil.CopyTo(sb.ToString() + "\\" + fil.Name.ToString(), true);<br />
}<br />
else<br />
{<br />
Response.Write(sb.ToString() + "\\" + fil.Name.ToString());<br />
}<br />
}<br />
}
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Pankaj Garg wrote: but not being saved to the user machine
you are totally lost. Please take a beginner book and learn ASP.NET. ASP.NET runs on server and it can't access users machine.
|
|
|
|
|
so , it is not possible to save the file in the user machine in asp.net ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
No, it's not possible to do that using ASP.NET
|
|
|
|
|
is there any way out to do it, actually , i have to save the fonts in the user machine.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
There is no way. Use a standard font, or convert the special font text to an image.
|
|
|
|
|
Can i sort out this issue in the lattest version?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
You obviously don't like the answer you are being given. ASP.NET CANNOT write to a client machine, otherwise everybody and his dog would be planting viruses and rubbisheverywhere. As far as it goes, your font could just a seasily be a virus. The only way is to get the user to download and install it.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
What a wally, if you had just read my first reply properly you would have saved yourself all the time of posting.
Read my post again!
We are not a Code Charity
|
|
|
|
|
user is not willing to download and save it to the fonts folder.User need the application to do it for him.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Tough!
change your font so it is one of the standard ones
We are not a Code Charity
|
|
|
|
|
hi friends
how to export image to excel using asp.net
i tried many code,but that is not using.
regards
saravan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
http://www.google.co.uk/search?hl=en&q=export+image+to+excel+asp.net&btnG=Google+Search&meta=
We are not a Code Charity
|
|
|
|