Click here to Skip to main content
16,006,475 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to Create shortcut in Websetup Pin
Parvai24-Jun-06 1:21
Parvai24-Jun-06 1:21 
AnswerRe: How to Create shortcut in Websetup Pin
minhpc_bk24-Jun-06 13:16
minhpc_bk24-Jun-06 13:16 
AnswerRe: How to Create shortcut in Websetup Pin
cloudking1196629-Jun-06 1:35
cloudking1196629-Jun-06 1:35 
QuestionThis is a marker file generated by the precompilation tool, and should not be deleted! Pin
god4k24-Jun-06 1:01
god4k24-Jun-06 1:01 
AnswerRe: This is a marker file generated by the precompilation tool, and should not be deleted! Pin
Guffa24-Jun-06 1:22
Guffa24-Jun-06 1:22 
Questioninsert and update in formview along deopdownlist (argent) Pin
rajeev kumar sharma24-Jun-06 1:00
rajeev kumar sharma24-Jun-06 1:00 
AnswerRe: insert and update in formview along deopdownlist (argent) Pin
minhpc_bk24-Jun-06 13:08
minhpc_bk24-Jun-06 13:08 
Questionplz help me????? [modified] Pin
nabeelkhan23-Jun-06 20:48
nabeelkhan23-Jun-06 20:48 
hi;
i hv problem i hv datagrid in datagrid there is a dropdownlist this list is
dynamically populated thorogh database..i wnt to validat the item in the datagrid throgh javascript function..i pick the dynamic generated IDs of dropdwonlist..how can i call the javascript function from my code
or see below either i m correctly calling the javascript function

Public Function test(ByVal send As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs)
If (e.Item.ItemType = ListItemType.Item) Or (e.Item.ItemType = ListItemType.AlternatingItem) Then
Dim dl As DropDownList = e.Item.FindControl("DropDownList1")
Dim str As String = "valfunc(" + dl.ClientID.ToString + ")"
dl.Attributes.Add("onChange", str)
End If
End Function }


And here is the code which will be there in html section:

"asp:DataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 248px; POSITION: absolute; TOP: 144px"
runat="server" Width="464px" Height="80px" "OnItemDataBound="test"
" Columns>
" asp:TemplateColumn>
" ItemTemplate>
" asp:DropDownList ID="ddl" Runat="server">
" asp:ListItem>oooo
" asp:ListItem>aaa
" asp:ListItem>bbb
" /asp:DropDownList>
" /ItemTemplate>
" /asp:TemplateColumn>
" /Columns>
" /asp:DataGrid>
And this is the javascript function for validation:

"script language=javascript>
function ValFunc(ss)
{
alert(ss.value);
return false;
}
" /script>


the error is the OnItemDataBound="test" the function test is in my vb.net code..this function is nt call..or tell me either i m correct to whn i m calling Javascritp function form my vb.net code here is the code snippoet Dim str As String = "valfunc(" + dl.ClientID.ToString + ")"
the valfunc is the javascript funciton
waiting for reply



-- modified at 2:51 Saturday 24th June, 2006
GeneralRe: plz help me????? Pin
_AK_25-Jun-06 19:09
_AK_25-Jun-06 19:09 
QuestionHow To Manage Record Pin
sachinthamke23-Jun-06 20:31
sachinthamke23-Jun-06 20:31 
Questionproblem Pin
amaneet23-Jun-06 19:34
amaneet23-Jun-06 19:34 
AnswerRe: problem Pin
Tirthadip23-Jun-06 22:34
Tirthadip23-Jun-06 22:34 
AnswerRe: problem Pin
Nagraj Naik23-Jun-06 22:47
Nagraj Naik23-Jun-06 22:47 
QuestionHey guys , how to handle a textchanged event Pin
Mohammed Amine23-Jun-06 13:12
Mohammed Amine23-Jun-06 13:12 
AnswerRe: Hey guys , how to handle a textchanged event Pin
Nagraj Naik23-Jun-06 19:29
Nagraj Naik23-Jun-06 19:29 
QuestionHow to Get the Id of a Dynamically Generated Table in CS file. [modified] Pin
antontj23-Jun-06 9:39
antontj23-Jun-06 9:39 
Questionpassing variable through multiple pages Pin
leckey23-Jun-06 8:34
leckey23-Jun-06 8:34 
AnswerRe: passing variable through multiple pages Pin
Not Active23-Jun-06 9:27
mentorNot Active23-Jun-06 9:27 
GeneralRe: passing variable through multiple pages Pin
leckey23-Jun-06 9:32
leckey23-Jun-06 9:32 
QuestionThe ongoing blank datagrid saga Pin
leckey23-Jun-06 4:59
leckey23-Jun-06 4:59 
QuestionHow to create events for dynamically generated datagrid Pin
BalasahebK23-Jun-06 4:37
BalasahebK23-Jun-06 4:37 
AnswerRe: How to create events for dynamically generated datagrid Pin
l0kke23-Jun-06 5:17
l0kke23-Jun-06 5:17 
GeneralRe: How to create events for dynamically generated datagrid [modified] Pin
BalasahebK23-Jun-06 6:34
BalasahebK23-Jun-06 6:34 
GeneralRe: How to create events for dynamically generated datagrid [modified] Pin
l0kke25-Jun-06 2:42
l0kke25-Jun-06 2:42 
Questionhello guffa Pin
ballameharmurali23-Jun-06 4:01
ballameharmurali23-Jun-06 4:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.