I have an DropDownList bound to an ObjectDataSource. when I select a row in the drop down how do I get the underlying object(not just the value or text properties). I'm trying to add the selected object from the DropDownList to a Listbox's datasource but I don't know how to reference the object picked. The objects aren't backed in a data...
We keep getting this error randomly in our web application.
System.Data.SqlClient.SqlException: A
network-related or instance-specific
error occurred while establishing a
connection to SQL Server. The server
was not found or was not accessible.
Verify that the instance name is
correct and that SQL Server is
configured t...
I am trying to debug a problem with a .net compact framework application I have running on windows mobile 6. It occurs when I call a web-service call on my development machine.
I don't need any help with the actual error, but with invoking the debugger at the correct time.
I run the web-service in debug mode and am able to trigger a br...
I am aware that the tag has the "roles" attribute to make up for the nodes that don't have the "url" attribute, which can be resolved in other ways. I'm not interested in these other ways, though, I'd like to have all my permissions set in my sitemap file. How to accomplish this?
I'm using custom RoleProvider, custom MembershipProvider...
I have a small business that sells website solutions to clients. The websites serve the same purpose; to allow the customer to send and schedule SMS messages.
Each website is slightly different. For example, 1 site has mandatory information such as address details and group name while the other has different requirements such as logging...
This is my DataList code , I define a table in headertemplate and close it in footerTemplate.
The problem is with AlternatingItemStyle and ItemStyle that they don't effect.
If i move the table defenition inside <ItemTemplate> it does work.
<asp:DataList ID="DataList1" runat="server" DataKeyField="ProductID"
DataSourceID...
I am attempting to prevent the deletion of a Row for my GridView like this:
void GridView1_RowDeleting(Object sender, GridViewDeleteEventArgs e)
{
if (GridView1.Rows[e.RowIndex].Cells[1].ToString() == "root")
{
e.Cancel = true;
}
}
But it's not working, I put a breakpoint in there but it ne...
I was wondering if there was some sort of cheat sheet for which objects go well with the using statement... SQLConnection, MemoryStream, etc.
Taking it one step further, it would be great to even show the other "pieces of the puzzle", like how you should actually call connection.Close() before the closing using statement bracket.
Anyth...
I'm trying to do an invitation system, and if my solution is looking weird even to myself
something gotta be wrong.
A user call an URL for an invitation
site.com/Account/Invitation/invitationGUID
public ActionResult Invitation(Guid invitationGUID)
{
//Check for the existence of the invitation id
if(true)
return R...
Is there a way in .NET 2.0 to use a class as a class factory for user controls? In other words, 1 super that sits there and when I want a user control, it creates it and returns it to me. It seems it needs the ASP namespace which I can't seem to get it to reference.
I have a masterpage with a placeholder. Depending upon the user's authe...
I have the below code..
i am finding a way to optimise it..
is there anyway to optimise it using findcontrol and loops ?? also eliminating headofficeSelected,areaSelected ,headofficeSelected and only using storeSelected ?
If (storeSelected = 1) Then
tempCollector = tempCollector + "<br>" + "Department" + ": " + txt_panview3_ddinpu...
I work as a contractor/freelancer. At most client sites a lot of websites are blocked. Specifically Gmail and Facebook which I really would like access to while on assignment.
I know there are a lot of proxy/anonymiser websites out there that allow you to use their website to circumvent the website filtering of the business IT policy bu...
What's the easiest / standard way to retrieve the GET (in URL) variables passed to a .aspx (VB) page?
...
Ok I need to do this. I need to have button on master page.
Once that button is clicked I generate string that represents URL.
test.apx is content page I use and the string will look like something like this:
Example: "www.blah.com/test.aspx?user=blax&develop=extreme_all"
Now all I need is to reload the page while content is redirecte...
Can something like this, borrowed from jQuery, be done without jQuery and with ASP.NET AJAX only?
<a href="nojslink.html" class="clickMe">Click Me</a>
And then in an external JS file:
$('a.clickMe').click(function(){
alert('Thanks for clicking');
});
...
I am trying to better understand how the App-Code folder operates, and in particular I am curious how new objects that a new class in the App-Code folder are included in the current AppDomain. Is a second, temporary AppDomain created in the same manner as when I compile new objects with the CodeDom?
In many ways the capability of movin...
I'm developing an asp.net web application targeted to business customers. Can anyone provide some guidelines on how I can determine the number of users my application can support?
Also, the application uses session variables so its currently limited to one web server until that changes.
...
I have seen resources for setting up single sign on with multiple .net apps in different scenarios, but is it possible to have a SSO solution for .NET and CF websites?
Thanks!
...
In onItemDataBound event of the ListView I am checking the data and under certain condition I dont want this item to be part of the DataList. If I make it invisible it will still be accounted for in DataList. It will just be invisible and the sepatators and its place in tilibg will still be there.
Is there way to exclude the item from ...
Hello all,
I am very new to jQuery and have got a quick question.
I wish to use my server side classes in my jQuery code, something similar to this:
$(document).ready(function() {
var temp = <%# myClass.Id %>;
})
Is this possible? if so, how?
Thank you very much
This is the later question I refined my former question to:
I'm sorr...