I'm writing a function for a web app in ASP.NET where the client logs into the server machine, which is Windows authenticated against the local users on the server. The function I am writing resets the users password and emails them the new one. I do this like so:
String userPath = "WinNT://" + Environment.MachineName + "/" + username....
This issue is similiar to here.
http://stackoverflow.com/questions/1155263/what-causes-internal-connection-fatal-errors
Except it's only happening on one stored procedure and is happening all of the time and is only happening when I access this stored procedure from my website.
I've even ran the stored procedure in SQL Server and it s...
I am trying to add a webpart to page and I cannot get the "Edit" mode to enable. Only the browse mode is enabled. How do I enable Edit and Design modes?
...
Hi.
I have a modal extender called modal2 and when I call
$find('modal2').show();
It comes up with a classic error saying 'null' is null or not an object;
I searched google a bit and made all the related controls to be visible for testing purpose but it has not made any difference.
Any suggestions please?
Thanks.
...
I want to make panels Visibility true or false based on a result of a Func.
I have a page with controls as in the following code:
<asp:Panel ID="Panel2" runat="server">
<asp:Panel ID="Panel3" runat="server">
<c:PermissionPanel ID="P1" runat="server" ValidationGroup="Val1">
Validation Group 1 - OK
</c:Per...
Let's say on an aspx page, you have a user control which contains two Image server controls. The user control contains a property to decide which of the Image is shown at run time by setting the Image controls' Visible property at design time.
My understanding is the user control's(or any server control's) property is set when its cons...
What can cause:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I ask because, the code does not contain code blocks. Anywhere. There is not a single <%= %> block on any page in the entire site. All i have are the <%@ %> directive lines.
Edit:
Below is the code causing the error....
An aspx page's Page_PreInit event happens before an component server control's (e.g. a TextBox) Init event. However it is possible to set a TextBox's Text property in Page_PreInit. I suppose this means the TextBox's Text is set before the TextBox is even initiated. How is that possible?
...
I have created a tabs using div tag in javascript. I have asp.net button on each tab. whenever I clicked on button the focus is set to first tab.
I am using following code in page load event.
HtmlGenericControl content_1 = new HtmlGenericControl("content_1");
HtmlGenericControl content_2 = new HtmlGenericControl("content_2");
HtmlGener...
Hi
We have an ASP.Net MVC site that needs to authenticate to facebook to post photos to a user account. All fine so far.
Facebook redirect back to the mvc site. Again fine.
The url that facebook replies with include the access_token BUT this is prefixed with a # char and MVC strips this and the token from the url so the controller a...
hi,
I developed one application in asp.net and it is working fine in locally. when i upload in online it is giving error like this.
~/User/News/CompleteNews.aspx?newsid=-<span-style="font-weight:-bol.html' is not a valid virtual path.
My code is like this in indiex page
if (e.CommandName == "hollywood")
{
Session[...
Hi friends,
My motto is to call a Java script function at the end of button click code behind. ie, firstly i need to execute the server side function after which my java script function should get invoked.
My server side method is as follows
protected string SaveEmbedURL_click()
{
if (txtembedurl.Text != null)
{
Sch...
I don't really have a real world problem, yet, but I'm trying to learn more about Context.Session[] variables and the postback mechanism by writing a basic little image deally. To do this I have an asp:image control with the ImageUrl set to "image.aspx" on my test.aspx page.
image.aspx simply reads the Context.Session["test"] variable ...
I am trying to have different options for different user roles. Here is my code:
Private Function GetApprovedBy() As String
If User.Identity.Name = "officer" Then
Return "Approved by Officer"
ElseIf User.Identity.Name = "manager" Then
Return "Approved by Manager"
Else
Return St...
I'm having some problems with my ASP.NET 4 application in Chrome & Safari (works in Firefox and IE).
I have a button declared using the following code:
<asp:Button ID="btnEOI1" runat="server" CssClass="buttonCSS" Text="Lodge an Expression of Interest"
OnClick="btnEOI_Click" CausesValidation="False" />
In the c...
I am looking for paging(Top,Bottom) functionality for gridview(or any databind controls)
i am using .net framework 2.0.
i would like to have pointers
thank you
solution:
i used jQuery plugin jquery.tablePagination.0.1.js for my solution
...
Let me explain the case;
On the asp.net page, i have a repeater which generates <tr>s and <td>s.
On clientside, i have a js function which adds or deletes rows into that repeater-generated-table.
The problem is, in this function, i dont only generate a simple row, a textbox (which i have to get its value on server side) is generated t...
Hi,
is there a possibility to check the certificate (issuer, subject, etc.) of a signed XAP-Silverlight file in a asp.net hosted wcf service?
Thanks,
Sven
...
This is my GET Method to get my data from my DataTable
Private Function GetData() As PagedDataSource
' Declarations
Dim dt As New DataTable
Dim dr As DataRow
Dim pg As New PagedDataSource
' Add some columns
dt.Columns.Add("Column1")
dt.Columns.Add("Column2")
' Add some test data
For i As Integer = 0 To 10
dr = dt.NewRo...
I am setting the DataSource of my repeater to a List (MyProducts is a simple class, consisting of only get/setters).
After this and DataBind(), I can see in debugging mode that DataItem of each Repeater.Items is null. When making a postback and trying to update MyProducts, the Repeater.Items[n].DataItem is still null and Im not able to ...