Hi Yona low In the documentation givin by microsoft, Value for the Duration attribute in the outputcache directive is not limited, so you can use any value.
Venk259
Posts
-
OutputCache Duration Maximum Value -
differnce betweenresponse.redirect(""); In this method the redirection to the page is sent to the browser. From the browser it is redirected to the page. i.e Process goes like this Server -> client(browser) -> Server -> client(browser) set redirect the page Page is loaded redirect command to the browser server.transfer(""); In this method the redirection to the page is done in server, so the redirect page is sent to the browser i.e Process goes like this Server -> Server -> Client(browser) Transfer transfer Page is loaded the page page is sent Note:- So response.redirect("") does call to client and then to server for loading , server.transfer("") does not call to client, but transfer in the server and load that page to the client
-
How to add dll in asp.net 2.0Hi Sapan, Add the com dll by following method. 1) Right click on the project->select "Add Reference" 2) Click on COM Tab, browse the dll, then click OK button Inside the page_load event, Create the object of the class which is defined in the dll. If you have namespace in the COM Dll, then use like this . then access the method from the object created. Note:- 1) unless you defined the method in the class as static or shared you cannot access the method directly. 2) you cannot access the class method in the import or using statement 3) you must declared the class as public class 4) access the method of the object created is done only in the function and cannot be done in the declaration I think this will help you to solve the problem, if you couldn't, message me.
-
AJAX UpdatePanel relatedHi larree11 You can also place the dropdownlist inside the UpdatePanel. You have one updatepanel which contains a few panels. So whenever panel is drag and dropped you want to update the dropdownlist, so better, you place the dropdownlist box inside the updatepanel and in the drag and drop features update the dropdownlist values. I think this will help you to resolve your problem
-
How to send a form Request using asp.net?I am not sure what you exactly telling I think you want to do these html form element in the asp.net using c# and accessing it. Steps 1) add new web page to a project. 2) click on the source button, in that form tag add action and set it to https://abc/MPI 3) add the hidden html tag add attributes runat="server". Do this for all the controls. 4) now you can access the hidden control value from code behind e.g In page_load PX_VERSION.Value give the value stored in the control. I think this what you want. if you have any doubt, post back to me.
-
How to get the "Temporary Internet Files" folder path?Hi Jay_se To retrieve physical path folder for "temporary internet files" use the following code string strTempFldr = Environment.GetFolderPathEnvironment.SpecialFolder.InternetCache);
-
storing data into xml file from asp.net appHi gopalakatla, You can store & retrieve data to xml file using dataset object. In the DataSet class, WriteXml() method which take file name as argument is used to write data as xml data to the file. Through ReadXml() method which take file name as argument is used to read or loaded xml data to DataSet object. If you want operation similar to sql or oracle i.e using query, then you have to write a separate utility class for doing query operation.
-
Password clearing when page is submitted to serverdownload the setup file for ajax from the site http://ajax.asp.net When you open the .net 2.0 you will see an additional section in the toolbar named Ajax Extensions. 1) Drap and drop the scriptmanager control to page 2) Drap and drop the updatepanel to the page 3) Add combo box inside the updatepanel, then write the coding, Now, only the control inside the updatepanel is refresh. so password field will not be clear. Note:- The web.config file has to be modified for making it to work using ajax, otherwise, the page will work normally i.e entire page is posted to server The sample web.config can be got from the website or from your local machine.
-
redirecting to page when radiobutton is clicked -
Check the Given date is sunday or not...,VB Code -.net 2.0 ------- Dim dateobj As Date dateobj = Now If( dateobj.DayOfWeek = DayOfWeek.Sunday) Then textbox1.Text=CInt(textbox2.Text) + CInt(textbox3.Text) Else textbox1.Text=CInt(textbox2.Text) + CInt(textbox4.Text) End If C# Code-.net 2.0 ------- DateTime dateobj; dateobj = DateTime.Now; if( dateobj.DayOfWeek == DayOfWeek.Sunday) { textbox1.Text=Convert.ToInt32(textbox2.Text) + Convert.ToInt32(textbox3.Text) } else { textbox1.Text=Convert.ToInt32(textbox2.Text) + Convert.ToInt32(textbox4.Text) }
-
error in IIS. -
Datarow Array with foreach questionBoth the statement will give same efficiency. If you have a scenario where you want the result object of dtDataTable.Select("TableColumn = 1") , then go for the first statement. otherwise go for the second.
-
RememberMe checkbox in Login ControlDim 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.
-
Trim Functionality in javascriptuser this trim function for doing trim operation function trim(str) { str.replace(/^\s+/,'').replace(/\s+$/,''); } usage trim(document.forms[0].textbox1.value) -- modified at 9:22 Thursday 5th July, 2007
-
Windows Authentication: LogoutIn the Click Event of the Logout button call this FormsAuthentication.SignOut() FormsAuthentication.RedirectToLoginPage() First statement will destroy the authentication ticket, next statement will redirect to the page, which is specified in the authentication section of web.config file.
-
context menu with textboxhi alban, For .net 1.1 Add a context menu from the toolbox to the form, add sub menu's as required by you Then go to the textbox property,then set ContextMenu property to context menu which you have created. For .net 2.0 Add a contextmenustrip from the toolbar to the form, add sub menu's as required by you Then go to the textbox property, then set ContextMenuStrip property to context menu strip which you have created
-
user that executes web serviceHi, Since the calling of the function in web reference is done by the asp.net user, you can't get the exact user. But you can get it in the webform using the code Request.LogonUserIdentity.Name give the exact user who is accessing the page. Request.LogonUserIdentity give the system.security.principal.windowsidentity class object.
-
cant set text of two password fields on update pageHi jake, I want to know what is dtr represent, if you give that details it will be easy to find any solution
-
Form AuthenicationSolution is for .net 2.0 Add these lines to the web.config the authorization is used to prevent the anonymous user. in this example my default url is text2.aspx page In login page write the following code in the button click event if (ValidateUser()) { FormsAuthentication.RedirectFromLoginPage(txtuserName.Text, false); } ValidateUser() is user-defined function where you will write the code to check whether the password given my user matches with the password available in the database. In other page's nothing is needing to write for validation
-
Frameset problem its very urgent........ [modified].net does not support frame concepts. so you can use this statement i have test it with framework 2.0 c# -- if (Session.IsNewSession) { Response.Write("top.location='login.aspx';"); } vb.net -- If (Session.IsNewSession) then Response.Write("top.location='login.aspx';") End If