|
hi
I have one datalist in that I am displaying files (e.g. .txt,.doc etc).
I want to display iocn with file name (e.g. if .txt file is there I want to display notpad icon with it, if .doc file is there i want to display msword iocn etc)
can any one help me
Thanks,
Rushiraj
|
|
|
|
|
Display the Image as an Icon.
Regards,
Satips.
|
|
|
|
|
yes
but how can I find which icon is associated with that particular extension.
Thanks,
Rushiraj
|
|
|
|
|
We can get the images of the icon for word , pdf, txt and insert infront of the Name in the datalist.
Regards,
Satips.
|
|
|
|
|
how to get that image
Thanks,
Rushiraj
|
|
|
|
|
Do you have word and txt and pdf in your system you can keep right click on that image and save it and then use it in yoour Datalist.
Regards,
Satips.
|
|
|
|
|
I don,t want that.
I have web application in that I am displaying files in data list now this file can be of any type .exe, .doc, .psd , .htm , .jpg just any file ,
now I want to display icon associate with file.
e.g. if in my pc .jpg is associate with mspaint I want to dislay paint icon
if in any other pc .jpg is associate with irfan view i want to display irfanview icon for that file
Thanks,
Rushiraj
|
|
|
|
|
When an application is running and the user exit the browser the current web page has gone but the application is still running. How can I exit the application when user exit the browser.
|
|
|
|
|
You don't. The idea is that the application will continue to run on the server waiting for the next request. The server has no concept of a browser being shut down. It just serves up pages.
|
|
|
|
|
Hi,
I have created a web application. it is on my local host. I want that when user type http://twcsdc.com/cms/admin then
my web page should appear here. So how can I convert my application from localhost to above URL.
Thanks,
|
|
|
|
|
Install the application on the relevant server, placed in the appropriate virtual directory with the appropriate settings in IIS. What that is depends on your situation.
|
|
|
|
|
Hi Guys,
...We're working with a hierarchical Infragistics UltraWebGrid and when one of the parent rows is selected, each of the children underneath it is to be selected as well. I have the code to perform this all hammered out, but now I have to deal with the issue of the fact that this is sometimes a long-running process. Infragistics provides their own wait-cursor for several of the grid's functions, but not for this. What I'm trying to do now is something to the effect of:
in the ASP code behind:
<br />
DisplayGrid.DisplayLayout.ClientSideEvents.AfterSelectChangeHandler = "SelectBranch('ctl00xContentPlaceHolder1xRemovedEquipmentxuwgDisplay');";<br />
in javascript
<br />
function SelectBranch(gridId)<br />
{<br />
document.body.style.cursor = 'wait';<br />
foo(gridId);
document.body.style.cursor = 'default';<br />
}<br />
What is happening is that it is executing 'foo' as it is supposed to, but never resets the cursor to the default cursor
Does anybody know how to get this logical flow to work? Or is this incorrect? What if foo recursively calls 'SelectBranch()'? Does that have any implications?
Welcome my son...Welcome..to the Machine
|
|
|
|
|
How can I delete the cookie when the user exist from the browser
|
|
|
|
|
y don't u use session variables. what's the point of using cookies. Cookie is there for future so the process is little faster
|
|
|
|
|
Don't set any expiration date on the cookie. That makes it a session cookie that goes away when the browser is closed.
---
single minded; short sighted; long gone;
|
|
|
|
|
I am getting the error
Object reference not set to an instance of an object
as shown below.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 43: chkRemember = FindControl("RememberMe")
Line 44:
Line 45: If chkRemember.Checked = True Then
Line 46: 'cookies are sent to the user's pc using httpresponse
Line 47: Dim oCookie As HttpCookie = New HttpCookie("loginuserid")
My Login_LoggedIn event where the error is breaking is as shown below
======================================================================
Protected Sub Login_LoggedIn(ByVal sender As Object, ByVal e As System.EventArgs) Handles Login.LoggedIn
'This event is fired when the Login button is pressed
Dim chkRemember As CheckBox = New CheckBox
chkRemember = Me.FindControl("RememberMe")
If chkRemember.Checked = True Then
'cookies are sent to the user's pc using httpresponse
Dim oCookie As HttpCookie = New HttpCookie("loginuserid")
'remove previous cookie
Response.Cookies.Remove("loginuserid")
'create new cookie
'Response.Cookies.Add(oCookie)
'Assign values to cookie's subkeys
oCookie("user") = Login.UserName 'oCookie.Values.Add("user", Login.UserName) '
oCookie("pass") = Login.Password
oCookie.Expires = DateTime.Now.AddDays(15)
'Add the cookie to the Cookies collection
Response.Cookies.Add(oCookie)
End If
End Sub
pls help
t.aransiola
|
|
|
|
|
Dim chkRemember As CheckBox = New CheckBox
chkRemember = Me.FindControl("RememberMe")
instead of the above code replace the below one
Dim chkRemember As CheckBox
If ( Not Me.FindControl(Login1.ID & "$RememberMe") Is Nothing) then
chkRemember = CType(Me.FindControl(Login1.ID & "$RememberMe"),CheckBox)
Else
chkRemember = New CheckBox()
End If
Since At the Conversion of html , the checkbox is named as login1.ID along with the "$RememberMe". Since no such control (RememberMe) exist, you are getting error.
I think it will solve your problem
One important think is that alway check whether the control exist or not, then do the operation.
|
|
|
|
|
Dear all
we have Vs2005, and sqlserver 2000 in our local system. We create a login.aspx file. Thru this login.aspx file(which is on the local system) , we can connect to the host server database.But while we try to connect the database thru the login.aspx file (which is on the host server) , we get the following error alert message.
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.(provider:TCP Provider,error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)"
Can anybody help for this problem?
|
|
|
|
|
Most likely you have the wrong name for the sql server in your connection string. You might have local host for you local application. When you install this on a web service you will need to put the correct sql server name in the connection string.
Hope that helps.
Ben
|
|
|
|
|
hello
i'm looking for a way to call a c#-method by clicking on a row in a gridview.
actually i try at first to select something , so i put this code in my gridview onRowCreated-method and it works.
e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.gvResultview, "Select$" + e.Row.RowIndex);
but how can i call a c#-method by a click event ???
thanks a lot for help !
|
|
|
|
|
U can use Command Event of GridView....
|
|
|
|
|
thx for your answer... can you give me more details please ?
thanks a lot
best regards
|
|
|
|
|
What exactly u want to do please tell me in detail and also post a new thread.So that I can help u...
Thanks...
|
|
|
|
|
Hi all! Can anybody tell me, how I can create global variables for web side.
-- modified at 11:38 Thursday 26th April, 2007
|
|
|
|
|
Use Session if you want it to only be for a single user. Use Application if you want it to be for all users. If it is something that is used a lot use the cache object.
Hope that helps.
Ben
|
|
|
|