|
meghamaharshi wrote: in my application i have to show a indication whether i am connected to internet or not..
You want to mean , that you need to show all the user list that are currently logged in into your application ?
|
|
|
|
|
Thanks for reply..
But i just want to show the status internet is on or not...
|
|
|
|
|
If it is a web application (not intranet) then obviously the user is connected to internet.
Apurva Kaushal
|
|
|
|
|
its web application which is being run on Lan making virtual directory..
|
|
|
|
|
do you really want this in your web application. Bcos we often need this for Windows Application.
For windows use:
System.Net.NetworkInformation.NetworkChange.NetworkAvailabilityChanged += new System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler(NetWorkChangedCallback);
Abhishek Sur
|
|
|
|
|
yes i want it for web application..
|
|
|
|
|
This has to be the dumbest thing I have ever heard.
If you're on a LAN and you want to know if an internet connection exists or not, just ping google or microsoft and if you get a reply or not, you'll know if you're online.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yes Christian is Right.
For web application, just make an object of XMLHttpRequest and do an AJAX call to any page using SetInterval, so that this ajax call will occur after a certain time. And show the status message based on the reply from the server.
Thats all is possible in WEB...
Abhishek Sur
|
|
|
|
|
hi mates,
how would i know the full directory path of web host server. I couldn't connect to my database (Web Hosting Suite). In my local machine it is C:\Inetpub\wwwroot\mywebsite\kijun.mdb.
I tried the DSN Management in Web Space Configuration but it seems only mysql is available and my database is oledb.
Thanks in advance.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
|
Server.MapPath(); no, not this one.
what i mean is i have a free ASP.NET host. I can only access the control panel and ftp. But i don't know where they put the wwwroot directory.
I want to know where they put the directory path of wwwroot so that i can put the connection string on the webconfig file.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
modified on Monday, January 19, 2009 2:41 AM
|
|
|
|
|
C#Coudou wrote: what i mean is i have a free ASP.NET host. I can only access the control panel and ftp. But i don't know where they put the wwwroot directory.
I want to know where they put the directory path of wwwroot so that i can put the connection string on the webconfig file.
I mean this too,
try this:
create a simple aspx page with this code on page_load:
Response.Write(Server.MapPath(""));
then upload the aspx page on your free host, and browse it and see your result.
|
|
|
|
|
I want to get the object of local report from report viewer. from it i want to work on subreport also so i want the object of subreport from it.
|
|
|
|
|
are you talking about RDLC Reports.??
Abhishek Sur
|
|
|
|
|
ya i m talking about rdlc report...
|
|
|
|
|
I have got 2 panels on my page,Say,
Panel1 with DefaultButton Button1,ValdationSummary1 and some textboxes.
Here same validation group is assigned to Button1 & ValdationSummary1
Panel2 with DefaultButton Button2,ValdationSummary2 and some textboxes.
Here also same validation group is assigned to Button2 & ValdationSummary2
On pressing Enter key,if I am in panel1 ,it is supposed to execute Button1_Click(), but here it is not even firing any event. And even after clicking on Button1, it is showing me ValidationSummry2's error messages(i.e. textboxes in panel2 are blank.)
However, it works without the Validation summary controls.But I cant remove them from the page for some reason.
Now, what I want to do is,in whichever panel I am working in, On pressing Enter key,it should fire that particular panels' default button's click event & should not check the validations in another panel.
Can anyone please suggest me,how can I achieve this...
Thank You.
|
|
|
|
|
Hi all ,
I want to prepare my custom control which inherits from grid control
The control must bind the data at runtime where no of columns can be unknown and also i want to hide some columns,depending on the user input[property set].
There are also many things to be done like some times use tree control inside it.
If double click on any row open a new .aspx page set by user and transfer that row content to that page[parent/child].
Please provide me link where i can find detail docs for this as i hv tried searching on google but cant find the relevant.
Scotchy
|
|
|
|
|
Hi Experts,
I'm trying to compare if in List(A) an object exists in List(B) then do not populate in 2nd ListBox but I don't know how the logic goes as, if i use the code below it compares i know where went wrong.. but I don't know how to solve this, the problem is that if the record in database is "1" and in List(A)= "2" it will add then exist the For Loop, not checking the 2nd Record in Database which may be "1" Can anyone tell me how to go about solving this? thanks in advance! Cheers ^^
Try
cn.Open()
Dim sqlRdr As SqlDataReader = cmd.ExecuteReader()
While (sqlRdr.Read())
Dim reportData As New ReportData
reportData.mReportSource = sqlRdr("ReportSource").ToString()
reportData.mReportDesc = sqlRdr("ReportDesc").ToString()
'listReportData.Add(reportData)
For Each AccessList In listAccessList
If (AccessList.mAccessList = reportData.mReportDesc) Then
Exit For
End If
If (AccessList.mAccessList <> reportData.mReportDesc) Then
listReportData.Add(reportData)
Exit For
End If
Next
End While
|
|
|
|
|
Okay thanks though, I thought of a way to do it =) comparing using 2 foreach loops to loop through both list with the code below =)
For Each AccessList In listAccessList
For Each ReportData In listReportData
If (AccessList.mAccessList = ReportData.mReportDesc) Then
listReportData.Remove(ReportData)
Exit For
End If
Next
Next
|
|
|
|
|
Hi,
In an ASP.NET 3.5 application am trying to align submenu horizontally, my application loads data from XML file. By calling below css class i am able to achieve the purpose in Mozilla but the same is not working for IE:
.Class
tr{
display:inline;}
Is there any other way to do this or how can we make it work for IE.Plesae suggest a way out.
Thanks & Regards,
Neo
|
|
|
|
|
Hi.
I have a WebUserControl that has an HTML textBox ( <Input ... )(Client Side)
I have an Event in my userControl (Text_Changed)(Server Side)
Now, I need to be fired my Text_Changed event when the text of the HTML textBox changed.
How can I do it?
Best wishes
modified on Sunday, January 18, 2009 2:47 PM
|
|
|
|
|
You can't. A server control is needed for server events. but, to do so, is utterly retarded, because your page will do a postback every time you type.
Buy a book on ASP.NET and read it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Make it runat=server and hook the event handler.
|
|
|
|
|
I have a MasterPage with an asp:Table on it. The last row of the table contains the ContentPlaceHolder.
When the whole content is less then the height of the page I would still like to expand my table to the full height of the page. Setting the height of the table (Height="100%") does not seem to do anything.
I've tried creating a simple html table in a simple html page and setting the height="100%". It works just fine, but not in ASP.NET.
Any ideas how I could achieve this?
<div class="ForumMod">modified on Sunday, January 18, 2009 1:23 PM</div>
|
|
|
|
|
Check if you have given any size in pixels in that page.
If so change that to %
|
|
|
|