|
Hi.. Good Day. i have a difficulties in select one record at a time in the datagrid which have a column with radio button for user to select.
My problem is, i have a .aspx page with datagrid,my requirement is only select one record at a time but now i select several record at a time.Anyone have an idea help me to solve the problem or have any sample for me to refer? Thanks..
Best Regards,
Pei Sun
|
|
|
|
|
You need to group the radio button(which are there in datagrid). Then only one radio button will be selected at a time.
Best Regards,
Apurva Kaushal
|
|
|
|
|
How to group the radio button in datagrid? Can you give me some code
example?
Best Regards,
Pei Sun
|
|
|
|
|
This article will be helpful for you.
http://www.codeproject.com/aspnet/How_group_RButtons.asp
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks.. This is useful...
Best Regards,
Pei Sun
|
|
|
|
|
how to get the value of datagrid's template column value in run time?
If i use dg.Items(i).Cells(2).Text , it is not returning the value.
pls help!
|
|
|
|
|
you can access the teamplate column value like
dg.Items(i).Cells(2).Controls(1)
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello all,
i have an Activex control which is a player plays .cam files.I embed its dll in webpage using <object>.
I have play button in each row of datagrid.so if 1 st play button in the grid is clicked,the activex control dll downloads and starts playing files.
Everthing is working well.
but if i click another play button while the first one player is playing,
the first player is crashing.
To over come this problem,i need to close the first player,when second player's play button is clicked.
1.how to close the first player,when 2 second player play button is clicked.
any solutions..
plz help me and give me suggestions..
Thanks in advance,
sunita
|
|
|
|
|
IMO, you can implement it in the way as below when the play button is clicked: Basically, you only need one player to play the selected media file, once the play button is clicked, you can use javascript to stop the player, assign the new media file to the url property, then call the play method.
|
|
|
|
|
read CSV file i.e i want to convert this CSV file to String.
|
|
|
|
|
Probably this will be helpful for you.
http://www.devarticles.com/c/a/ASP.NET/Reading-a-Delimited-File-Using-ASP.Net-and-VB.Net/
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi all,
I was trying to use the RegWrite and the RegRead method in my aspx page and would like to set the values of the user config files (about: config) of the mozilla browser. Please do tell me the path of the userconfig files of mozilla browser in the windows Registry.
I was able to locate the header of the InternetExplorer page in the following path of the registry HKCU\Software\Microsoft\InternetExplorer\PageSetup\header and could succesfully assign needed values to it.
Now I wanted to know the path of the user config file of mozilla in the Registry..... Is there any such path??? I checked HKCU\Software\Mozilla\... in registry, but I couldn't find anything there.
Please do help me....
thanks
Abab
|
|
|
|
|
Hi.. Good Day..
I have a question about how to get the existing data from database and display it in textbox or label of .aspx page.Thanks.
Best Regards,
Pei Sun
|
|
|
|
|
You first have to establish the connection with the database and then after fetching the data you can put it in dataset or datareader and then assign it to the textbox or the label.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Ok..Thanks.. I will try this but can you give me some sample code, so that i can refer how to do the coding?
Best Regards,
Pei Sun
|
|
|
|
|
probably this will be helpful for you. Here complete data access in asp.net is described in detail.
http://authors.aspalliance.com/aspxtreme/adonet/index.aspx
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks. I think this page will be very useful for me..
Best Regards,
Pei Sun
|
|
|
|
|
Best Regards,
Apurva Kaushal
|
|
|
|
|
I am posting this question third time and i will continue posting this question until i get the answer.
Sir,
I have a datagrid and problem lies into the edititemtemplate of datagrid.
I have a datagrid in the following format
--------------------------------------------------
Column1 Column2 Column2
abc1 EditImage Delete Image
abc2 EditImage Delete Image
abc3 EditImage Delete Image
-------------------------------------------------
Now when i click at the particular editimage then the control goes to the the edititemtemplate where i am using a function to construct a table in that particular row of the datagrid in which i clicked at the editimage .In the edititemtemplate i am calling a function in the following format.
------------------------------------------------
<%#LoadTable(Container.DataItem(0).ToString())%>
--------------------------------------------------
Now the table is not comming into that row but a message is being displayed in that row and the message is
System.Web.Ui.HtmlControls.HtmlTable
But i want the structure of the table instead of this message .
------------------------=---------------
I am using the following code in the LoadTable
function
----------------------------------------
Public function LoadTable(Byval str as string)as Sysytem.Web.Ui.HtmlControls.Table
dim con as new oledbconnection("connectionstring")
con.open
cmd=new oledbcommand("select * from abc where id=" & str , con)
cmd.executereader
dim dr as oledbdatareader
dr=cmd.executereader
dim t as new system.web.ui.htmlcontrol.table
dim drow as System.Web.UI.HtmlControls.HtmlTableRow
dim dcell(1) as New System.Web.UI.HtmlControls.HtmlTableCell
--------------------------------------------------------
while(dr.read)
drow = New System.Web.UI.HtmlControls.HtmlTableRow
dcell(0) = New System.Web.UI.HtmlControls.HtmlTableCell
dcell(0).Width = "30%"
dcell(1) = New System.Web.UI.HtmlControls.HtmlTableCell
dcell(1).Width = "70%"
dcell(0).InnerText = dr.Item(0)
dcell(1).InnerText = dr.Item(1)
drow.Cells.Add(dcell(0))
drow.Cells.Add(dcell(1))
t.Rows.Add(drow)
end while
----------------------------------------------------------
End Sub
please help me to construct the table in the datagrid row at edititem template of datagrid
|
|
|
|
|
amaneet wrote: I am posting this question third time and i will continue posting this question until i get the answer.
Hmmm, you are patient enough or lazy enough as you can spend your time on findind a solution instead of keeping posting this simple question.
Well, you are calling the LoadTable method in the data binding expression and the method returns an object of the HtmlTable type, so the type name of the method result object (System.Web.Ui.HtmlControls.HtmlTable) should be displayed in the web page. Here, you may have a couple of simple solutions:
+ In the LoadTable, you can render the HtmlTable object and send the output html markup as the method result.
+ In the ItemDataBound event handler of the datagrid control, you can call the LoadTable method and attach the table to the specified cell of the row.
+ Intead of building a dynamic table, you can use another datagrid in the EditItemTemplate.
|
|
|
|
|
Sir,
Can u send some code for that .Thanks for ur attention.
|
|
|
|
|
Can any one help me How to get Error message using Error No When Sql Exception is raised
|
|
|
|
|
If you want to get the error no. in sqlserver then @@Error will give you the error no.
Best Regards,
Apurva Kaushal
|
|
|
|
|
My question is when we get sql exception in Asp.net
we can obtain error number using Number property of SqlException
How to get error message at runtime using this error number
|
|
|
|
|
I'd like to output some information from a database to a datagrid on a webpage using visual basic. The program I'm using is asp.net web matrix. How do I link them? Thanx in advance.
-- modified at 0:30 Wednesday 19th July, 2006
|
|
|
|