|
i call this function in html :
...
<tr>
<td>
<asp:textbox id="txtid1" runat="server"></asp:textbox>
<a hrf="javascript:;" onclick="ShowDate('txtid1');">click</a>
</td>
</tr>
<tr>
<td>
<asp:textbox id="txtid2" runat="server"></asp:textbox>
<a hrf="javascript:;" onclick="ShowDate('txtid2');">click</a>
</td>
</tr>
...
|
|
|
|
|
chinese_pan wrote: click
Change "hrf" to "href". Return false from the event to prevent the link from being activated.
<a href="" onclick="ShowDate('txtid1');return false;">click</a>
Do you get any Javascript error message?
---
single minded; short sighted; long gone;
|
|
|
|
|
First of all, thanks for your help!
I had got the reason, it is because the MasterPage. It contained in MasterPage can't work, when I take out it from MasterPage it works well!
thanks again!
need study hard
|
|
|
|
|
Try Writing:
document.getElementById("txtid").value = "TEST";
Instead Of
document.getElementById(txtid).value = "TEST";
Develop2Program & Program2Develop
|
|
|
|
|
Hi Navneet,
He is passing 'txtid' in to the function.Then...
I think the problem is how he is calling the function.
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
You're trying to get this out on the server side? good luck
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
how to mention version number while deploying an application...plz any one help me...
Pradeep Reddy
|
|
|
|
|
|
thank u...
Pradeep Reddy
|
|
|
|
|
I m getting this error when i try to build the web site..
<br />
Could not load file or assembly 'foo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. <br />
I tried adding reference of PROJECT as well as by DLL. But no use
Plz help.
"If our Mind can, the Program can !!" ≡ ░Ŗổђầŋ٭ ≡
|
|
|
|
|
Hi,
you need to add this into GAC.
eg:- regsvr32 C:\yourDLLname.dll
Regards,
Sandeep Kumar.V
|
|
|
|
|
Thanks.
"If our Mind can, the Program can !!" ≡ ░Ŗổђầŋ٭ ≡
|
|
|
|
|
Hi,
How can i sort columns in a datatable? I've tried converting it to a dataview and sort, but it doen't get sorted.
Once the user has edited the grid, I have to sort 2 columns in the grid and get those values.
Regards,
Blumen
|
|
|
|
|
|
Thank you, I'll try that.
|
|
|
|
|
That function will sort only Row, not the entire Table.
|
|
|
|
|
hi,
you should be able to sort the data by using dataview. may be you missed out something...
the code below should work fine:
Dim dv As New DataView(yourDataTable)<br />
dv.Sort = "ColumnName1 desc, ColumnName2 asc"<br />
datagrid1.DataSource = dv<br />
datagrid1.DataBind()
regards
|
|
|
|
|
thank you, I'll try that.
Regards
|
|
|
|
|
Hi,
In the html page,
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" >
when dir="rtl" then the vertical scrollbar comes on the left sideof the form. I need to do this in the code behind page...how can i do it?
kindly do tell me
Thanks
|
|
|
|
|
Hi,
You can done this at code behind
Provide id=htmlid runat="server" to head tag
<br />
<html xmlns="http://www.w3.org/1999/xhtml" id="htmlid" runat=server><br />
From code behind use
<br />
htmlid.Attributes.Add("dir", "rtl")<br />
to set attribute.
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Can someone show me how to read out the contents of a (Belgian) e-Id Card by a web page ?
I would like to create a website where accounts can be created by entering a e-Id card and pressing 'New account'. The system would automatically fill in the web-form.
Thx in advance.
|
|
|
|
|
Hi,
I'm making online exam system using asp.net, now i'm in the exam page, i read questions, choices, allow multiple choise and right answer, i create controls in run time to carry all the data ( Lable for question, checkboxlist or radiobuttonlist for choices), i create arraylist to put questions right answer in it and another one to put student answers.
My problem here is how to store student answers from the selection change for checkboxlist or radiobuttonlist, and how to compare two arraylists to get finall result?
Please i want solution for my problems.
If anyone have better solution than what i do please tell me.
Thanks for help
|
|
|
|
|
You can use two Hashtable instead of arraylist. And it is good to use question number as key for both hashtables. Then you can easily find answer of each question by the question number.
Gg
|
|
|
|
|
Thanks for your reply but i still have problem in storing student answers if u have solution please tell me
|
|
|
|
|
You are creating controls dynamically. right? If so, you can do a postback using javascript. Use two hidden controls for storing qustion number and selected answer. Set these hidden variables before postbacking the page. Then you will get the values in the codebehind. add this to the selected answers hash table.
Then use simple loop to compare both hash tables
Gg
|
|
|
|