like i have one aspx/asp page which iam using in my many anither pages so i don't want to write all the stuff every time how can i do this?
i tried with <!--#include file="file.aspx"-->
its not working
and i also tried with
its working but i want to use some functions of file.aspx page in my present page
It does not matter. What you need to do is first create a ascx page(User control). Same as you create a aspx page and then drag it from solution explorer to you web page(aspx page) and that over. You can get the contents of the control to the page.
but still iam getting prob because i have some functions in my first page which are having response.write stmts ok and i want to use these functions in my second page.........iam getting reference error
I am not been able to understand your because i dont think there is any relation between your user control and response.write statements. What is the exact error message and you debug the code and see where which part is diaplaying the error.
i am trying to calculate the total amount of memory and cpu used while using string and stringbuilder.
i am trying this way ...
calling a method in one button click and writin to response.
for (int i=0;i<=10000;i++)
Response.Write("using string : "+myprocess.WorkingSet.ToString()+"");
and calling another method on another button click and writing to response.
StringBuilder str=new StringBuilder();
for (int i=0;i<=10000;i++)
Response.Write("using stringbuilder : "+myprocess.WorkingSet.ToString()+"");
but i am not getting the appropriate answer as it is showing the stringuilder is using much memory then string...
i have calculated the total time using two date time variables initialising them before starting and end of loop and then subtracting and getting the milliseconds of difference in between them. one more thing that i am calling both the functions after restarting the page.
please help out me guys, i need the solution of this problem very urgently!!!!!!!!!!!!!!!!!!!!!!!!1
In your second page, look at using PreviousPage.FindControl() passing it the control ID of the control you want the data from in the first page. You'll have to typecast it to the proper control type to get the data, but this does work. I don't believe that this encrypts the data, but it is not visible in the URL.
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
Hope u r all fine
I have a problem concerning sorting in a datagrid.
I have a bound column that gets its value from 2 database fields -FirstName & LastName-
When I write in the sort expression of that column "FirstName" it sorts properly but when I write "FirstName,LastName" it doesn't sort..
So how can I sort using these 2 columns together??
Thanks a lot in advance
How can i display in a dropdownlist more than 3 values?any custom built dropdownlist facility available or what exactly i need to use to do this,
I have no idea of doing this,Give me an idea with some code.Thanks in advance.
am i need to use Grid for this???Give me correct idea?
i want to create windows movie file for the webpage.ie,all the flow of my web application in mpeg format.so that the user can view the flow in media player.if any one knows please help me.
This is not an ASP .NET question. You may have more luck asking in the Web Development board, however, I can make a suggestion. If what you are wanting is to embed a movie into a web page, I suggest you look into creating flash movies. The free Riva FLV encoder creates .flv (flash video) files from an .avi and then you can use the open source FlowPlayer to actually embed the movie in a web page. Here are the links you need for these two items.
I am new to asp.net, therefore not sure if this is achieveable. This web application will need to serve both intranet and extranet users.
For intranet, users log in to their machines (AD accounts) as per normal and when they open up the web application, system will check for the windows logon and let them thru (was thinking of using WindowsIdentity/WindowsPrincipal).
As for extranet users, system will redirect them to a login page which will capture their credentials and authenticate against user information stored in DB.
I have tried setting the authentication to Integrated Authentication in IIS which achieves the intranet authentication but it fails when it comes to extranet, as without (integrated) login credentials from extranet, users will be prompted the windows login dialog which the system has no control over it to authenticate users against DB.
1) Turn the NT Auth off in IIS. If this is on, the external users will always get a login.
2) Use Request.LoginIdentity instead. For IntraNet users this should be populated the first time in. If not then tell people to make the site Trusted. If this is empty string then you can redirect them to your login page.
If Request.LogonUserIdentity.Name.ToLower.Length = 0 Or (Request.LogonUserIdentity.AuthenticationType <> "Negotiate" And Request.LogonUserIdentity.AuthenticationType <> "NTLM") Then
'Login is blank so send them to your login page
Thanx for the reply..
But Can u send me the code as an eg. plz..
Actually what to write in the itemcommand event of data grid to delete the row???
I think the code for deletion shoulsd be
"delete from table1 where ----"
What to write in where condition???
I mean suppose i want to delete the row whose id is in its 1st column then wa=hat to write??????
One more thing can i delete more than 1 row at a time????
Look there are multiple ways to do that one is you loop through all the number of records to be deleted and execute the delete statement.
second one is you send alll the id as a comma separated value to the query like this:
delete from table1 where id in (1,7,43,7)
Last Visit: 31-Dec-99 18:00 Last Update: 24-Jun-16 10:28