|
that doesnt work i.e even though i have done the enableViewState=false in the page directive i get this problem.....
kindly suggest any other solution
Irshad Ahmad
|
|
|
|
|
Disable the ViewState does not help as the Page instance always emits this hidden element. In this case, you can try to remove the runat="server" in the form tag, and make sure that there's no control requiring the form tag marked with the runat="server" like TextBox .... placed in the form.
|
|
|
|
|
I have an idea, realy dirty solution, but if there is no other choice...
override Render method of a Page class and remove this row manualy after rendering.
But don't tell anybody it was my idea
Pilo
|
|
|
|
|
Sir,
There is no problem in the following code while creating the excelconnection but i am not getting one thing during the connection events.
I have underlined that .Please explain that
Dim MyConnection As System.Data.OleDb.OleDbConnection
Dim DtSet As System.Data.DataSet
Dim MyCommand As System.Data.OleDb.OleDbDataAdapter
MyConnection = New System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; " & _
"data source='" & PrmPathExcelFile & " '; " & "Extended Properties=Excel 8.0;"
MyCommand = New System.Data.OleDb.OleDbDataAdapter("select * from [sheet1$]", MyConnection)
MyCommand.TableMappings.Add("Table", "Attendence")
DtSet = New System.Data.DataSet
MyCommand.Fill(DtSet)
DataGrid1.DataSource = DtSet.Tables(0)
MyConnection.Close()
Thanks and Regards
Amaneet Brar
|
|
|
|
|
hi i want to use RSS Feed for every page in my Project.i know its a XML info.But i dont know how to convert the Webpage in the Xml Format.Pls any body help me to sortout the problem.
Thanx
Aavesh
|
|
|
|
|
i am generating excel report on button click. when the button is clicked a new thread is generated and the method name that creates the report is passed as the delegate name to the new thread. I need to pass parameters to new thread. For that i have created global variables and initialize them before creating the new thread. i use the values of these variables in the new thread's method. Is this technique right?? or is there some flaw in it??
|
|
|
|
|
|
Hi,
I want to know what are the areas in ASP.NET that we should be thorough with? If I go for an interview what areas should I concentrate more.
Regards,
Uma
-- modified at 0:02 Friday 9th June, 2006
|
|
|
|
|
hi In general Asp.net is Vast but if u r going for Interview then u should more concentrate on Ado.net part,how to work with datagrid because its a main part of Asp.net.Some other parts also their u can concentrate on that like What is Webservice,Remoting etc.what is difference between asp or asp.net etc there r so many question.if u will search on net u will find so many question.i hope this will help u
Aavesh
|
|
|
|
|
hi Aavesh,
Thank you for the info that u have provided.
Uma
|
|
|
|
|
hi uma
its my pleasure.
even i post some query when i got stuck.
bye
take care
happy programming
Aavesh
|
|
|
|
|
Mainly you need to concentrate on following areas
1)8 Intrinsic Objects (Request,Response....)
2)Server side controls(web controls,rich controls,validaton controls etc)
3)JavaScript
4)Memory management(Sessoin,Application,Cookies)
5)go thru the FAQ's(Mc Millan)
6)C# programming basics
7)Basics about IIS(Internet Information Services)
8)Html
All the best..........
-- modified at 1:48 Friday 9th June, 2006
|
|
|
|
|
I have images that appear. except every 15 to 20th refresh I get an X.
Any thoughts.
But, when I mouse over the image reappears
And this one image has an X, but I click "Show Picture" and it appears.
thanks,
Nick
1 line of code equals many bugs. So don't write any!!
-- modified at 16:28 Thursday 8th June, 2006
|
|
|
|
|
hi
i have a web server running on my pc and it is showing html pages well...when i have an aspx page it is showing the following error...
"Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance."
i have .NET Framework 2.0 installed on my pc...also the aspx page is fine since it is working well on another pc
can sm1 help me out plzz
|
|
|
|
|
It sounds like a matter of the IIS configuration, there are a couple of things you might want to check:
+ Are you sure that the ASP.NET requests are allowed in the IIS?
+ Are you sure that the .Net framework 2 is installed properly on the machine? You can use the aspnet_reiis tool to register the ASP.NET 2.0 with the IIS again.
+ How do you create your ASP.NET application on the IIS?
|
|
|
|
|
Probably u didnt create virtual directory for your app. Go to Control panel / administrative tools / iis / ... / default web site -> rightclick it, select new > virual directory, for alias use yours app name, browse for your app folder, click next several times and thats it.
I hope that was the problem and it helps
Pilo
|
|
|
|
|
hi
I need to know how can I create a browse button that user can specify the path to save a file that contain an DATA came from DATABASE
that mean I have a DATA and the USER wil press a button and specify the path to create a file contain the DATA
thanks
dadax
|
|
|
|
|
Hi there,
Do you mean you want to allow the user to select a location to save a data file sent from the server? Basically, your application is not allowed to access the IO system at the client side, so you may think of forcing the browser to display the Download dialog box with the SaveAs button so that the client can choose a place to save the file.
|
|
|
|
|
Hi,
I ahev a datagrid with editing capability. I implemented sorting bothways(Asc,Desc) on the grid. I would liek to isnert little up arrow and down arrow in the header columns of datagrid so that user will know in which order data is sorted.
All columns of grid are template clomuns
Can anybody plz help me ..
Thanks in advance!!!!!!!!!!
|
|
|
|
|
Hi there,
You can simply place an Image control in the header of the template column, then depending on the current sorting order you can set the ImageUrl property of the Image control properly.
|
|
|
|
|
i have a table for Users in my SQL Database
How do i integrate CreateUserWizard, ChangePassword asp server control to interact with
1. my Users table
2. SQL Server login i.e SQL Server authentication or Windows authentication
thanks for your anticipated help
t.aransiola
|
|
|
|
|
Hi there,
Basically, these controls work with the configured Membership provider and the default is the SqlMembershipProivder. If you want to use the controls with your own db schema, you can provide the handlers for the events of the controls such as CreatingUser or ChangingPassword. In the handlers, you can use your code to implement the functionality, and remember to cancel the event data so that the controls cannot proceed calling the configured membership provider. However, you should not use this way, you'd better implement your own custom provider, then simply configure your provider to use with these Login controls in the web.config file. You can read more about this in the links below:
http://msdn.microsoft.com/library/en-us/dnaspp/html/asp2prvdr02.asp[^]
http://msdn.microsoft.com/library/en-us/dnaspp/html/ASPNETProvMod_Prt1.asp[^]
|
|
|
|
|
Anybody ever done a preloader with ASPX? I have some reports that take several seconds to load and would like to have a preloader, partly so that users can't pound on the submit button.
You'd think it would be easy to piece together, but I can't get anything to work. Doing Response.Redirect or Server.Transfer in a preloader on_load doesn't show the preloader of course. Right now I'm just doing a meta refresh in a preloader page, but animated gifs will stop running once the refresh starts.
Surely somebody's dealt with this before... Am I missing something simple here?
Visit BoneSoft.com
|
|
|
|
|
I had a similar problem where some of our generated forms could take minutes. The page I had would refresh every 5 seconds. When it refreshed, it would check whether or not the form was done. If it was, then it redirected to the form. Otherwise it just went back to the page and continued to do the refresh. The form was being generated in a separate thread. The refresh was done with meta tags as well.
|
|
|
|
|
In case anybody else needs this... The following class will handle most of the preloader logic for you.
If you don't have a server side form in your page, set a label's Text to PreloadTool.GetPreloaderTable() and then use the StartRenderedPreload() method which will render the whole page for a preloader.
If you have a server side form in your page, the StartRenderedPreload() method will cause an Exception. Instead, use the StartPreload() method which renders only the result of PreloadTool.GetPreloaderTable() as your preloader. Example:
private void Page_Load(object sender, System.EventArgs e) {
PreloadTool pt = new PreloadTool(this);
if (!IsPostBack) { pt.StartPreload(); }
if (!IsPostBack) { pt.StopPreload(); }
}
Anyway, this is the utility class I came up with to help me out.
using System;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace WebReports {
public class PreloadTool {
private System.Web.UI.Page page;
public PreloadTool(System.Web.UI.Page page) {
this.page = page;
}
public void StartRenderedPreload() {
System.Text.StringBuilder sb = new System.Text.StringBuilder();
System.IO.StringWriter writer = new System.IO.StringWriter(sb);
System.Web.UI.HtmlTextWriter html = new HtmlTextWriter(writer);
page.RenderControl(html);
page.Response.Write("<div id=\"preload\">");
page.Response.Write(sb.ToString());
page.Response.Write("</div>");
page.Response.Buffer = true;
page.Response.Flush();
}
public void StartPreload() {
page.Response.Write("<div id=\"preload\">");
page.Response.Write(GetPreloaderTable());
page.Response.Write("</div>");
page.Response.Buffer = true;
page.Response.Flush();
}
public void StopPreload() {
System.Text.StringBuilder txt = new System.Text.StringBuilder();
txt = new System.Text.StringBuilder();
txt.Append("<script language='javascript'>\r\n");
txt.Append("if (navigator.appName == 'Microsoft Internet Explorer' || parseInt(navigator.appVersion) > 4) {\r\n");
txt.Append(" if (document.getElementById('preload')) {\r\n");
txt.Append(" var lmnt = document.getElementById('preload');\r\n");
txt.Append(" lmnt.style.visibility = 'hidden';\r\n");
txt.Append(" lmnt.parentNode.removeChild(lmnt);\r\n");
txt.Append(" } else if (document.layers['preload']) {\r\n");
txt.Append(" document.layers['preload'].visibility = 'hide';\r\n");
txt.Append(" }\r\n");
txt.Append("}\r\n");
txt.Append("</script>\r\n");
page.Response.Write(txt.ToString());
}
public string GetPreloaderTable() {
System.Text.StringBuilder start = new System.Text.StringBuilder();
start.Append("<link rel=\"stylesheet\" href=\"Report.css\" type=\"text/css\">\r\n");
start.Append("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
start.Append(" <tr>\r\n");
start.Append(" <td class=\"TitleBar\">\r\n");
start.Append(" <img id=\"body_logo\" src=\"Logo.gif\" style=\"border-width:0px;\" />\r\n");
start.Append(" </td>\r\n");
start.Append(" </tr>\r\n");
start.Append("</table>\r\n");
start.Append("<table align=\"center\" valign=\"middle\" height=\"75%\" width=\"100%\">\r\n");
start.Append("<tr><td align=\"center\" valign=\"bottom\">\r\n");
start.Append("Generating report, please wait...\r\n");
start.Append("</td></tr><tr><td align=\"center\" valign=\"top\">\r\n");
start.Append("<img src=\"progress.gif\">\r\n");
start.Append("</td></tr></table>");
return start.ToString();
}
}
}
Visit BoneSoft.com
|
|
|
|