|
You have to use javascript, because asp.net can operate only on server side. Once server sends a generated page to a client, then it have no control over page behavior. Javascript function can cause postback after each few seconds or simply display another question.
Pilo
|
|
|
|
|
Hi,
I have made one State Machine workflow, which has got multiple stages, and sub stages which are linked with each other. Now each stage has event driven activity which handles external events. This is working fine when from my UI I invoke each event on different button click. Also I am persisting the state of the workflow in SQL database.
Now my requirement is on one button click, I want to invoke multiple events from multiple stages one by one and in the order I have defined in the workflow. After invoking the first event, when I am trying to invoke the second one, which is in next state, an error is generated.
'Event ConductInitialInterviews on interface type RecruitmentTracker.InterviewProcessService.IInterviewProcessService for instance id 050b6e1d-e0ad-4a29-92a2-76cf54862aeb" cannot be delivered.'
Does any one has any idea?
Thanks in advance !!
Chintan
|
|
|
|
|
Hi everyone,
I have a web form that has the following fields:
name, address, postal code, country, email, contact number.
My Access database is called vcalendar.mdb. I have a table called users that has the following text fields:
name, address, pcode, country, email, contact.
I need to know how to take the information from the web page and insert it into the database. Believe it or not, I can't seem to find any examples. I've seen a lot that say something like Value, Name, etc. but I haven't found any that show multiple values into an Access database using VisualBasic.
I hope someone can help me out with the backend codes.. thanks in advance.
frossie
|
|
|
|
|
frossie wrote: Believe it or not, I can't seem to find any examples
You haven't look hard enough.
For example, try
www.asp.net[^]Look for Tutorials
or perhaps
http://www.syncfusion.com[^] and look for ASP.net FAQ's
or even search Code Project's Tutorials, there are many resources open to you, just look for them.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Sorry there,
but i'm not able to create a webform that allows insertion into database still.
i have tried various methods including using a datagrid, gridview, formview, dataview in asp.net. But im pretty confused at using an accessdata source and what not to write in the file.aspx.vb page?
frossie
|
|
|
|
|
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.
|
|
|
|