|
i am using Ms access database and i keep tis database in my application andd pass connection string like this :-
Private _OleDbConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\LcsCwaChat\LcsCwaChat\UserInformation.mdb;"
but i want it detect path(C:\LcsCwaChat\LcsCwaChat\UserInformation.mdb;) automatically.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
|
|
|
|
|
Piyush,
I think this might help you but for this you have to place your database in your application.
Private _OleDbConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\UserInformation.mdb;"
If this will not work the place your database in bin directory and check it again.
|
|
|
|
|
Thanks Its Also Working
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
|
|
|
|
|
ANSWER:-
Application.StartupPath.Replace("bin\Debug", "UserInformation.mdb")
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
|
|
|
|
|
Hello Friends,
I want to get the ID(unique field in "GridView3") respectively i click on the "Select" button or link. Here i'm giving my code. Plz check and make me correct.
protected void GridView3_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
string str = GridView3.SelectedRow.Cells[1].Text;
lblMsg.Text = str.ToString();
OR
lblMsg.Text = GridView3.SelectedRow.RowIndex.ToString();
}
But it throw(s) an error like
Object reference not set to an instance of an object.
|
|
|
|
|
Hi,
im using Javascript(setTimeout()) timer to partial postback of my aspx page.
this works fine in IE.but not in Firefox.
anybody know about this....
|
|
|
|
|
IE does not strictly fallows W3C Standards.
If you post the code then some one can help you
try to write generic javascript
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi thanks for reply,
here,
function beginrefresh()
{
alert('d');
document.getElementById("Button1").click();
setTimeout("beginrefresh()",60000)
}
window.onload=beginrefresh
in this event i get multiple alert continously. but i declared 1 min interval.how is this possible...
i think in each click page get refreshed then timer also restarted...
is it correct? if s pls correct this
|
|
|
|
|
First thing i want to ask you
Do you want to refresh the page after certain interval of time ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
No, im calling one event ie button click in regular period of time
|
|
|
|
|
Dear Programmers,
I am facing a problem in the loading of a xml file in ASP.NET 2.0. One thing else that the file is on a remote location. It is displayed in Internet Explorer but when the page load is show a message to press yes. If I don't press yes button then it will not show me the remote file otherwise it show me. How can I remove that message and secondly the file is not loading in FireFox. For FireFox i am using the following code:
if (document.implementation && document.implementation.createDocument)
{
xmlDoc=document.implementation.createDocument("","",null);
xmlDoc.async="false";
xmlDoc.load(xmlFile);
xmlDoc.onload=xmlFile;
}
It show me the following error in firefox:
"Error: uncaught exception: Permission denied to call method XMLDocument.load"
What shall i do. Please help me in this regard.
Thankyou to all those who give a reply.
|
|
|
|
|
Check this URL might be helpfull
http://forums.asp.net/t/1155866.aspx[^]
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks for replying me sundeep.
The code has still a problem. It is still giving me the following error:
"Permission Denied to call Method XMLDocument.load"
Can you please help me in this regard. Thanks
Note: I am trying to open xml file in Mozilla FireFox.
Waiting for your reply
|
|
|
|
|
In my page i have used AJAX model popup, once i use the model popup it will generate error on click on any button.
the error is "Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method"
Best Regards,
Chetan Patel
|
|
|
|
|
which algorthim is used in the garbage collection?
raja
|
|
|
|
|
hi raja,
Garbage collection is used for releasing all the resource occupied by the program and it's variable, so that another application can use these resources easily. Garbage Collection is itself algorigth which call itself at the end of the program. It is the last method of any program. It first try to find out which program variable and resources no longer needed/referenced by the program. If it find's that all the variable and resources no longer needed by the program, then it immediately calls Garbage collection. Garbage Collection stores all the necessery information in the persistence medium then release the memory occupied by the variables. Then close all the open database and network connections.
For this purpose Garbage Collection uses memory referencing, network connections and database connections referncing. If referencing doesn't exist, it call releasing of memory and other resources.
Hope this will help you.
Thanks & Regards
Dilip Kumar Vishwakarma
|
|
|
|
|
I don't know the specific name of the Algorithm but
Based on two simple tendencies
1.Recently created objects tend to have a short life.
2.The older an object gets, its necessity tends to be higher and it is
assumed to live longer.
Do you want exact name ? Google it you will get that name also share with us
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hello Good Morning To Everybody,
I have a query about the treeview control in asp.net.For treeview control we can set treeview.attributes,like that i want to set treenode.attibutes.is it possible through any way.Please help me.The design is attached below.Kindly help me.
<asp:TreeView ID="Tree_MasterTable" runat="server" ShowLines="true" OnSelectedNodeChanged="Tree_MasterTable_SelectedNodeChanged">
<Nodes>
<asp:TreeNode Text="Admission" Value="Admission">
<asp:TreeNode Text="Subject" Value="Subject"></asp:TreeNode>
<asp:TreeNode Text="Language" Value="Language"></asp:TreeNode>
<asp:TreeNode Text="Religion" Value="Religion"></asp:TreeNode>
<asp:TreeNode Text="QualifyExam" Value="QualifyExam"></asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Fees" Value="Fees">
<asp:TreeNode Text="FeeTerm" Value="FeeTerm"></asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
|
|
|
|
|
I am writing an event handler for a html radio button. Depending on whether it is checked I want to enable or disable a ASP.NET panel control. It seems like the event is not getting triggered at all. Can you help me troubleshoot this?
;
protected void rb1_ServerChange(object sender, EventArgs e)
{
if (rb1.Checked == true)
Panel1.Visible = true;
else
Panel1.Visible = false;
}
|
|
|
|
|
tjkota wrote: önserverchange
Is that a typo? Remove the umlaut and it should work.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hi, yes its a type. It should be 'onserverchange' without the 'umlaut'. It doesn't work either. Please help.
|
|
|
|
|
Oops, I mean to say 'typo'. I am not using the 'umlaut'
|
|
|
|
|
I tried to reproduce your problem, but it worked OK for me. Which version of ASP.NET are you using? For versions prior to ASP.NET 2.0, you have to explicitly set up the event handlers in your code-behind. You can't define them declaratively in your ASPX page.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hi, thanks for trying. I am using ASP.NET 2.0
|
|
|
|
|
Set the AutoPostBack property to true.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|