how to retrive all value in a object
SELECT a.ID, a.HEAD, a.SUBHEAD, a.TRACK, a.TARGET, a.TOPIC, a.AUTHOR, a.CONTENT, a.MSG_FIRST, a.MSG_LAST, a.STATUSFROM BLOG a
View Complete Post
I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.
Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.
Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.
But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.
So below is my code that i need to use.
I am trying to figure a way to SSO with ASP.NET membership and role model.
I can implement custom membership provider which consume web services hosting on a server.
With encryption of data. No problem.
But my question is, If I sign on a website with my provider, got my identity object on that application,
could I pass it to another website on another domain which use the same provider and by doing so, do not need to login again?
If this is possible, I am going to implement this solution. Please tell me what's your take on this.
I want to create object in 1.aspx, and then send it to 2.aspx. This methods are bad, because:
1)Send object with url, like this:
This is not confidential.
Session["field1"] = "12345"; // set
Object foo = Session["field1"]; // get
Could someone please tell me what is wrong with my syntax here? I'd be much appreciative.
objCmd = New SQLCommand("SELECT CASE WHEN objDR('Item') = 'Enter Bill of Lading' then enterbol " _
& "WHEN objDR('Item') = 'Bill of Lading History' THEN bolhistory " _
& "WHEN objDR('Item') = 'Request Transfer' or objDR('Item') = 'View Transfer in Progress' THEN transfers " _
& "END from plantGroups where plantgroupid=@plantgroupid", objConn)
I have a problem I can't figure out.
I've been trying to add a listbox with multi select enabled as a parameter to my select statement in sqldatasource.
So i created a function like this :
string strItemTypes = "";
foreach (ListItem li in lbItemType.Items)
strItemTypes += "," + li.Value;
strItemTypes = strItemTypes.Substring(1);
which gives me the selected items like this for example : "1,2,3"...Then I've been trying to add it to my sql select statement :
SELECT tblOfficesItems.idOfficesItems, tblStockItems.Name, tblStockItems.Description, tblStockItemTypes.TypeItem, tblStockItems.Notes FROM tblOfficesItems INNER JOIN tblStockItems ON tblOfficesItems.fkItem = tblStockItems.idItem INNER JOIN tblStockItemTypes ON tblStockItems.fkTypeItem = tblStockItemTypes.idTypeItem WHERE tblStockItems.fkTypeItem IN ( @fkTypeItems )
using a hiddenfield with a controlparameter of type=objectbut it just don't seem to work, seems like the data just won't bind or something and I don't get any errors so I'm confused!!
then i tried this :
SELECT tblOfficesItems.idOfficesItems, tblStockItems.Name
Hello guys, I have the following scenario,
Currently I have separate business objects for master table, Child 1, Child 2 etc.
How do I control this in my business object design ? Do I break up my master object ? Say I extract last 'modify by ' into a new class, through inheritance or some other way ?
Is there a way that whenever child gets updated I use a 'small' class to update Master status only and whenever the master itself gets updated I do the same.
Problem is that I am having redundancy in my small class (Master class also contains 'Last Modify By ',
What would you advice. Please have your say. Thank you.
Edit I am using webforms guys.
The application I am currently working on uses Microsoft Enterprise Library Data Access block for Data Access.
I have pasted the following method to provide context:
public static DataSet ExecuteDataSet(string connection, string procName)
DataSet ds = null;
SqlDatabase db = new SqlDatabase(connection);
DbCommand dbCommand = db.GetStoredProcCommand(procName);
ds = db.ExecuteDataSet(dbCommand);
catch (Exception ex)
//Exception handling code
In the next release we are planning to use SQL Server 2008 R2 as our database and we will be implementing mirroring to provide automatic failover.
I have been tasked with rewriting the DAL to take advantage of this.
A sample connection string used by the application today is as below:
I have created a simple ASP.net Web Application (2.0) and have added a web user control.
Now in my page I have added this control but I have registered like this,
<%@ Register Assembly="WebApplication1" Namespace="WebApplication1" TagPrefix="Custom" %>
Which means I want to access all the controls in my current Web Application project
Then I have added my user control like this,
<Custom:MyUserControl ID="MyUserControl1" runat="server" PublicProperty="Hello" />
Every thing is fine but when I execute the project, NO control on my user control gets "instantiated" and thus I receive error "Object Reference Not Set"
Note that My Control has,
1) Public property PublicProperty as String
2) 1 Label control
In Load Event Handler I am setting Text property of Label Control to PublicProperty. Here object reference NOT set error occurs (which means Label control is NOT initialized).
I don't want to register my control using Src, TagPrefix etc. Any ideas?
I am using fluent NHibernate with WebForms and I am trying to build a page where I allow a user to post a status update on their profile page and I a using a .asmx WebService to post the data to the database and then returnig a StatusUpdate instance to the page to be used by jQuery. I have a couple problems.
1) First off when I return a string from the WebService(i was testing) the textbox where the user enters their status doesnt empty the contents. And since the page doesnt refresh even if I manally clear out the textbox and put in something else, it still posts the previous status to the database again. How do I fix this?
2) Secondly, when I return the StatusUpdate Object from the Webservice I cant the results to display anything. Like I sad, Im using jQuery to make an AJX call to the WebService.
Here is my code:
User Profile Page:
Status: <asp:Label ID="status" runat="server"></asp:Label><span style="font-size:.7em;"><asp:Label ID="statustime" runat="server"></asp:Label></span><br />
<textarea id="statusBox" rows="3" cols="40"></textarea><br />
<input type="button" value="Update Status" onclick="SetStatus(); return false;