|
use top and left parameter of window.open function for positioning the pop-up.like
TheNewWin = window.open('','name','height=255,width=250,<br />
toolbar=no,directories=no,status=no,menubar=no,<br />
scrollbars=no,resizable=no,top=20,left=20');
This only sets the position the first time the window is opened though. If we are intending to reuse the same window for multiple popups then we will want to relocate the window to the desired location immediately after the window opens instead.
use MoveTo function for that.
TheNewWin = window.open('','name','height=255,width=250,<br />
toolbar=no,directories=no,status=no,menubar=no,<br />
scrollbars=no,resizable=no');<br />
TheNewWin.moveTo(50,50);
Tirtha
Do not go where the path may lead, go instead where there is no path and leave a trail.
Author: Ralph Waldo Emerson (1803-82), American writer, philosopher, poet, essayist
|
|
|
|
|
Use height, width for setting height and top left attribute to set the position.....
Arun Singh
Noida.
|
|
|
|
|
we have an old software built using frame wrk 1.1 and vs 2003.now i want to recreate this software using vs2005 fw 2.0 .after making some manipulations the software is running but the database connection is showing some error.here we are having the old software with some modules and a text file contains queries and a database(DAT file )back up file.i have attached these files sql connection module in the solution explorer.but stil while running the program ask for username and pass word ,while giving this it shows "there is no active db connection found."
1.how to reconnect the database?
2.how to get the username and password that is stored in the old database?
3.the connection is set in the config file but i cant locateit also.
"I am burning...the only thing rest in me is you..."
|
|
|
|
|
hai
post complete error message so that we can help you better....
Regards,
Sandeep Kumar.V
|
|
|
|
|
the error message is:
" no active database connection.check your network settings."
this massge comes in a msge box when we r giving username and password .
"I am burning...the only thing rest in me is you..."
|
|
|
|
|
hi friends
how to create tellyourfriend concept in .net
can u help me??
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Which bit are you stuck on ? It just looks like a big online store to me. Is there something more complex going on ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi...
can anybody help in setting the location and height and width for the poppage
this my poppage script
Page.ClientScript.RegisterStartupScript(Me.[GetType](), "openpopup", "window.open('../Page2.aspx','test','scrollbars=2');")
thank u.
siri
siri
|
|
|
|
|
Hi,
Below is code to set height and width.........
window.open(url, name,"scrollbars=yes, screenX=25, screenY=25, directories=0, height=100, width=100, location=no, menubar=no, resizable=yes, status=no, toolbar=no");
Regards,
Sandeep Kumar.V
|
|
|
|
|
Many times i came across situations where multiple users updates the same set of records at the same time simultaneously. And i also came across situations while i am selecting a set of 100 records another process should not pick the same set of records.How to Implement this???
Can anyone explain in detail about DB LOCKING and how to retaining DB Integrity..
Whether to apply in Application end while querying or at DB end. And how to test whether LOCKING is implemented or not???
Sathiya
|
|
|
|
|
if you want to do atomic operations on db then see "transactions".
But I have never used... Just wanted to say that all i know about them is that they provide u atomic operations
CREATE PROCEDURE DeleteEmployee ( @EmployeeID int )
AS
BEGIN TRANSACTION -- Start the transaction
-- Delete the Employee's phone numbers
DELETE FROM EmployeePhoneNumbers
WHERE EmployeeID = @EmployeeID
-- Delete the Employee record
DELETE FROM Employees
WHERE EmployeeID = @EmployeeID
-- See if there is an error
IF @@ERROR <> 0
-- There's an error b/c @ERROR is not 0, rollback
ROLLBACK
ELSE
COMMIT -- Success! Commit the transaction
|
|
|
|
|
A transaction makes a group of operatons atomic, I don't think it locks the tables in question.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
aa yes but i just thought transactions can help about his problems
|
|
|
|
|
I want to make a mail server in asp.net with c# .net. a mail server like yahoomail or gmail through user can regestered and
can send & recieve mail. is it possible. if possible how?
|
|
|
|
|
You don't mean a mail server. You mean you want to write a webmail client. Of course, that's actually pretty easy. You do need a mail server through which you can send the mail, and you need to be able to create mail accounts on that server, but those are not ASP.NET tasks.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
plz tell guide me how it is possible?
|
|
|
|
|
hi
I have 2 dropdowlist in the following manner..........
Page_load(..)
{
dd1.items.add("MCA");
dd1.items.add(("B Tech");
}
protected void dd1_selectedvaluechanged(..)
{
if(dd1.SelecteValue=="MCA")
{
dd2.items.clear();
dd2.items.add("Computers");
}
else
{
dd2.items.clear();
dd2.items.add("CS");
dd2.items.add("IT");
dd2.items.add("ME");
}
}
//postback is true on dd1 and false on dd2
this is working fine when i select MCA, Computers is added to dd2 and when i select B Tech, CS, IT... are added to dd2.
Now problem is:-
if i select IT, ME from dd2......
the value should be printed IT or ME.
But i m getting CS in all occation.
Plzzzzzzzzz help me.
Deepak Nigam
|
|
|
|
|
deepaknigam11 wrote: Page_load(..)
{
dd1.items.add("MCA");
dd1.items.add(("B Tech");
}
Page_load(..)
{
if(!ispostback)
{
dd1.Items.Add(new ListItem("MCA","0"));
dd1.Items.Add(new ListItem("B Tech","1"));
}
}
deepaknigam11 wrote: f(dd1.SelecteValue=="MCA")
if(dd1.SelectedValue=="0")
best regArd
pAthAn
|
|
|
|
|
I have two dropdownlist.one for country and second is for state.when I select country its state will be bind in second dropdownlist.but i am getting following error here.I do not want to set enableEventValidation=false in page directory.
can any one tell me why this error occurred?
<br />
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
|
|
|
|
|
hi to all
i have a requirement like this
i have 2 datalist in a page, in 1datalist i have some of images and in another datalist i have 10 images it will display from database. when i drag from 1datalist and drop to 2nd datalist its has to change the image as well as store in the database. how to do this please provide any example.
Its very urgent please
thank you
|
|
|
|
|
P.P.K.Reddy wrote: Its very urgent please
Look around you. Everyone has an urgent question.
You're going to do this with javascript, and if you want to do a save, you'll have to use AJAX, I reckon. There are controls you can buy that do this, I'd say they are worth the money.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
P.P.K.Reddy wrote: Its very urgent please
How rude.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
Any one please give some solution.
I am using a web service which return me the premium value in string format as 2345,564(German Currency Format). Now I have to divide it by 12/6/4 to calculate the premium on yearly/half yearly/monthly basis.
After dividing the resutant shoul be converted into the relevent currncey format i.e German or English.
2345,564 is 2345,564 in English culture.
Vijay
|
|
|
|
|
tovijay.shukla wrote: 2345,564 is 2345,564 in English culture.
both are same ? What is the difference ?
|
|
|
|
|
sorry is was
2345,564 is 2345.564 in English culture.
Anyways thank you, I've got the solution.
|
|
|
|