Hi,
What do i need to do in order to be able to query across multiple databases which are in the same db engine?
I have added the .edmx file of 1 database, but i only need 1 view from another db.
Thanks in advance!
...
Hi there,
Can anyone help?
I created a DB under APP_Data using ADD ITEM and choosing SQL Server DB and sure enough its there. I can even double click it and it opens up in VS 2010 in the Server Explorer tab.
The connection that i have configured in my web.config is the following
<add name="ApplicationServices"
connectionString=...
If I've got a setup where my master page has a member which is an EF generated object, and I want to use this member then within the page itself (but have need for it within the master page as well).
Currently I've got a using loop within the Master Page Page_Init event to establish the member. However if then I try to get any propertie...
Hi,
I have a repeater which looks like so:
<HeaderTemplate>
<div>
</HeaderTemplate>
<ItemTemplate>
<asp:PlaceHolder runat="server" id="plhContent"/>
</ItemTemplate>
<FooterTemplate>
</div>
</FooterTemplate>
I then have a dataset that looks like:
Title | Category
"Title1","Legal"
"Title2","Legal"
"Title3","Finance"
"Title4","...
I have the following code which attaches an image to the email but I need this image to be embedded in the html of the email.
Any ideas??
objMM.Attachments.Add(new MailAttachment(Server.MapPath("images1/links/beach-icon.jpg")))
objMM.Body = "<p>There should be an attachment</p> <img src='beach-icon.jpg' /> <p>with this email</p>"
...
I currently use custom error codes when something goes wrong with my Jquery Ajax calls.
Does this new security issue mean I have to stop using this method for passing information back to my app.
http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx
Is it still possible to pass decent error mes...
Hi
I am trying to send a simple email through the following code:
protected void email_Click(object sender, EventArgs e)
{
System.Net.Mail.MailMessage msgMail = new System.Net.Mail.MailMessage();
msgMail.From = new System.Net.Mail.MailAddress("[email protected]");
msgMail.To.Add(new System.Net.Mail.MailAddress("murthy...
I have a set of radio buttons that are all disabled, and one of them is selected. In IE8, when I print the web page, the selected radio button is not showing as selected. However, this works fine in FireFox.
Any ideas?
...
Hi all,
I have a grid, which takes style from skin file. It was working fine until I need to make the header static. I wrote a cssclass in while i make position:relative and mark header style cssclass='myclass' this would make my header static but removes the grid lines view from hearder ( cellspacing = 1, cell paging=1, bgcolor=white)...
Hello All,
i want to add image through img tag in C#.net
i tried the following logic but it's not work
String img+="img src="abc.jpg"
if you know plz reply me
...
Hi.
I need to find the best way to insert or update data in database using sql server and asp.net. It is a standard scenario if data exist it is updated if not it is inserted. I know that there are many topic here about that but no one has answered what i need to know.
So my problem is that there is really no problem when you update/in...
Since session and cookies are both used to store temporary data, what is the difference between them?
...
I have asked this question earlier
"I am testing my project in IE.working fine in Mozilla. when i click on search button it is giving me the error
"The state information is invalid for this page and might be corrupted".
I have search button on master page and it is giving me error for Default page.
can anybody tell why this error occ...
This code works fine for absolutely every mail client except Mail for OSX, which just inserts a plain grey icon titled "Mail Attachment (2.6kb)"
Can anyone see what might be missing to make it work in all mail clients.??
Dim mail As New MailMessage()
mail.From = New MailAddress("[email protected]")
mail.To.Add("[email protected]")
...
I'm using a GridView control, using the Northwind database as a sandbox.
I have allowed editing of rows using AutoGenerateEditButton="true" and that all works fine. The book I'm using for reference suggests the following code behind for error handling (C#):
protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
...
I ran into a situation where FindControl was returning a control that wasn't a complete match of the Id I was searching by. There are two controls in the parentcontrol with similar Ids like: "MyControl" and "MyControlAlternate". When I call FindControl("MyControl") the control returned is "MyControlAlternate". I was wondering if anyon...
I need unique session id but each it's new unless you write something in it.
The fix looks like this Session["stubkey"] = "fsdufhusd" in page load method.
It's pretty odd to me. Is there any way to init session or probably I do something wrong with configs?
thanks in advance.
...
I have a net 2.0 ASP page with an HTML form that connects to a MS SQL 2008 database. I thought it was the connection string that was the problem when my page would not load,but with some help from this site and others, I beleive the connection is being made but the form just isn't loading. I am not an experienced ASP or HTML coder and ...
Hi All,
I'm currently looking at developing a WCF Service for the first time, but am a bit confused.
Say I've got a windows application that is going to call into this web service, that service is then going to call our data methods to retrieve and save the data.
Now, say for example we have 2 classes in our solution, Customer and Pr...
Hey All,
How can i get the scope identity parameter in my vb code. I have this so far....
InsertCommand="INSERT INTO [table_name] ([title], [subtitle], [description], [image1], [image1_caption], [image2], [pdf], [meta_description], [meta_keywords]) VALUES (@title, @subtitle, @description, @image1, @image1_caption, @image2, @pdf, @m...