|
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
|
|
|
|
|
When I was trying to do session varibles, I found a hard time finding decent code to mimmick, or someone being ablt to explain it correctly to me, so here is a some code sniplets, from one of my pages, I pass about 4 session varibles, to another page, depending on how a user answers some questions of my form, them I call this function to pass certain pieces of data to the form I pop open for them
This is what function I call to start passing my session varibles, and pop open the window
private void EnterTIR( string myMSEL, int myPTNumber, int myEntryOrder, int myPTSUBNr, int strmyMSELNum)<br />
{<br />
Session["sMSEL"] = myMSEL.ToString();<br />
Session["sPTNumber"] = myPTNumber.ToString();<br />
Session["sEntryOrder"] = myEntryOrder.ToString();<br />
Session["sPTSUBNr"] = myPTSUBNr.ToString();<br />
Session["sMSELID"] = strmyMSELNum.ToString();<br />
<br />
string url = "../Forms/NewTir.aspx?sessionId="+Session["sMSEL"]+Session["sMSELID"]+Session["sPTNumber"]+Session["sPTSUBNr"]+Session["sEntryOrder"];<br />
<br />
string windowName = "NewTir";<br />
string openParams = "width=700,height=800,toolbar=1,resizable=1";<br />
StringBuilder sb = new StringBuilder();<br />
sb.Append("<script language=\"javascript\" type=\"text/javascript\">" + Environment.NewLine);<br />
sb.Append("window.open('" + url + "', '" + windowName + "','" + openParams + "');");<br />
sb.Append("</script>");<br />
<br />
Page.RegisterStartupScript("openWindowScript", sb.ToString()); <br />
<br />
<br />
<br />
}<br />
Then on page load of the NewTIR.ASPX
MSEL.Text = Convert.ToString(Session["sMSEL"]);<br />
Entry_Order.Text = Convert.ToString(Session["sEntryOrder"]);<br />
PTNumber.Text = Convert.ToString(Session["sPTNumber"]);<br />
PTSUBNr.Text = Convert.ToString(Session["sPTSUBNr"]);<br />
MSELID.Text = Convert.ToString(Session["sMSELID"]); <br />
Hope this helps, But be aware, session vars are known to slow your site down a bit, if you start passing too many. In my case this is the only time I use any session vars.
|
|
|
|
|
thank you very much. It's work excellent.
|
|
|
|
|
Glad I could help someone on here. I noticed alot of questions go un answered, so I try to answer what I can!
|
|
|
|
|
Hello Technicians
I m using IIS5.1,VS2003,WinXP SP2
Whenever i m trying to create or use a web application,it gives me the error
"The web server reported the following error when trying to create or open the web project located at following URL http://localhost/cf".'A connection with the server could not be established.'
when i restart IIS it does,nt give any error message to me neither it shows any information about successful starting of internet service.
If i stop IIS it tell me to chk for the web server installed and running.
and restart then the same error "Connection could not be established"
I have searched a lot of forum but unfortunately can not fix it.
plz do something.....
Ajay
|
|
|
|
|
If i understand you correctly, you expect your localhost to work even if IIS is stopped?
To my knowledge i do not think you can run a localhost site if IIS is stopped.
Please correct me if I am wrong...
|
|
|
|