|
You are right, before posting check yourself!
Thanks & Regards
Niranjan
|
|
|
|
|
following is the code which is written in the folowing link respectively
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" Interval="3000" />
</Triggers>
<ContentTemplate>
Your Immediate Advice:
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
<a href="http://aspalliance.com/1417_Working_with_ASPNET_AJAX_Timer_Control.all#Page4">http://aspalliance.com/1417_Working_with_ASPNET_AJAX_Timer_Control.all#Page4</a>[<a href="http://aspalliance.com/1417_Working_with_ASPNET_AJAX_Timer_Control.all#Page4" target="_blank" title="New Window">^</a>]
The problem is , AsyncPostBackTrigger has two properties
ControlID
EventName
in addition to this and interval is mentioned there too , there in the article , but while i pasted the sae code to check it;s execution, it gave error
1. Validation (ASP.Net): Attribute 'Interval' is not a valid attribute of element 'AsyncPostBackTrigger'
2.Type 'System.Web.UI.AsyncPostBackTrigger' does not have a public property named 'Interval'.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Basically am not much familiar with asp.net.i searched and got this below
stuff in coding...but its throwing error when creating a new instance for
the ApplicationClass.i have included the Interop.PJCALLib.dll and
Interop.Office.dll in the bin directory....is it related some other rights
issue....but sometimes its work but displaying the exception like "YOU R NOT
AUTHORIZED TO VIEW THIS PAGE"....Could anyone plz explain how to solve this
issue......even the approach itself is wrong means kindly suggest me
something to proceed it further.......am in mess....i hope i can get the
apet solution from u ASAP...
Here is the coding watever i have done....if anything is wrong kindly
correct me then & there...
thanks in advance!
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Microsoft.Office.Interop.MSProject;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
ApplicationClass appSampleProject = new ApplicationClass();
object oMissing = Type.Missing;
string strFileName = "C:\\Documents and
Settings\\ram.ENTERPRISE\\Desktop\\RevisedProjectPlan";//just for checking i
thought to read the mpp file which ia available in desktop...am i doing it
right r i need to go for some other approach in getting file path..kindly
guide me
bool bOpen = false;
bOpen = appSampleProject.FileOpen(strFileName, true,
PjMergeType.pjDoNotMerge, oMissing, oMissing, oMissing, oMissing, oMissing,
oMissing, oMissing, oMissing, PjPoolOpen.pjDoNotOpenPool, oMissing,
oMissing, oMissing, oMissing);
if (bOpen)
{
Project proSample = appSampleProject.ActiveProject;
Task tSampleTsk;
DataSet dsDataset = new DataSet();
DataColumn dcCol;
DataRow drRow;
DataTable dtTable = new DataTable();
dsDataset.Tables.Add(dtTable);
dcCol = new DataColumn();
dcCol.ColumnName = "Sr. No.";
dcCol.DataType = System.Type.GetType("System.Int32");
dtTable.Columns.Add(dcCol);
dcCol = new DataColumn();
dcCol.ColumnName = "Name";
dcCol.DataType = System.Type.GetType("System.String");
dtTable.Columns.Add(dcCol);
dcCol = new DataColumn();
dcCol.ColumnName = "Level";
dcCol.DataType = System.Type.GetType("System.Int32");
dtTable.Columns.Add(dcCol);
dcCol = new DataColumn();
dcCol.ColumnName = "Start";
dcCol.DataType = System.Type.GetType("System.String");
dtTable.Columns.Add(dcCol);
dcCol = new DataColumn();
dcCol.ColumnName = "Duration";
dcCol.DataType = System.Type.GetType("System.String");
dtTable.Columns.Add(dcCol);
dcCol = new DataColumn();
dcCol.ColumnName = "Hours";
dcCol.DataType = System.Type.GetType("System.String");
dtTable.Columns.Add(dcCol);
dcCol = new DataColumn();
dcCol.ColumnName = "Finish";
dcCol.DataType = System.Type.GetType("System.String");
dtTable.Columns.Add(dcCol);
dcCol = new DataColumn();
dcCol.ColumnName = "Resource Names";
dcCol.DataType = System.Type.GetType("System.String");
dtTable.Columns.Add(dcCol);
string strLevel;
int iCount;
int ilevelLth;
for (iCount = 1; iCount <= proSample.Tasks.Count; iCount++)
{
drRow = dtTable.NewRow();
tSampleTsk = proSample.Tasks[iCount];
string strWBSID = tSampleTsk.WBS.ToString();
drRow["Name"] = tSampleTsk.Name.ToString();
strLevel = tSampleTsk.WBS.ToString();
int iLevel = 1;
for (ilevelLth = 0; ilevelLth < strLevel.Length;
ilevelLth++)
{
if (strLevel[ilevelLth] == '.')
iLevel++;
}
drRow["Sr. No."] = iCount;
drRow["Level"] = iLevel;
drRow["Start"] = tSampleTsk.Start.ToString();
drRow["Duration"] = tSampleTsk.Duration.ToString();
drRow["Finish"] = tSampleTsk.Finish.ToString();
drRow["Resource Names"] =
tSampleTsk.ResourceNames.ToString();
dtTable.Rows.Add(drRow);
}
gvSamPro.DataSource = dsDataset;
gvSamPro.DataBind();
}
}
}
Please help me
|
|
|
|
|
How should i convert the following in the c#
Dim CurrentAdvice As Integer = New Random().Next(0, 9)
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
int CurrentAdvice;
Random ra = new Random(CurrentAdvice).Next(0, 9);
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
sulabh2020 wrote: int CurrentAdvice;
Random ra = new Random(CurrentAdvice).Next(0, 9);
That is not equivalent to the code posted.
|
|
|
|
|
Sonia Gupta wrote: Dim CurrentAdvice As Integer = New Random().Next(0, 9)
int CurrentAdvice = new Random().Next(0, 9);
|
|
|
|
|
There are many converters are available in online, either vb.net to C# or C# to vb.net.
Search in google.
All the best!
Thanks & Regards
Niranjan
|
|
|
|
|
Good morning,
I have a problem to manage C# code inside javascript, and I have 3 ImageButtons, MultiView with 3 Views, by default, the activeViewIndex is 0 (the first view), the problem is with the "onmouseover" event:
how to add a custom handler for mouseOver with c#?
how to convert Multiview1.ActiveViewIndex=1 to String?
example:
ImageButton1.Attributes["onmouseover"]=MultiView1.ActiveView("View1");
And thank you very much.
|
|
|
|
|
I want to read the MPP file content to xml using asp.net2005...am very new
to asp.net,eventhough i searched a lot and got some stuffs to do it but
still i didnt get the apet solution....but in tht whenever am trying to
debug the application its throughing the error which i mentioned below
The error: Retrieving the COM class factory for component with CLSID
{36D27C48-A1E8-11D3-BA55-00C04F72F325}:80070005
I have also checked with the component service in dcomconfig in the
security tab for rights ......but still am getting the same error....could
anyone know how to solve this problem...............am diging with this problem for such a long time.....Can anyone direct me what is the actual process to work out?
thanks in advance
modified on Saturday, December 29, 2007 6:01:10 AM
|
|
|
|
|
Please read the forum guidelines. Highlights include:
1. Do not use 'urgent' or 'help' in your message titles or in the body of your question. Everyone here is asking for help and we don't care if it is urgent.
2. Do not use text speak.
|
|
|
|
|
I created a website , to understand about AJAX.i firstly , invoked a master page, then an another page and selected the same master page for that.Now in the page in inserted the table control and in the first row , I drag dropped the Script Manager control.Afterwards , i had the glance at souce file, there i saw the underscored Script Manager tag, it was showing the following error.
Element Script Manager is not a Known Element.This can occur if there is a compilation error in the website
There is no problem in the script manager tag , if i don;t select the master page for any web page.
There is no problem in the script manager tag if i create the AJAX-Enabled Web Site
Please help
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Dear Friend,
Hi. I think first you should check this your script manager should top of your all the controls in your master.page. It should be immediate after tag.
<asp:scriptmanager id="ScriptManager1" runat="server">;
;
Check this if it would help plase.
Thanks
"Good Thing Goes With Good People..."
|
|
|
|
|
Dear All,
I have a page named "Default".
In that I am having a user control named MyUserControl.
In the user control I have created a iframe and for that I have the source as a web page named "Default2.aspx".
Now whenever an event is triggered in the control in the "Default2.aspx" page I have to perform some changes in the page "Default".
Can anyone tell me how to do it.
This is a partially AJAX enabled site.
Thanks in advance
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
i have created a tool tip using cascading style steet.now i want to set this to gridview how can we set this to the grid view
|
|
|
|
|
Dear Friend,,
HI. check bellow link will definately helps you to resolve your tooltip concept.
http://javascript.about.com/library/bltip1.htm
Nice Example to learn display tooltip through Javascript
Thanks
"Good Thing Goes With Good People..."
|
|
|
|
|
* What is the difference between the data type 'string' and class 'String' in C#?
* Which is the best way of using it?
|
|
|
|
|
Here is bast example...
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
string is Alias name of System.String
|
|
|
|
|
Hi,
If I have a submit button on my form, users may keep submitting (clicking the button). How can we prevent this.
I have googled for this and found that disabling the button is not a good practice.
Regads,
Blumen
|
|
|
|
|
There are many options just redirect the user to other sucessfull page, or clear all controls of the page and just check whether there exists value in controls if not than stop user submitting the form.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
After clicking on submit button you can redirect to other page.
Thanks & Regards
Niranjan
|
|
|
|
|
Navaneeth,
i went through the link for regexbuddy , i downloaded the setup , but it did not give the idea behind the expressions , how the particular expression is being created , instead it is directly giving me the solution , i wanted the meaning for each and every subscript , do u know any other link ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Please don't address the message to a single person. There may be other people who can provide good solution than me, and this will stop them from doing that.
Sonia Gupta wrote: instead it is directly giving me the solution , i wanted the meaning for each and every subscript
http://www.regular-expressions.info/[^]
|
|
|
|
|
In exact what u r required for
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|