|
If you are using SQL Server, maybe you could have a "JOB" configured and your page would simply pass arguments to the job and tell it to start. The SQL job will execute asynchronously and your user is free to do whatever they want.
You could get fancy and have another page which would show the status of the job to the user. The job itself you email the user when it is compltete.
More info on SQL jobs ...
http://msdn.microsoft.com/en-us/library/ms187880[^]
Just a thought.
|
|
|
|
|
That's a good idea.
How about just writing a complete html file to app_Data by session number, and on every page load, check for the existence of the file, and read the contents of it, and load it up in a panel for display.
Write a worker service dll in c++ that does the whole thing, the web page calls it, it runs in the background, and writes out a html file in the app_data when complete.
Now ideas are flowing here.
|
|
|
|
|
Has anyone had success in hosting the .nocache.js output of a GWT[^] app in an MVC app? When I attempt to reference the GWT app's generated JS in a Razor view, I get the dreaded "GWT module <foo> may need to be (re)compiled. " dialog. Googling for a fix hasn't unearthed anything useful.
[Solution]- Copy generated
.nocache.js and browser specific .cache.html files to web app's /Scripts dir. - Add bootstrap JavaScript to Razor markup - as defined in Eclipse project's
.html file. [/Solution]
Thanks,
/ravi
modified 30-Aug-12 10:00am.
|
|
|
|
|
how could we insert data into Gridview and then into database.
abubakar
|
|
|
|
|
There are lots of articles on web sharing on how grid can be used. To start with, one such article: GridView all in one[^]
Try and post specific issue.
|
|
|
|
|
here it i body
disconnected way
SqlConnection sqlcon = new SqlConnection("server=.;database=tabakus;Trusted_connection=true");
SqlDataAdapter da = new SqlDataAdapter("select * from musteri",sqlcon);
DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
|
|
|
|
|
by the way you better writw the connection string in webconfig ofcourse as soon as you dont want to get trouble
|
|
|
|
|
how could we insert data into Gridview and then into database.
|
|
|
|
|
Please try a little research for yourself, there are plenty of articles available dealing with gridviews and databases.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Start here[^].
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I am Hosting a web site and i want my clients pc's ip address and pc name in my website's server side vb.net code i tried code of [REMOTE_ADDR] and System.Net.IPAddress(.AddressList(0).Address)but it returns the server address i want clients pc name and address
please help me
Devang Vaja
|
|
|
|
|
You already have your answer in QA. No need to cross post.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Can Any One tell me how to convert .Rdlc report file to .rdl file
|
|
|
|
|
Yes[^]. For future reference, if something's urgent to you, you might want to consider researching the topic yourself. That way you don't waste time waiting for someone to happen by and give you an answer.
|
|
|
|
|
Any Tool for this??????????
|
|
|
|
|
I'm not sure what you mean. The SQL Server Report Viewer is the tool for converting between the two. Do you mean that you need a different reporting mechanism?
|
|
|
|
|
Hi All,
I have an asp.net 3.5 application which is using Entity Framework 1.0, I have a lot of tables with primary key column. But I have few tables which dont have primary or foreign key constraints.
When I generated edmx using Wizard, entity frame is writing update insert mechanism. But the other not non primary key and foreign key tables, I am unable to perform DML operations.
Can anybody please help me is there any way to select an option in the Wizard to have insert and update methods for those non primary key tables also. If there is no option in the wizard, whats the other way round to solve this issue.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Hello all I had posted this question in the wrong forum and was asked to move it here.
I'm trying to download a file from a folder on the server but I don't know how to parse the path inside of the HREF attribute of the anchor tage. I'm trying to modify the following code to be used with HTML anchor tag:
protected void Page_PreRender(object sender, EventArgs e)
{
DataTable dt = new DataTable("INFO");
dt.Columns.Add("url", typeof(string));
string[] fileEntries = Directory.GetFiles(Server.MapPath("~/Documents/"));
dt.Rows.Add("~/Documents/" + Path.GetFileName(fileName));
grid.DataSource = dt;
grid.DataBind();
}
I wanted to do something like the following on my Page.aspx file:
<a href="~/Documents/" + Path.GetFileName(fileName)"> DOWNLOAD </a>
However, the above cannot be done. Please help me find and alternative, thanks in advance for your help.
|
|
|
|
|
Modify it like
protected void Page_PreRender(object sender, EventArgs e)
{
DataTable dt = new DataTable("INFO");
dt.Columns.Add("url", typeof(string));
string[] fileEntries = Directory.GetFiles(Server.MapPath("~/Documents/"));
foreach (string f in fileEntries)
{
DataRow dr = dt.NewRow();
dr["url"] = "<a href='~/Documents/" + Path.GetFileName(f) + "'> DOWNLOAD </a>";
dt.Rows.Add(dr);
}
grid.DataSource = dt;
grid.DataBind();
}
|
|
|
|
|
Hum Dum wrote: dr["url"] = "<a href='~/Documents/" + Path.GetFileName(f) + "'> DOWNLOAD </a>";
That just posts a string as the anchor tag, and doesn't resolve the ~ . That's the bit he needs help with.
|
|
|
|
|
|
Try replying to the OP, rather than me. He won't get emailed about answers to me.
|
|
|
|
|
Hi,
I have an ASP.Net application which is using, .ashx page, it has some methods (right now they are static methods, but I dont want them to be static). Is there any mechanism to call these methods from javascript or ajax calls which is written in a completely different html page.
We are able to call those methods if they are static, but I want those methods to be non-static.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Why do you feel that a generic handler needs to be non-static in your case. I think that the more likely that you need to rethink the process you are attempting to use.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Its a Requiredment, i have a asmx service that returns a list<dataset> and the schema defination keeps on repeating foreach dataset in the List.
How can i prevent.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|