|
If the content on the Respective home pages are being read from a database, then once the update Button has been clicked then you could just update the relative Database's which would then be showed on the Home Pages.
I think that would be best.
Hope this helps.
|
|
|
|
|
My application is written in ASP VB.Net VS-2002.
I am successfully calling another VB executable using Process.Start method and I am successfully able to maintain my Session Variables as a result of using sessionState mode="SQLServer".
My issue is related to the need to have my primary ASP.VB wait until all processing is complete in the VB.Exe Process.
I have tried both the Process.WaitForExit Method and the HasExited property. These accomplish the wait but produce the Configuration Error :machine.config could not be loaded. Attempted to access an unloaded AppDomain.
Pseudocode Snippet
-------------------
This line writes an entry to a log file.
myProcess = Process.Start(my.exe, sArguments)
Do While Not myProcess.HasExited
System.Threading.Thread.Sleep(10000) 'Every ten Seconds.
Loop
This next line would write to a log file, but never does.
------
Instead I get the Configuration Error:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The XML file c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config could not be loaded. Attempted to access an unloaded AppDomain.
Source Error:
[No relevant source lines]
Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 0
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407
--
Is this because I'm timing out in ASP.NET? Any suggestions or tips would be wonderful.
|
|
|
|
|
For anyone else that might be experiencing this issue or something similar, the only way I was able to get around the process threading issue was to write my own HasCompleted vb routine looping for the existence of an end of process file.
|
|
|
|
|
I have an ImageButton in the Item Template of the fourth column of a gridview. I am trying to access it in the *.aspx.cs file but am unable to do so. I need this button to pass it as a parameter to a method and have tried multiple routes including this one which seemed like something that should have worked:-
(ImageButton)Gridview.FindControl("EditButton");
"EditButton" is the name of the ImageButton
Could anyone help me out.
Thanks,
Sudeep
|
|
|
|
|
When calling a method such as this: (ImageButton)Gridview.FindControl("EditButton"); you need to tell it which row to get the control from. So it should look like this:
(ImageButton)Gridview.Rows[0].FindControl("EditButton");
The number (0) is the index of the row.
Alternatively you can get it in the ImageButtons onClick method. In this case, the sender parameter (comes in as an object) is the ImageButton.
|
|
|
|
|
|
Dear ASP Gurus,
I am populating my multiline textbox on page in UpdatePanel with some text as
header name + vbnewline
------------ + vbnewline
value1 + vbnewline
value2 + vbnewline
.
.
.
value30 + vbnewline
.
.
Now I need to get the print of my web page but for now only first 10 rows are visible in the print
I need to expand this textbox to see all the rows in my print out. How to expand this textbox at runtime probably at two points.. 1. after I populate the textbox or 2. at page.ispostback = true
may be at client side or server side?
Could you please help me?
regards
Lee
Could you please help me.
Leya
|
|
|
|
|
This should show all the lines;
TextBox mytxtBox = new TextBox();
mytxtBox.Rows = X;
X being the number of lines you will have.
Hope this helped.
|
|
|
|
|
I'm using a Menu control dynamically populated from a database table, and need to provide the users with a facility to edit the menu items. Currently I only cater for two levels of item, but three are now required. I would like, if possible, to use the actual menu as a menu editor, when somehow placed in 'edit mode', and I am considering changing the persistence to an XML file to handle the hierarchical relationships better. My concerns here are being able to limit menu items exposed to certain users only, and to prevent manual editing of the XML file breaking the menu. Maybe an automated backup that will go to 'last known good menu'. Suggestions on how I may go about this will be most welcome.
|
|
|
|
|
Hi all,
I am using C# , asp.net2.0
On a button click I have to generate a report in new window I am using following code but It is neither giving error not redirecting the page to destination.
Please help
string Script= "<script type='text/javascript' language ='javascript' >";
Script+= "window.open('PasswordRecovery.aspx',null,'resizeable=no,scrollbars=no,addressbar=no,toolbar=no,width=300,Height=250');";
Script+= "</script>";
Type csType = this.GetType();
Page.ClientScript.RegisterStartupScript(csType, "PopupScript", Script);
imran khan
|
|
|
|
|
Please check whethet you have used Ajax in that page or not??
Cheers!!
Brij
|
|
|
|
|
did you used Ajax in this page ?
if yes then use
ScriptManager.RegisterClientScriptBlock()
insted of
imranafsari wrote: Page.ClientScript.RegisterStartupScript(csType, "PopupScript", Script);
cheers,
Abhijit
|
|
|
|
|
create sp...
TOT int out
Select TOT = count(*) from <TableName> where <columnName> like 'x%'
dynamic query for paging
here i am not getting result, why?
thanks
-Sriguru
|
|
|
|
|
hi all
i meet a problem with CalendarExtender control i used it in my form to show hijri calendar format and change the setting in windowes to hijri calender
but the CalendarExtender read the Gregorian format also i make a label in the same form and its read the date from the system with the hijri format >
how can i slove this problem ?
my question i
i want the Calendar Extender show the hijri format as the system configuration
if i din't explain my question clearly pls inform me.
thanks 4 all
Kareem Elhosseny
modified on Tuesday, August 5, 2008 9:05 AM
|
|
|
|
|
Check this [^]it is on windows application example but maybe it will give idea to you for Ajax.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Thanks for your help
Kareem Elhosseny
|
|
|
|
|
Hope it helped you
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
i took one button.
i wrote gridview.rows[0].enabled = false only deleting 1 row .if i click
second row its not deactivated..how to solve this show me way..
|
|
|
|
|
Because {gridview.rows[0].enabled = false} only diables row[0]. To disable all rows you need to disable all rows.
Try this
<br />
foreach (GridViewRow Row in GridView)<br />
{<br />
if (Row.RowType == DataControlRowType.DataRow)<br />
{<br />
Row.Enabled = false;<br />
}<br />
}<br />
This should work.
|
|
|
|
|
Iam getting error .this is the description
foreach statement cannot operate on variables of type 'System.Web.UI.WebControls.GridView' because 'System.Web.UI.WebControls.GridView' does not contain a public definition for 'GetEnumerator' .
|
|
|
|
|
What programming language are you using?
|
|
|
|
|
|
foreach (GridViewRow Row in GridView.Rows)
{
if (Row.RowType == DataControlRowType.DataRow)
{
Row.Enabled = false;
}
}
Sorry left out the GridView.Rows
That should sort the problem out.
|
|
|
|
|
i solved .
this is the solution.
Take buttonfield set text ="Deactivate"
in gridview indexchanged event write like this
gridviewrow row = gridview1.selectedrow;
row.enabled = false;
ROWCOMMAND EVENT
if(e.commandname.tostring()="deactivate")
{
for(int icounter =0;icounter<gridview1.rows.count;icounter++)>
{
gridviewrow row = gridview1.selectedrow;
row.enabled = false;
}
}
|
|
|
|
|
I am doing an application, which has almost completed. Now i want to implement this in our Intranet site. I have configured IIS Virtual Directory.
When i am calling this from my PC it is working fine.
Example : -
http://localhost:56/pms/login.aspx
But i am not able to get this page from other machines in our network.
I have set the properties also....but no use
What could be the issue..?
Please help....?
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|