|
The big questions are:
1 - how does this relate to ASP.NET
2 - given that the answer to your question is 'to use transactions', is what you're really asking, is for someone to write you a mini article b/c you don't know how to use google and have no references ?
3 - do you understand what a transaction does for you in this instance ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
in a transaction you can send query.
then why not you use the insert query for checked checkboxes
using for loop or foreach
|
|
|
|
|
Hello,
I'm searching for a free dotnet based forum to download and install in my site, something nice with a nice admin area, like vBulletin or PhpBB.
preferred to work with MySQL, though it can work with MSSQL 2005\2008.
So far I've found DNN - however it doesn't meet my requirements, and some more numerous paid options.
I'd be very thankful for your recommendations and links
P.S I'd also appreciate message boards such as this one (codeproject), as long as it have a nice admin control panel
Thanks.
modified on Monday, July 20, 2009 3:15 PM
|
|
|
|
|
check Codeplex
www.codeplex.com
|
|
|
|
|
i want to re-write the url in global.asax
so i wrote this code ...
<%@ Application Language="C#" %>
<script runat="server">
void Application_Start(object sender, EventArgs e)
{
}
void Application_End(object sender, EventArgs e)
{
}
void Application_Error(object sender, EventArgs e)
{
}
void Session_Start(object sender, EventArgs e)
{
}
void Session_End(object sender, EventArgs e)
{
}
void Application_BeginRequest(object sender, EventArgs e)
{
Context.RewritePath("~/UnderDevelopment.aspx");
}
</script>
this is working fine ... on local host ...
but as i deploy this on server, this simply doesn't work ....
wat could be the problem .... ???
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
I am having exactly the same problem and I can't seem to find an answer anywhere. If you find something please post back here and I will do the same.
pamela
|
|
|
|
|
I hope this is the correct forumn for this. I also posted this question in the Web forumn.
I need to have the following functionality in my application.
The application is running as an NT service.
It was written using C# with .NET 3.5.
The application will read a record from a SQL Server database.
The record will provide a Method name, a return type and a list of parametes and their types.
The application will then generate a WebService with a WebMethod which matches the database record.
Now, any user can call the WebMethod.
Does this make sense?
I know how to create WebServices using Visual Studio and several other languages.
I need to create the Web Service on the fly.
In fact, I need to create one or more Web Services. Depending on how many records are in the database.
Any help would be greately appreciated.
Thanks
Ben Clark
|
|
|
|
|
Ben,
This is quite interesting. Though it is not related with ASP.NET. I think you need pure C# coding for implement it.
BenClark wrote: The record will provide a Method name, a return type and a list of parametes and their types.
What about method defination ?
BenClark wrote: I need to create one or more Web Services. Depending on how many records are in the database.
1. Does your system will have Visual Studio in Production also ? This is I am asking becuase I am having some Idea in my mind.
2. What is the frequency of generating Web Services ?
3. Are you also looking for Deploy directly into IIS ?
|
|
|
|
|
I am wondering maybe using CodeDom to create the web service assembly and then creating the svc file. Then it would need to be posted to iis?? Just a quick thought I had about this subject the other day actually. I maybe wrong but this could possibly be an approach.
|
|
|
|
|
Thanks for the quick response.
The way I need it to work is as follows:
1. Using a text editor, a user creates a C# method. The method will have one or more parameters and a return type.
The user will save the code into the database.
2. The server application will read the code from the database.
3. It will compile the code into an assembly.
4. It will create a Webmethod to match the method description of the C# code it just compiled.
5. When a user calls the WebMethod using a browser, etc., the newly compiled
code will be called by the WebMethod which will process using the users compiled code and then return a result.
The WebMethods will be created once and will stay in place as long as the server application is running.
The WebMethods will be called many, many times by users/applications.
Their could be one or dozens of WebMethods created this way.
Visual Studio will not be installed on the server.
The server application will use the CSharpCodeProvider() to compile the code.
The server application will NOT know anything about the webmethods or the C# code.
It only know to fetch the code, compile it and create a WebMethod to call the code.
As far as using IIS, I would rather use
using System.Web.Hosting;
which will not depend on any Web Server of any kind.
I found an awesome example of this at http://msdn.microsoft.com/en-us/magazine/cc163879.aspx[^]
Thanks
Ben Clark
|
|
|
|
|
BenClark wrote: Visual Studio will not be installed on the server.
The server application will use the CSharpCodeProvider() to compile the code.
The server application will NOT know anything about the webmethods or the C# code.
It only know to fetch the code, compile it and create a WebMethod to call the code.
Then I think my idea will not work. I was thinking about, we should have a template Webservice On server. When we need to create a new WS, we will copy the template solution to separate location and will replace the code file which is generating through the database data and then build the whole application from the VS Command prompt.
But This is not a like to be a good idea.
I am on it. If I found some another apporches, will let you know.
|
|
|
|
|
The CodeDom will allow you to compile the code into an assembly, that assembly should contain the webmethods. What you will need to generate is the asmx or svc file associated with the service, this could be done via a template. The posters approach could work, but it could generate a lot of problems without an accurate code checker on the server. The codedom can generate the necessary code files and those could be stored in the DB to be assembled at any time possibly. I have never used the codedom but I know it has these capabilities.
As for System.Web.Host, I have no idea about this as I have never used it.
|
|
|
|
|
hi,
any one help me,
how to bind nested listview using LINQ?
Thanks.
|
|
|
|
|
Have a look to these links
First
Second[^
Hope it'll help u
Cheers!!
Brij
|
|
|
|
|
hi
how can I emplace search box in ASP.net,VB.net that I can in total articles search any subject.thanks
|
|
|
|
|
means you need a web crawler?
|
|
|
|
|
You are not so clear.What is your actual requirement.Do you want to search on some third party database.
Cheers!!
Brij
|
|
|
|
|
hi thanks for your answering
my conception message is that searchbox like google search have in my website.
|
|
|
|
|
sh_donya wrote: how can I emplace search box in ASP.net,VB.net that I can in total articles search any subject.thanks
You want to search with in your site by placing Search button in your page?
sh_donya wrote: I can in total articles search any subject.
Or you want to search from database?
|
|
|
|
|
Hi all,
I have a pie chart with legends. Legends can increase in number. I am displaying legends at the bottom of the chart. My problem is whenever number of legends increases, the legends overlaps the chart area. I dont have much experience on charts. Is it possible to seperate legends area from chart area within the chart or dynamically increase the height based on the number of legends? Even after googling, I have not seen any good examples.
Thanks,
V
|
|
|
|
|
williams.christine wrote: Is it possible to seperate legends area from chart area within the chart or dynamically increase the height based on the number of legends?
You did not mention which Charting control you are using.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I am using MS Chart Controls.
|
|
|
|
|
Hi all,
I using MessageString method to calculate the string width. It is not giving the proper String Width.
Eg:
Font = "Arial 8.25";
Font.Style = Regular;
string1 = "1234567890123456789012345678901234567890123456789012345678901"
If you place this string to the label/TextBox. The actual width is 368px.
But when i use graphics.MeasureString method it gives 387.9978.
Is there any other method is available to calculate the string / what's the problem in this method.
Some article says, Sometimes MeasureString method will give improper values.
Is it true?
Please tell me if anybody knows...
Thanks.
Thanks & Regards
Kumaran
modified on Monday, July 20, 2009 11:37 PM
|
|
|
|
|
MeasureString actuall gives pixel representation of Actual Graphics Text string. It will be working when you are using a canvas to DrawString. Browser text size is not proper for this. I think the actual pixed depends on each browser.
So very little help you have other than trial - error method to determine the size of the textbox.
Love to see more replies if there is any alternative.
|
|
|
|
|
How to hide the url in popup window.
IN IE6 there is no url but when we view the same popup in ie7 then url is visible on the popup.
|
|
|
|