|
|
Hi Thx for reply
I got the thing
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
hi everybody
I am going to open Word file through asp.net
for that i wrote following code
using System.Runtime.InteropServices;
using Word;
Private Word.ApplicationClass oWordApplic;
// a reference to Word application
private Word.Document oDoc;// a reference to the document
oWordApplic = new Word.ApplicationClass();
object fileName = strFileName;
object readOnly = false;
object isVisible = true;
object missing = System.Reflection.Missing.Value;
oDoc=oWordApplic.Documents.Open(ref fileName,ref missing,ref readOnly,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref isVisible,ref missing,ref missing,ref missing);
when executing
oWordApplic.Documents.Open()
Exception Occurs 'The server threw an exception'.
so plz tell me then solution to oversome to this problem
vivek deshpande
|
|
|
|
|
Sir,
in asp.net 2.0 In the code behind file it is written Partial class
and in 1.1 it is only written classWhy it is so?
Thanks
|
|
|
|
|
|
Hi Apurva
The article says
we don't have to declare our controls in the code-behind page, because ASP.NET 2.0 creates a partial page class where it declares the controls for us.
Ok the control declaration is not in ode behind file now but still i am not getting what's the benifit of partial keyword in code behind file.
PLease do some explanation.
Thanks
|
|
|
|
|
You go through the article posted by Satips it will clarify your doubts.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Really good one..
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello its very simple thing..
but i'm not getting the solution.i'm using Sql server with asp.net
i have a table with Autoincreament column say id.and some other field
i write the query for inserting data in it.
like this
1) str1 = "insert into CMS_Login(Login_id,Login_Username)Values('','" & txtclientid.Text & "')"
when i use the above statement in Sql Server table it does not increase the value of Autoincreamented column.
2) str1 = "insert into CMS_Login(Login_Username)Values('" & txtclientid.Text & "')"
and when i use the above query then and Upload it on Client server.page give me error.
what should i do?
thanx
|
|
|
|
|
aavesh wrote: str1 = "insert into CMS_Login(Login_id,Login_Username)Values('','" & txtclientid.Text & "')"
No need to give login_id column just send the rest columns and values in the query.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hello
i did this but when i upload it on server page gives error to me.
what to do?
thanx
|
|
|
|
|
What error are you getting?
Best Regards,
Apurva Kaushal
|
|
|
|
|
hey thanx my problem has been solved
|
|
|
|
|
What was that?
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hey,
First I couldnt find a direct database forum, but i am using asp.net, so here it goes.
I am creating a search function, and I want to search all tables in my mysql db. Now I have researched and found that this can be done simply by seperating all the tables in the FROM clause with commas, or using a UNION statement, but what I want to know is can you just select all of the tables in the db at once?
All my tables are identicle in structure, and at first i would just like to search the one field from each table.
I have tried using something like "SELECT * FROM *" but i get errors.
The main reason I want to do this is because everytime I add a table in the db I dont want to have to edit the code.
If anyone can help or even point me in direction of some good articles it would be appreciated.
Thanks for your time.
|
|
|
|
|
Say I have a database Members.mdf. I bind a table within "Profiles" to a GridView. Then I try to use Linq to access another table in Members.mdf. (e.g. Members db = new Members(Filepath);) Then I get a cannot access database because another program is using it error. I assume that the databind connection is in conflict with the Linq connection.
Is this a fundamental database access conflict problem or LINQ specific? And how can I get around it? Or should I just try to use either databinding or linq but not both? Thanks.
|
|
|
|
|
I am developing a web application using C#.Net (dot net 2003). I want to use vertical Toolbar control on my web page.
Please help me. it's very urgent
Hrushikesh
|
|
|
|
|
Sir,
I want to refresh my page after each 30 seconds .PLease help how to do it.
Thanks
|
|
|
|
|
You can use meta tag to refresh the page in particular time.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks It is working very fine.
|
|
|
|