|
This is a tiny CMS with fully working admin panel. I hope you will find it useful
YaBlogEngine - A Tiny Blog Engine written in ASP.NET/C#[^]
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.
|
|
|
|
|
I have a question about a C#.net web form 2010 application where I added new tables to two existing different linq to sql files (.dbml). I dragged these two tables from server explorer on to the 2 .dbml files. When I dragged these tables onto the designer, I was asked if I wanted to use a different data source and I said yes.
Everything works fine as long as I use the web.config file I used when I dragged the two tables onto the designers. However this web.config file is used for production. I want to use the web.config file that should really be used for development/testing. When I use the 'real' test/debug web.config file, the application breaks on a line of code saying I need a new instance of the object. The object that is being referred to is the new tables I dragged onto the designer form. Thus can you tell me what I need to do so I can use the 'test' web.config file?
|
|
|
|
|
Hi,
Can anyone help me to understand just with an example which feature/functionality from ASP.Net MVC will help me acheive following.
1. I am planning to develop this generic search view which will show filtering criteria for different properties of a object passed to it.
2. I want this view to accept dynamically any entity object (edmx generated from my database model which has entities like Employee, Company, Department, EmployeeLeaves, EmployeeSalary,EmployeeTrainings etc this is bsically a HRMS domain project) and then to derive runtime from entity object what properties are available for searching/filtering
3. Also I want to show appropriate operators/options based on data type of properties that is my next hurdle I will try to take care of that.
4. Last but not least show results for specific entity/table based on filtering criteria. (I am guessing I may have to have generic search interface which will be implemented by these entity objects and I call specific implementation of it runtime)
My queries are
1. How can I pass different entity objects (in edmx) since I can only bind one single object as model and not multiple. If there is one base object can I use that as model and pass to it specific object runtime?
2. Also reading properties of objects that gets passed I want to show filtering options so should I be using reflection for that?
If no exmaple or no guidance, do direct me to any article that will help me study this.
Thanks in advance.
Rahul Joshi
|
|
|
|
|
|
This is not a question. This is an ASP.NET forum to ask ASp.NET based technical questions.
If you want to share the link with someone who has asked then use reply/answer around it. Posting it as a question or suggestion in an open forum is meaningless.
|
|
|
|
|
Has anyone used the Izenda or Crystal ad-hoc reporting tools? I'm attempting to see which ad-hoc reporting tool is better and why. I've visited Izenda's blog, and they seem to be very good. Crystal has a nice blog as well. Who's is better and which should I go with? Small company and cost effective.
|
|
|
|
|
I really don't think you should be basing your opinion on which site has the best blog!
Download trials of both and create small apps to test and compare.
I would, however, check the forums to see if there are complaints about responses to issues or reports of bugs which aren't getting attended to.
"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
|
|
|
|
|
Hi,in vs. 2010 c# web site project I am using web modalanchor for new aspx page. when ı want to close modal web page,I must click twice time page closing (x)button.Why this is happening I cant understand.I am waitinfg for your ideas..
thaks..
|
|
|
|
|
It is probably something like returning true or false from the client function that is being called. I'm not familiar with the code you are referring to (modalanchor), nor can I see your code, so an educated guess is all I can offer.
|
|
|
|
|
but when I use vs. 2008, I dont have any problem,in vs. 2010 I must click twice time.
|
|
|
|
|
ı am using aspxbutton (devexpress) I understand that it is not concerning with vs 2010.It is concerning with (devexpress).But ı havent solved problem yet.
|
|
|
|
|
I have Datalist with Product Image and Product Name.
I would like to populate the gridview with the products detail information like Description and Price By the Side of Product Image in a Gridview
|
|
|
|
|
|
Sir Actually I didn't got U
plss Help
|
|
|
|
|
|
hello,How can i fetch data from database in lables in asp.net using three tier architecture please help me...
|
|
|
|
|
|
I want to use array to retrieve all the emails from my contacts for example. and i want to use delimiters to seperate all the emails with a semicolon ;
and then i need to join them back as a string again to put it in a textbox.
How do I do that? Urgent help is needed.
Thank you
|
|
|
|
|
Create the array:
string emailString = NameOfTextBox.Text;
string[] emailArr = emailString.Split(';');
Recreate the string:
StringBuilder sb = new StringBuilder();
foreach (string s in emailArr)
sb.AppendFormat("{0};", s);
string rebuiltString = sb.ToString();
modified 7-Jun-12 14:07pm.
|
|
|
|
|
after recreating the string how do I store it into the textbox?
|
|
|
|
|
NameOfTextBox.Text = rebuiltString;
|
|
|
|
|
but I am retrieving the numbers of emails using SQL statement which will be called using the button.
which is then I need an array and delimiters to put the semicolon to separate each of the emails I have.
my SQL statement is like that
SELECT Email
FROM Customers
WHERE newsletterAgree = "True"
I am confused on how to start
|
|
|
|
|
I suspect you may be starting to get way over your head here. You may need a contract developer to piece all this together.
StringBuilder sb = new StringBuilder();
using (SqlConnection conn = new SqlConnection("(replace this with a real connection string)"))
{
conn.Open();
using (SqlCommand cmd = new SqlCommand("SELECT Email FROM Customers WHERE newsletterAgree = 1", conn))
{
using (SqlDataReader rdr = cmd.ExecuteReader())
{
while (rdr.Read())
sb.AppendFormat("{0};", rdr["Email"]);
}
}
}
string finalString = sb.ToString();
If you want to convert finalString to an array, then once again, you need to do:
string[] finalArr = finalString.Split(';');
This should be compatible with all versions of ASP.NET
|
|
|
|
|
Since contents may have any type of symbols, I suggest that you convert it into Base64, and then you can use either comma or ';', or many other symbols as delimiters, from those that are not included into Base64 itself.
|
|
|
|
|
Hello,
I am Binding a ajax accordion dynamically,
I am using <HeaderTemplate></HeaderTemplate> and
<ContentTemplate></ContentTemplate> to bind a data
in contenttemplate i am using datalist, Itemtemplate.
On Development side the accordion application is working fine. but same application giving problem on production server accordion section is coming blank.
I checked at both environment production and development by using firebug. on production environment the code for accordion not getting executed also there is no problem in storeprocedure.
Please help me what problem may there.. because coding and database are fine in development but at production not getting what issues are there may be... !!!! :doh: :zzz:
|
|
|
|