|
Here is an article about detecting session timeouts. I hope it helps.
http://aspalliance.com/520
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Hi,
I am Binding a DataTable with a GridView control. This DataTable contains four DataColumn values (all are string type). So, in my GridView each row is displayed as FOUR columns.(ie)One Column for each DataColumn.
But i wish to display all the FOUR DataColumn values in a Single Column (Cell) of a Data Row in the GridView.
In this, i need to bind all the Four DataColumn values in a Single Cell's four server controls (like Label control,etc.)
How can i achieve this?
Regards,
Jay
|
|
|
|
|
just do that
<br />
< asp:GridView ID="gv" runat="server"><br />
< Columns><br />
< asp:TemplateField><br />
<ItemTemplate><br />
<%#DataBinder.Eval(Container,"DataItem.YourFirstColumnName") %><br />
<%#DataBinder.Eval(Container,"DataItem.YourSecondColumnName") %><br />
<%#DataBinder.Eval(Container,"DataItem.YourThirdColumnName") %><br />
<%#DataBinder.Eval(Container,"DataItem.YourForthColumnName") %><br />
</ItemTemplate><br />
< /asp:TemplateField><br />
< /Columns><br />
< /asp:GridView><br />
|
|
|
|
|
It works fine with me. But my Requirement is that, i wish to Convert each three rows of GridView data into Single row. ie the DataRow in the GridView control is supposed to Display within a Single Cell of GridView.
(ie)Each Three row's Datas are need to Display in a Single Row with Three Columns. In this, every column in the GridView having the Same set of Server controls to Display the data from DataTable.
Have u understand my requrement? Thank u a lot...
Regards,
Jay
|
|
|
|
|
|
Hi Todd,
For me, Item property of the DataRowView 'drv' doesnot exist. I dont know the reason, why it is not show me? ( ie drv.Item)
Hence i am not familiar using DataRowView Class, now i am in learning process. I ll get back to you soon. Thanks for your interest with me.
Regards,
Jay
|
|
|
|
|
Thanks ToddHileHoffer for ur guidance. I have got it.
Regards,
Jay
|
|
|
|
|
Dear all,
I new to asp.net 2.
I have a question I hope you’ll answer me.
I need to know if I can use (sql express and ASP.net configuration tools) to build a real web site. And if this is Secure.
Them problem is that I create a website and configure security for some pages. They run smoothly and I can login using login.asp page.
But the problem I can’t login using IIS.
I create a virtual directory in IIS for the project. I can access the unrestricted pages using internet explorer.
But, the problem is that when I want to access to the restricted area by using internet explorer I had the following message. And the login.asp page did not appear.
[SqlException (0x80131904): Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.]
|
|
|
|
|
Hi
SQL Express is configured by default to allow only local connections using windows authentication. From what that looks is that the IIS is running under an user that the SQL Server does not accept.
While I'm no IIS/SQL Server expert, and thus can not really help you to configure them to work like that, what I suggest is that you setup SQL Server to allow both Windows Authentication and SQL Server.
Using the SQL Server Management Studio (http://www.microsoft.com/downloads/details.aspx?familyid=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en) log in to the server and under the server's "Properties" choose Security and select "SQL Server and Windows Authentication". Then create a user and password with access to your database (in your database "Security" -> "Logins" -> Right click -> "New Login...") and adjust your connection string to use this login, for example:
"server=Earthquake\\SqlExpress; user id=UserName; password=Password; database=Database"
This should allow you to use both SQL Express for the final site.
Bruno Sousa
Software Consultant
http://www.luasys.com
|
|
|
|
|
Hi Every one! I want an input file like html control that can upload all files from a selected folder to the server. can any one help me?
samir nigam
|
|
|
|
|
I don't think so anything like is available you may have to upload all the files one after one.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Sorry bud, there is no such control. You are going to have to get creative.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
ToddHileHoffer wrote: You are going to have to get creative.
Where can I download that?
---
b { font-weight: normal; }
|
|
|
|
|
Dear Friends,
I have one GridView Control in my .aspx page with C#. I have last field as Status field which is boolean and is bound as checkbox control. Could you please show how can I se wether the user has checked it or uncheked it according to that I want to change the status of all customers record. if the checkbox is checked means the status is trus and i want update his status in the database through gridcontrol. I want to check all the record at one time. Even if possible I would like to give "Select all records" and "Deselect all Records" option also. Your quick response will be highly appreciated.
Thanks and Best Regards
Murtuza Patel;
|
|
|
|
|
|
<br />
foreach (GridViewRow gr in GridView1.Rows)<br />
{<br />
CheckBox cb = (CheckBox)gr.FindControl("CheckBox1");<br />
cb.Checked = true;<br />
<br />
}<br />
<br />
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Hi all
Can any one tell me about the META TAGS
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
What would you like to know about them (I assume you are talking about HTML tags)?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Have a look at this[^]
Best Regards,
Apurva Kaushal
|
|
|
|
|
I am trying to understand how all this referencing works in ASP.NET 2.0 but it seems that this is not written anywhere.
I have a ASP.NET 2.0 application. All the pages are in the root folder. All pages inherits from a class (BasePage) that is inside App_Code (this class inherits the Page class). I also have a MasterPage which all the pages use.
I don't understand why I can't access backend class of aspx page A from aspx page B. They are in the same namespace (all the stuff is in the same namespace) and in the same folder but I can't access it. I only see classes that are in the App_Code folder, the MasterPage and a control that I have registered in the aspx file.
And I can't "see" apsx pages from classes that are inside App_Code too. What's the deal here?
You could "see" other pages in ASP.NET 1.1 why can't I in 2.0?
I would really like to know this, because I would like to have a reference to a MasterPage from my PageBase class (inside App_Code) (if I move the MasterPage.master.cs file to App_Code the page still works but I can't reference controls that are on the MasterPage.master from MasterPage.master.cs).
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi there,
This is the behavior by design of the ASP.NET 2.0 to support the dynamic compiling. In this case, you may consider the @ Reference directive to link to the class of the web page or web user control, and the MasterType for the master page. Another option is to use the Web Project 2005 instead of the built-in web site template to create an ASP.NET application.
|
|
|
|
|
So by using the @Reference I would have all my aspx.cs files in App_Code and aspx files would reference those classes and I would have to ommit the CodeFile parameter, right?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Actually, the Reference[^] directive provides you with an way to link a web page/user control to the web page/user control that contains this directive. For example, if you want to call the class of the Page1.aspx from the Page2.aspx, you would normally use the Reference directive to get reference to the Page1.aspx (the CodeFile attribute is still being used in this case).
To get reference to the web page/user control's classes from the classes put in the App_Code folder, putting the soure files in the App_Code, ommiting the CodeFile attribute (but the Inherits attribute is still) is an option. Another option is that you can define the base class for the web page with custom properties so that you can pass the current page to this base class before calling its members.
|
|
|
|
|
The web server reported the following error when attempting to create or open the web project located at the following URL : "http://localhost/webapplication1" a connection with the server could not be estabilished'.
nishant
|
|
|
|
|
Are you shure that your IIS is up and running and that you don't have any firewall blocking the connection?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|