|
i used the Onclick event.. i tried to add it as Button1.Attributes.Add()
|
|
|
|
|
When you say it doesn't work, what actually happens?
|
|
|
|
|
When I use an ASP:Button control, the following happens:
1. Page Postsback
2. The DIV becomes invisible for a second and when the page completes postback, it again appears (visible).
Correct me if I'm wrong, asp:Button is a server side control, INPUT Button is a HTML client side control, right?
Is there another difference?
|
|
|
|
|
blumenhause wrote: Correct me if I'm wrong, asp:Button is a server side control, INPUT Button is a HTML client side control, right?
Yes, essentially. But also no - both can postback to the server, or perform on the client as you need.
The onClientClick event on the server button will run some client code and then postback to the server, UNLESS the client code returns a false value. e.g.
function myJSFunction()
{
//Do something
return false;
}
ASP button client click event:
"return myJSFunction();"
Will not postback.
The reason that your div keeps coming back, is that the page is reloaded every postback.
|
|
|
|
|
|
i have developed a web application and use the word object in program.
my machine have MS-word installed on it.
but server don't have word installed.
if the program is run from my local site then it doesn't show any error.
if i make a virtual directory and put it in server and run from there then it show the error of COM.
do my server have word installed ???
where i am wrong???
please help me.
thankx in regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: i have developed a web application and use the word object in program.
my machine have MS-word installed on it.
but server don't have word installed.
if the program is run from my local site then it doesn't show any error.
if i make a virtual directory and put it in server and run from there then it show the error of COM.
Obviously, you'll need to install MS Word on your server.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi all,
I designed and developed one website in VS2005 and its working fine in IE but when i checked the same thing in Mozilla the alignment was totally gone!! and i used the css for desiging. can any body help me out solve this problem!!
thanks in advance!
|
|
|
|
|
Are u using px unit for the length or somthing else
IF yes
Then Use % (percentage) unit rather than px
And make your css more compitable with cross browser
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
HI
This is going to be a same problem for all f us.
But We can make sure while designing the page,ot to us table anywhere in page.
Just Use DIV tags wherever u need a table.
Some attributes are never going to be supported in Mozzilla which are supported by IE Like Valign="Basline"
And yes use only Percentage where u want to give hight & width.
Use CSS instead inline attributes...
Believe Yourself™ :->™
|
|
|
|
|
I am using vb with asp.net.In my form i used two text boxes and a button.When i press a button the values in the text boxes saved in database.When i press print button i want to print all values in the data base.For this which control i want to use.Is crystal report is possible for this.
|
|
|
|
|
Deepthy.P.M wrote: Is crystal report is possible for this.
Yes, Crystal Report is the best option that you can use.
you can try with this
javascript:window.print()
you can check this also
Print in ASP.NET[^]
|
|
|
|
|
hi all i have problem with folder
I have folder name "A" contain 10 file and 3 folder other and in there folder contain any file
How can i move folder "A" to orther folder
|
|
|
|
|
In ASP.NET, you're not going to do any moving of files and folders at all, unless you need to do this on the server for some reason ?
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 )
|
|
|
|
|
<br />
public void MoveDir(string SourcPath, string DestPath)<br />
{<br />
DirectoryInfo dirInfo = new DirectoryInfo(SourcPath);<br />
string destiFile;<br />
if (!Directory.Exists(DestPath))<br />
Directory.CreateDirectory(DestPath);<br />
foreach(FileSystemInfo finfo in dirInfo.GetFileSystemInfos())<br />
{<br />
destiFile=Path.Combine(DestPath,finfo.Name);<br />
if ((FileSystemInfo)finfo is FileInfo)<br />
File.Move(finfo.FullName, destiFile);<br />
else<br />
MoveDir(finfo.FullName, destiFile);<br />
<br />
}<br />
<br />
<br />
<br />
}<br />
U can use this way, you need little bit of modification of code to remove the folder, else it working fine !!!!!
|
|
|
|
|
|
Hi using triggers i try to insert some values in to my 2 tables:
But its showing teh error as "The request for procedure 'Triginsert123s' failed because 'Triginsert123s' is a trigger object."
This is my code in back end:
sqlcon.Open()
Dim cmd As New SqlCommand("Triginsert123s '" & txtID.Text & "','" & txtName.Text & "','" & txtRole.Text & "','" & txtDep.Text & "'", sqlcon)
cmd.ExecuteNonQuery()
sqlcon.Close()
My trigger is:
CREATE TRIGGER Triginsert123s ON [dbo].[EmpRole]
FOR INSERT
AS
declare
@Eid as tinyint,
@Ename as varchar(50),
@Role as char(10)
Insert into Emprole(Eid,Ename,Role) values(@Eid,@Ename,@Role)
insert into empdep(eid,dep) values(@eid,@Role)
Whats the probs?,
Plz i am new to triggers help me,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
Your problem appears to be that you don't understand triggers. The idea is that you never call a trigger, it gets called all by itself when you perform an action such as an insert. Doing two inserts like this doesn't seem like a logical thing for a trigger to do, unless it's generating an audit trail or something.
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 )
|
|
|
|
|
Your problem appears to be that you don't understand triggers. The idea is that you never call a trigger, it gets called all by itself when you perform an action such as an insert. Doing two inserts like this doesn't seem like a logical thing for a trigger to do, unless it's generating an audit trail or something.
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 )
|
|
|
|
|
I think, you need Stored Procedure not Trigger.
|
|
|
|
|
compare validator doesnt works for date type
i have to compare two dates
plz help me to use that
|
|
|
|
|
You may have to write a custom validator in javascript then.
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,
you can check this ..
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
hi,
anybody know about the javascript for dynamic table.ie it accept text,image at runtime also we can span & split the cells...simply it look like a table in VS.net 2005 table(Layout->insert table).
|
|
|
|
|
how i can show the values that are invisible in the grid view column. when i go to that particular column of the gridview the view of the hidden column should be known
|
|
|
|