|
Hi all..
I am having controls such as dropdown,button,textbox in my aspx page .I need to enable and disable them using javascript..Some one help with code in javascript..
Thanks & regards,
Balaguru
|
|
|
|
|
Bala,
Please post this to Javascript forums, to get better answers.
<form name="myForm"><br />
<input type="button" name="myButton" onClick="if (!this.disabled) someFunction()"><br />
<input type="submit" name="mySubmit" onClick="return (!this.disabled)"><br />
</form><br />
<br />
<script language="JavaScript"><!--<br />
document.myForm.myButton.disabled=true;<br />
document.myForm.mySubmit.disabled=true;<br />
|
|
|
|
|
hi,
Can anybody Pls. help me regarding FLvplayer, compatible with c#.net.
I'm working on a website that need to play user uloaded video files. I want to do this task using flvplayer. so can anybody provide me the link for the open source of flvplayer.
Or anything regarding the same.
It will be a great help for me.
Thanks,
Harryforums.
|
|
|
|
|
Hi,
I have a dropdown which shows products name(DataText) and product code(Datavalue).
Now i wanted to select first value and its value in textbox on page load?
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
| Muhammad Waqas Butt | wrote: Now i wanted to select first value and its value in textbox on page load?
Do you want to select the value in dropdownlist that is entered in textbox ?
|
|
|
|
|
Hi, first of all, sorry for confusion. I have find the solution. Thx.
Now can you tell me how i hide/show Submit(asp control not html control) button through javascript. I have tried this code but it gave me a error:
document.Form1.btnsubmit.style.visibility = 'hidden';
Error: document.Form1.btnsubmit.style. is null or not a object.
But i have tried the same code of textbox(asp control) it working.
Any help?
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
| Muhammad Waqas Butt | wrote: document.Form1.btnsubmit.style.visibility = 'hidden';
Try
document.getElementById("btnsubmit").style.visibility = "hidden";
|
|
|
|
|
you can do it like:
//hide
document.getElementById("TextBox1").style.display = "none";
//show
document.getElementById("TextBox1").style.display = "block";
/**--------------------**/
I am learning english.I am still having a few problem, but I getting better. I am very glad if you point my mistake in english.
TIA.
|
|
|
|
|
I need to export html tables into xls format in multisheets.
There are four html table on web page. All convert into one .xls file but in different sheets.
Mustakim Mansuri
|
|
|
|
|
Hai all,
Here i am getting a problem with the session variables i am using in my application.
I have one initialization form in which i am initializing 5 different values and storing in 5 different session variables.
In global.aspx page i am initializing the session state by assigning blank values in it,same in session_end.
Here my problem is,
if initialize the application,and keep it idle for some time like around 1Hour,it is giving ,u need to initialize againg.
The session getting expired.I have set the timeout in web.config for 1hr,but still it is expiring before 1hr.
Wat shd i do to rectify this problem.
Plz any one can give me some idea.
Thanks in advance
kissy
|
|
|
|
|
So your web.config looks like this:
<configuration>
<system.web>
<sessionState
mode="InProc"
timeout="60" />
</system.web>
</configuration>
??
What are you setting the session values to blank? I would think in the session_end event you would set them to null so the memory would be freed. There is no reason to initialize them to blank. In your code check to see if the session varable is null or Nothing if you are using VB.net
Ben
|
|
|
|
|
no i m using an analysing services which is dropping my all sesion variables,i m writing nothing in global application class.
|
|
|
|
|
Hi!
i want ....... when i press enter on a textbox cursor move to next textbox help me with code...
|
|
|
|
|
fmlove wrote: when i press enter on a textbox cursor move to next textbox
Ascii value for enter key is 13. You need to write OnKeyDown javascript event for your textbox and call function. Check event.KeyCode is 13, if yes use controlname.focus() to set focus to other textbox.
|
|
|
|
|
How can we write an excel file by using asp.net
it have 7 columns.. Help me please
Sarith...
|
|
|
|
|
use StreamWriter and just save your file a excel file
dim dtData as new DataTable
dtData.Columns.Add("Column1")
dtData.Columns.Add("Column2")
dtData.Columns.Add("Column3")
dtData.Columns.Add("Column4")
dtData.Columns.Add("Column5")
dtData.Columns.Add("Column6")
dtData.Columns.Add("Column7")
Dim fInfo As FileInfo
fInfo = New FileInfo("C:\test.xls")
Dim sw as System.IO.StreamWriter("C:\test.xls")
Dim sepator as string = "\t"
Dim intColumnCount as integer = dtData.Columns.Count
for i as integer = 0 to intColumnCount -1
sw.write(dtData.Columns(i).ColumnName)
if i < intCount-1 then
sw.write(sepator)
end if
next
sw.Close()
i hope this helps
Motivation alone is not enough, if you have an idiot and you motivate him/her, you now have a motivated idiot
|
|
|
|
|
Hi all
I am Trying To edit a datagrid
I am using this code
http://msconline.maconstate.edu/Tutorials/ASPNET1/default.htm[^]
But iam getting this Error
"Object reference not set to an instance of an object"
"ItemNumber = CType(Args.Item.FindControl("ItemNumber"), TextBox).Text
"
Can any one tell what wrong on my code
THAN Q
|
|
|
|
|
Your core problem is that you're using code blindly without understanding what it does. What this does, is it looks for a control, and it assumes it will find it. As such, this is bad code.
The 'ItemNumber' control is not found, so Nothing is returned. Which is what the error means.
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 )
|
|
|
|
|
Thx for reply
"The 'ItemNumber' control is not found, so Nothing is returned. Which is what the error means."
Dim ItemNumber As String
The 'ItemNumber' control declared in the code as a String
How can find the control
Thx
Keerthi
|
|
|
|
|
you can use DataGridItemEventArgs object to find out the textbox.
for example in C#:
Private void DataGrid1_EditCommand(object sender,DataGridItemEventArgs e)
{
TextBox txt=(TextBox)e.item.FindControl("ItemNumber");
txt.SelectedValue=" ";
}
VanithaVasu
|
|
|
|
|
How can i read an excel file usin asp.net. Is it possibble or not
Please help me ....
Sarith...
|
|
|
|
|
|
|
Hope it helped
I Love SQL
|
|
|
|
|
http://www.dotnetjohn.com/articles.aspx?articleid=54
Regards
John
|
|
|
|