|
Do you have the framework 3.5 sp1 installed?
|
|
|
|
|
First of all , error is not posted properly.
second things is that are you doing your project directly from IIS, means its running from local system or, you trying to run from IIS with in VS ?
cheers,
Abhijit
|
|
|
|
|
Abhijit Jana wrote: local system or, you trying to run from IIS with in VS ?
well ... i m running it on the local system ....
in Visual web developer 2008 express edition ...
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
I am doing a web application in which
i have XML file and data from it is bind to a gridview.
I have a search button and textbox through which i have to find the records in XML file
that has the input matching records.
If i enter "Admin" and press search it should all records having "Admin" as user..
Please help with some code sample....
Thanks in advance
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
U need to parse the XML string ,
but if you have already bound the data to grid view why not search it in grid itself .........
|
|
|
|
|
Can u provide me with some piece of code so that it would be helpful.
I have binded the XML file to grid now...i want to search a name and bind only those records to grid after search
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Hi,
I have an aspx page which is having an arraylist of audio file paths. A child window is opened in which the audio is played one by one. I have a timer control to identify when an audio file completes in the child window. Once the audio file completes, I have to close the child window and return to the parent. In the timer tick event, I have to close the child window. Please tell me how I can do this.
Thanks in advance
Subulakshmi
|
|
|
|
|
Hi
Write this Code on TimeOut
sScript = "<script language="javascript">;";
sScript = sScript + " window.close();";
sScript = sScript + "</script>;";
Response.Write(sScript);
|
|
|
|
|
Hi,
That doesn't work since it is an ajax enabled page. I have tried that option. I even tried to call a javascript function in parent window using which I could close the child window but that also did not work. Tried to raise button click event in parent window but that also failed.
Thanks,
Subulakshmi
|
|
|
|
|
ClientScript.RegisterClientScriptBlock(GetType(), "close", "CloseWindow()");
See if this could work
|
|
|
|
|
I have tried that also. The problem is javascript function do not get invoked since the page is ajax enabled. I am not able to find a way to make javascript work or any other workaround to close the child window.
Thanks,
Subulakshmi
|
|
|
|
|
can any one please guide me that i want to count totall number of users online i have written this code in global.asa in case of user increament it works fine but when user clicks signout or close the browser it does nothing ...
void Application_Start(object sender, EventArgs e)
{
Application["OnlineUsers"] = 0;
}
void Session_Start(object sender, EventArgs e)
{
Application.Lock();
Application["OnlineUsers"] = (int)Application["OnlineUsers"] + 1;
Application.UnLock();
}
void Session_End(object sender, EventArgs e)
{
Application.Lock();
Application["OnlineUsers"] = (int)Application["OnlineUsers"] - 1;
Application.UnLock();
}
umerumerumer
|
|
|
|
|
Fact is, if the user closes the browser, it will always do nothing. So, you need to implement some sort of timeout that checks if a session has been active without any page refreshers for a period of time, then remove them from your active users.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
but in my case when user press signout it also does nothting...
i have written code session.abandant on signout but still value of application varible not changed by global.asax
umerumerumer
|
|
|
|
|
|
shanthi jothi wrote: Please help me how to generate payslip report is not crystal report in all employees and export this report in ms-word.
Please help me how to answer is not question in all sense and export this question to micro-soft
was joking ..
hey make your question clear
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Is it your home work ?
try to do your self. if stuck the welcome to CP , otherwise, no soluation.. Sorry...
cheers,
Abhijit
|
|
|
|
|
Hi friends
I have created a package using C#.net
myPackage.PackageType = DTSPackageType.DTSDesigner90;
myPackage.Name = "MySSISPackage";
myPackage.Description = "Created using the SSIS API";
myPackage.CreatorComputerName = System.Environment.MachineName;
myPackage.CreatorName = "Otey";
//Add the OLE DB and Flat File Connection Managers
Console.WriteLine("Creating the MyOLEDBConnection");
cnOLEDB = myPackage.Connections.Add("OLEDB");
cnOLEDB.Name = "MyOLEDBConnection";
cnOLEDB.ConnectionString = "Data Source=RELL;Initial Catalog=Northwind;Provider=SQLNCLI.1;Integrated Security=SSPI;Auto Translate=False;";
//cnOLEDB.ProtectionLevel = DTSProtectionLevel.EncryptAllWithPassword;
Console.WriteLine("Creating the MyFlatFileConnection");
cnDestination = myPackage.Connections.Add("OLEDB");
cnDestination.Name = "cnDestination";
cnDestination.ConnectionString = "Data Source=RELL;Initial Catalog=testssis;Provider=SQLNCLI.1;Integrated Security=SSPI;Auto Translate=False;";
Console.WriteLine("Adding a Data Flow Task");
TaskHost taskDF = myPackage.Executables.Add("DTS.Pipeline") as TaskHost;
taskDF.Name = "DataFlow";
DTP = default(MainPipe);
DTP = taskDF.InnerObject as MainPipe;
// Add the OLE DB Source
Console.WriteLine("Adding an OLEDB Source");
DFSource = default(IDTSComponentMetaData90);
DFSource = DTP.ComponentMetaDataCollection.New();
DFSource.ComponentClassID = "DTSAdapter.OLEDBSource";
DFSource.Name = "OLEDBSource";
CManagedComponentWrapper SourceInst = DFSource.Instantiate();
SourceInst.ProvideComponentProperties();
DFSource.RuntimeConnectionCollection[0].ConnectionManagerID = myPackage.Connections["MyOLEDBConnection"].ID;
DFSource.RuntimeConnectionCollection[0].ConnectionManager = DtsConvert.ToConnectionManager90(myPackage.Connections["MyOLEDBConnection"]);
SourceInst.SetComponentProperty("OpenRowset", "Categories");
SourceInst.SetComponentProperty("AccessMode", 2);
SourceInst.AcquireConnections(null);
SourceInst.ReinitializeMetaData(); // Error line
SourceInst.ReleaseConnections();
I am getting an exception "Exception from HRESULT: 0xC0202009 -1071636471"
please help on this.
thanks
|
|
|
|
|
How to find group of single user from active directory.
Please help me.
thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
what is it precisely that you want to do ? What do you mean by 'group of single user' ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Answer:-
Private Function GetGroups(ByVal _path As String, ByVal _
username As String, ByVal password As String) As String
Dim GroupString As String
Dim myDE As New System.DirectoryServices.DirectoryEntry(_path, _
username, password)
Dim mySearcher As New DirectorySearcher(myDE)
mySearcher.Filter = "sAMAccountName=" & username
mySearcher.PropertiesToLoad.Add("memberOf")
Dim propertyCount As Integer
Try
Dim myresult As SearchResult = mySearcher.FindOne()
propertyCount = myresult.Properties("memberOf").Count
Dim dn As String
Dim equalsIndex, commaIndex As String
For i As Integer = 0 To propertyCount - 1
dn = myresult.Properties("memberOf")(i)
equalsIndex = dn.IndexOf("=", 1)
commaIndex = dn.IndexOf(",", 1)
If equalsIndex = -1 Then
Return Nothing
End If
GroupString += dn.Substring((equalsIndex + 1), _
(commaIndex - equalsIndex) - 1) & "/"
Next
Return GroupString
Catch ex As Exception
If ex.GetType Is GetType(System.NullReferenceException) Then
'they are still a good user just does not
'have a "memberOf" attribute so it errors out.
'code to do something else here if you want
Else
End If
End Try
End Function
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Hai Friends,
I need an help from you people.I want to show checkbox inside a dropdownlist.If i checked the checkbox in dropdownlist insert the text n db.How is it possible.Please help me.
|
|
|
|
|
The droplist doesn't do that but you could create your own droplist with a div in javascript. I am sure if you google, you'll find someone has already done it for you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Hi,
I have displayed data in gridview vertically but i am not able to update it vertcally.
Please help me.
Thanx in advance!
Abhishek
abhishek pundir
|
|
|
|