|
hi badgrs,
thanx my dear, I already hide controls instead of disabling them, but I thought there may be a better solution that I don't know
I don't want to check user's javascript code, I need to block scripting
I need to prevent users from run any javascript code on my page
Is this possible
because hiding controls sometimes make the page looks bad
thanx again
|
|
|
|
|
Ahmad Safwat wrote: I need to prevent users from run any javascript code on my page
Is this possible
No.
|
|
|
|
|
|
Ahmad Safwat wrote: thanx my dear
Hmm, thats usually a phrase my ganny says to me...
Let me elaborate a bit, no isn't a very explanatory answer:
Ultimately you have no control what-so-ever over the browser. You can (and should) do everything possible to make things easier for the user, but you should never try to stop them doing anything. If they want to screw things up thats their problem, let them do it, just make sure you have sufficient validation in place server-side.
|
|
|
|
|
Hmmmm, thanx my dear
This is really a good advice
thank u
|
|
|
|
|
HI i m using a simple web part application
But when i run that application it show me sqlserver 2005 error
the error is :
An error occurred during the execution of the SQL file 'InstallMembership.sql'. The SQL error number is -2 and the SqlException message is: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding
I am not doing any database maniputation in my page still it show this error.
Any idea please tell me
Thanks in Advance
|
|
|
|
|
|
Prakash_Mishra wrote: Prakash Mishra(Banglore,India)
Prakash Mishra(Banglore,India)
One is Enough.
Regards,
Satips.
|
|
|
|
|
Hello
What is the use of repeating the same question rather than explaining it in a simple way ? I think including me no one understood what is your problem exactly. So please make it clear to get help.
|
|
|
|
|
i am doing an web page application in which i want to populate all the row data
values of the colum or row clicked by user...
As there is no mouseover or mouse click event for GridView in ASP .net wat can i do ....
Please Help......
Thanks
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
1. You can use DataGrid's ItemDataBound event for this.
At any point you can have the exact cell value by --> e.Item.Cells[x].Text
--------------------------------------------------------------
2. You can also have mouseover or mouse-click events for a DataGrid Row.
if (e.Item.ItemType == ListItemType.Item ||e.Item.ItemType == ListItemType.AlternatingItem)
{
if (e.Item.ItemType == ListItemType.Item)
{
e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();");
e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();");
}
if (e.Item.ItemType == ListItemType.AlternatingItem)
{
e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();");
e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();");
}
}
|
|
|
|
|
i want to know how it can be done in gridview control
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
hello,
i am trying to find out "how to add a simple textbox to a form at runtime and then send its textvalue(whatever written in it) to a datatable made in my dadabase"
is anybody can help me!
thanx in advance!
nitin
|
|
|
|
|
Add a placeholder control where you want to add the textbox
then at run time create the new object of your textbox give it id and then
add that textbox to the placeholder .
now the control is in page you can use that value
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Nitin, sandip is right...
However, you can also use "Panels" for the same
protected System.Web.UI.WebControls.Panel Panel1;
... ...
.... ....
TextBox txt =new TextBox();
txt.ID = "textBox1";
Panel1.Controls.Add(txt);
... ...
.... ....
//At any point of time you can read value from this text box
TextBox tempText = new TextBox()
tempText = (TextBox)Panel1.FindControl("textBox1")
string strValue = tempText.Text()
Sreekumar P P
|
|
|
|
|
thanx sir ji,
your view is very helpful 4 me but there is a prblm now...
i put 2 btn on form
btn1.text= add button
btn2.text= insert
when i click btn1 , a textbox appeared on forn but when i click btn2 the textbox disappear and nothing inserted in my database.
nitin
|
|
|
|
|
Any one knows what is Web 1.0 and Web 2.0 ?
|
|
|
|
|
Web 1.0 was about reading, Web 2.0 is about writing
Web 1.0 was about companies, Web 2.0 is about communities
Web 1.0 was about client-server, Web 2.0 is about peer to peer
Web 1.0 was about HTML, Web 2.0 is about XML
Web 1.0 was about home pages, Web 2.0 is about blogs
Web 1.0 was about portals, Web 2.0 is about RSS
Web 1.0 was about taxonomy, Web 2.0 is about tags
Web 1.0 was about wires, Web 2.0 is about wireless
Web 1.0 was about owning, Web 2.0 is about sharing
Web 1.0 was about IPOs, Web 2.0 is about trade sales
Web 1.0 was about Netscape, Web 2.0 is about Google
Web 1.0 was about web forms, Web 2.0 is about web applications
Web 1.0 was about screen scraping, Web 2.0 is about APIs
Web 1.0 was about dialup, Web 2.0 is about broadband
Web 1.0 was about hardware costs, Web 2.0 is about bandwidth costs
Regards,
Satips.
|
|
|
|
|
Hi Sathish Did you get it from any souce you have type it
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
That's great satips. Any URL's for more info
|
|
|
|
|
|
Navaneeth. wrote: That's great satips
His name is Sathish
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Sandeep Akhare wrote: Sathish
great
|
|
|
|
|
hi all
Can any one tell me how to retrive the tables in the asp forms. I want to create a button after clicking the tables value( from the database, sql server) should be displayed into the form. do i have to data grid, data set. Pl help
Regards
Prakash Mishra(Banglore,India)
|
|
|
|