|
I am writing an AJAX based chat system with private messaging feature. Multiple users can chat with each other in their own private windows. Window does not pop up as a browser window but i have written a user control for this. In this user control i have used DragPanelExtender and ResizableExtender of ASP.NET AJAX. System queries database after every couple of seconds and fetches messages for the current user. Now if someone has sent a message to the user a new chat window pops up dynamically. I am creating all chat windows in an update panel so that postback could be made seemless. Now the problem is that if a users is dragging his window or resizing it and page gets posted to the server it gives me a javascript error: 'window' is null or not an object. After this error all chat windows freeze on screen. Actually i need a mechanism through which i could create user controls without postback so that previous controls' state could be maintained.
If all this makes any sense to you could you propose any solution for this problem? Thanks in advance.
Thanks,
Ahmad
|
|
|
|
|
Why do you want to pass controls to a web service ? It's almost guarenteed that there's no reason for it, what you probably want to do is pass some information stored in the controls to the web service.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I want to display a table based on the selected item of the listbox. Say I have two tables "Ftable" and "Stable". If item in the listbox is "First" then Ftable should get displayed else Stable should be displayed.
I tried, If listbox.selecteditem="First" Then
Ftable.visible=true
else
Stable.visible=true
EndIf
But it is not working, How else can I do this?
Thank you in advance.
Chaitra N
|
|
|
|
|
Did you set "AutoPostBack" to true in the properties of ListBox?
What error are you getting?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I am not getting any errors. But it just not working. I tried the following code also. But of no use.
Protected Sub lstselectedtest_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles lstselectedtest.SelectedIndexChanged
Dim test As String
test = lstselectedtest.SelectedItem.ToString()
If test.StartsWith("Pulse Pressure") = True Then
Tbpulse.Visible = True
bindlist()
Else
TbOth.Visible = True
End If
End Sub
Chaitra N
|
|
|
|
|
As I wrote: Did you set "AutoPostBack" to true in the properties of ListBox?
You have to set this property to true to fire "SelectedIndexChanged " event. Set the breakpoint to this event and check whether this event is fired or not.. if it is not invoked, you need to set AutoPostBack property to true..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I set the AutoPostBack to "True". It is working now. Thank you.
Chaitra N
|
|
|
|
|
Hello all,
How i can write a connection for connecting to SQL Server via a button .i want connect to my sql via double click on my button in ASP via C#.net, that when i click on a button my information comes from my database.
thank you.
|
|
|
|
|
I assume you mean ASP.NET, they are different things.
You are asking about SQL Server, or My SQL ? In both cases the answer would be that
1 - web sites do not support double clicking
2 - the core of what you want to do is well and widely documented, have you tried google ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello,
thanks for your response,
but my purpose from double click was :i want connect to sql server when i click on the button in my site.i know how i connect to sql server for a page that my information be in my page from sql server, but i don't know how i obtain my information from sql server, when i click on my button .
i double clicked in my design page on my button but i don't know what i must write there my purpose is here :
protected void btn_Click(object sender, EventArgs e)
{
}
thank you
|
|
|
|
|
I am using LoginName control inside LoginStatus control. Plz tell me how can i redirect LoginName Value to another aspx page.
Regards Ahmad
|
|
|
|
|
either u can store the login name in any session variable eg. session("LoginName") = loginname.text this will vailable u on any page.
|
|
|
|
|
hi friend's
i have an array with special size such as 10
and the problem is that i want to resize this array without loosing data of this array.
and i can't...
sample:
my array is :
1 ,2 , 3 , 4, 5 {size:5}
and after running my project and after clicking the special button i want to have an array like this:
1 , 2 , 3 , 4 , 5 , , , , , {size=10}
thank you.
msma
|
|
|
|
|
|
thank you
but my array is very large
my array size is 1500 that will increase to 15,000,000 cells and i have to work on this array 1,000,000 times.so i must to declare this array once time with 15,000,000 cells or i increase that size when is need.
with your method, i need a super mainframe for compute...
thank you.
msma
|
|
|
|
|
Use the List class, which is a dynamic array. Arrays can't be resized, you can only create a new array and copy elements from the old one into it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello all,,
i need a Contact List Grabber/importer for ( ASP.NET )
How To import (Hotmail, Yahoo, Gmail, AOL) Contacts...??
Like when you want to invite your friends to websites like (Facebook,, Hi5,, Myspace)
you enter your email and password.. and the script Get's your Contacts... and send them a invite Or Check "Who Is In!" ...
this is a sample of what i need but it's not FREE:
http://www.contactimporter.info/index.aspx
Thanks...
Monir Kh. Abu Hilal
============
Programmer ,, WebDeveloper & WebDesigner
============================
Website : http://www.monirabuhilal.com/
|
|
|
|
|
|
Have you got any solution for this. I have the code to import (Yahoo, Rediff, Outlook, Gmail, Hotmail and AOL) but it is showing some issues with the hotmail and aol. Can you help me out for correcting this.
|
|
|
|
|
Hi,
I am working on Marriage agency website where uploaded images to be saved in database in binary format. and on other page I want to retrive that images in gridview.
Can any one give me idea and sample code ?
Thanks in advance.
|
|
|
|
|
hi
you can load your picture from your database on the another empty page and in your gridview you must to addressed this page instead of the image url
in the other word:
you have to first load your picture from your db and write on the empty page with response.write() command for starting and response.end() after the write and then this page is your loaded image and use this and enjoy.
msma
|
|
|
|
|
Hi fellas.
I am currently working on a website for my project. I am trying to create a settings page where users can change the color schemes (via css) of the page via a dropdown menu.
My question is after the user has inputted the color schema, or in other words, the appropriate css file to load, how do I load that particular css file to the current page?
And even if I managed to load it to the current page, the entire site is supposed to use that particular css file. How do I ensure that?
Thank you and looking forward to your replies!
~A confused and desperate newbie.
|
|
|
|
|
|
Hello,
I have very basic questions:
a) How data is trasnfered from client to server and vice versa on Internet.? Is it binary format or something else....
b) Where viewstate is stored? Is it on server memory?
c) Type are stored in which namespaces? Is it system?
Thanks!!
Thanks!!
|
|
|
|
|
Amit Kumar G wrote: a) How data is trasnfered from client to server and vice versa on Internet.? Is it binary format or something else....
Data is transferred on HTTP (Hyper Text Transfer Protocol) which sits on top of TCP/IP. As the name suggests it is a text based protocol.
Amit Kumar G wrote: b) Where viewstate is stored? Is it on server memory?
On the page. While the server is processing the page a copy be held in the ViewState property.
Amit Kumar G wrote: c) Type are stored in which namespaces? Is it system?
Types in general? Or the Type type. There is a class called System.Type. But types, in general, are placed in the namespace in which they were defined.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|