|
sathimailin1 wrote: I have a doubt
You mean that you have a question?
Why do people from India always say "doubt" when they mean "question"? Is it the same word in Hindi?
sathimailin1 wrote: i tried by placing my label inside the loop but i am getting the contents after the whole text file is read.
That's because your changes just ends up on the message queue, they are not handled until the main loop resumes, i.e. after your method finishes.
Use the DoEvent method to handle the message queue while you are in a loop.
Alternatively, run the method in a separate thread, and use Invoke to change the label from the UI thread.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: Why do people from India always say "doubt" when they mean "question"? Is it the same word in Hindi?
I've always wondered that.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
in ASP.net/VB.NET how to use Do events ,
|
|
|
|
|
Application.DoEvents()
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks for your Reply i will try with this and reply you
|
|
|
|
|
Sub FileRead()
Dim fileread As String
fileread = Server.MapPath("Task17072008.txt")
Dim filestream As StreamReader
filestream = File.OpenText(fileread)
Dim readcontents As String
readcontents = filestream.ReadToEnd
Dim textdelimiter As String
textdelimiter = ","
Dim splitout = Split(readcontents, textdelimiter)
Label1.Text = readcontents & "<br>"
Dim i As Integer
For i = 0 To UBound(splitout)
Label2.Text &= splitout(i) + "<br>"
Application.DoEvents()
Next
filestream.Close()
End Sub
</br></br>
showing doevents is not a member of system.web.HTTPApplicationState.
|
|
|
|
|
sathimailin1 wrote: showing doevents is not a member of system.web.HTTPApplicationState.
Oh, so it's a web application after all?
I assumed that it wasn't, as what you are asking about so obviously doesn't work in a web application.
The Label object that you are trying to change doesn't correspond to anything that is visible anywhere, not even in a browser somewhere else in the world. The Label object is just part of the control tree of the page that is being created, it's not until your code finishes, the page is rendered into an html document, the document is sent to the browser, the browser parses the document, and displays it as a page, that the result of code that the Label object rendered is visible anywhere.
To display anything in the browser while the page is being created, you would have to write part of the page to the response stream and flush it, then write Javascript code blocks to update an element in the page for each update. This means that you have to output all the html code for the page yourself, and can't have any markup code in the .aspx file at all.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
How to store multiple selected values of listbox into sql server 2000 .
I have a listbox in whcih i can select multiple items and to store into data base column .
Any Advise how i do that .
Regards
rameez
|
|
|
|
|
check SelectedIndex while storing data and read the value form listbox and save it to database
cheers,
Abhijit
|
|
|
|
|
You can create comma saperted string and pass it to proc and get stored into table. At the time of display selected value you need to split it with ',' and then select the item of combo.
Please be sure about the lenght of table field and stored procedure param.
- Imran
|
|
|
|
|
Thanks for ur response ,
can u write some lines of code for understanding please?
Regards
Rameez
|
|
|
|
|
I am using Visual Studio2005.
I had added the Textbox Attribute "onfocus",so as to clear the Textbox On Focus.
Now could you please help me how to get the default Text Written in the Textbox,as the Focus is removedd.
Pl provied me the required Syntax to add the Attribute,and also the Java Script if needed..I new to this Domain..
Thanx in advance....
modified on Saturday, July 26, 2008 8:47 AM
|
|
|
|
|
Hi,
I have developed a web-service.It has some dll's written in windows apps using c#.net. My webservice is working fine on my local system.(I gave webservice IP as "http://mysystemIP/../xxxxx.asmx".)using another windows apps I added web refrence and working fine in my local system
Now I want make my webservice work on another system and to access all the webmethods.
1.If the systems are in LAN,how to do that work?
2.If systems are in WAN,how to do tthat work?
kindly guide me...
|
|
|
|
|
there is no particular difference between your system web service installation and LAN
only setup your web service on any server on LAN and set network configuration such as firewall and etc. then you can access via your web service http address.
and if you want run it on www you must have domain and host like other websites and then run it on your domain. after doing that you can access it with your domain address.
Human knowlege belongs to the world
|
|
|
|
|
webplanner,is it a .net control ?.if yes,how to install in my local system ?
|
|
|
|
|
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello...
i have Developed a project in Asp.net2.0 using Oracle 9i. i want to run this Project on Intranet.I have oracle server and application server.and i have created database in my Database server. and when i install .net in my application server and run publish file then it works fine but without .net publish file dosen't run...
Please help me...How to run application on Intranet..
Give some Idea abt how to run application on Intranet....
Thanks
|
|
|
|
|
if you want to access your web application you should have to deploy it a IIS web server. and the server in which you have deployed, it should be in intranet. that's all. then you can access it. by refering the IP only.
if you haae any doubt you can ask me.
Good luck !!
cheers,
Abhijit
|
|
|
|
|
raushan_9 wrote: when i install .net in my application server and run publish file then it works fine but without .net publish file dosen't run...
The server needs to have .NET installed to run a .NET application.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Dear all,
We have a VB.Net 2003 winforms application.
I have created a datagrid "datagrid1" with 3 columns in it(FirstName, LastName, CheckboxColumn). One of the columns is a checkbox column.
Lets say the user selected 5 checkbox rows(out of 20 rows), I would like to retrieve the FirstName & LastName values for these selected 5 rows from the Datagrid & display it in a listbox. Please advise how can it be done.
Your help is much appreciated.
kissy
|
|
|
|
|
Kissy16 wrote: We have a VB.Net 2003 winforms application.
This is ASP.Net Forum . Please put it in VB.NET section.
Thanks
cheers,
Abhijit
|
|
|
|
|
sorry asp.net using vb in vs2003
kissy
|
|
|
|
|
if you want to retrive name on some button click, use FindControl method of grid view, and find the Checkbox then check which is selected or not.
Hope this will help you.
cheers,
Abhijit
|
|
|
|
|
I am placin a bit of code here-- an give me some idea to fulfill my requirement
Dim rowCount As Integer = 0
Dim strname As String
Dim i As Integer
i = 0
Dim DemoGridItem As DataGridItem
For Each DemoGridItem In DG1.Items
Dim myCheckbox As CheckBox = CType(DemoGridItem.Cells(0).Controls(1), CheckBox)
If myCheckbox.Checked Then
rowCount += 1
end if
next
In the above code how can i store the selected checkbox perticular column in the selected rows?
I want to update that array of columns in the database at a time later.
Can i do this?
kissy
|
|
|
|
|
Kissy16 wrote: In the above code how can i store the selected checkbox perticular column in the selected rows?
Use DataGridRow class that can store particular row
cheers,
Abhijit
|
|
|
|