Web Forms :: Wondering What The Syntax Of This CSS Means

Nov 2, 2010

I have an asp TreeView that has images associated with each node. I am using this CSS that I found on the web to create spacing between the image and the node text:

[Code]....

It works fine, the thing I am struggling with understanding is the " img" part of the style declaration. What is that? It seems apparent that the style pertains to the image portion of a TreeView... How do I know what values can be there? I.E. Is ".TreeView node" valid?

View 5 Replies


Similar Messages:

Want To Disable Linkbutton Means Until Page Is Validated Means The Popup Should Not Be Displayed?

Aug 11, 2010

i am using validators for validation and on linkbutton i am diaplaying popup.my problem is i want to disable linkbutton means until page is validated means the popup should not be displayed till the page gets validated

<asp:LinkButton ID="LinkButton1" runat="server" CssClass="addProduct-disable" Enabled ="false"
Text="Assign Filter Criteria" CausesValidation="true"></asp:LinkButton>

View 2 Replies

Security :: Wondering How Does This Website - Stackoverflow Handle The User Authentication?

Aug 17, 2010

I am wondering how does this website - stackoverflow handle the user authentication? It accept yahoo, google, facebook, myspace, openID etc to login. And most importantly with asp.net.I want to build something like this too.

View 1 Replies

Secure WCF Operations Depending On The User For Authorization Means?

Jan 27, 2011

My scenario is a 3-Tier app where the data tier is a SQL Server database, the middle tier is a WCF application hosted in a Windows Service and finally the presentation is an Asp.Net MVC application.As usual, the middle tier is the one that performs all of the business logic. Access database, define business rules.. etc. BUT now here's question: How do you handle security in such a scenario? I mean, the user has to log in on the ASP.NET application, but I want to authenticate it not only in ASP but in the WCF middle tier as well, since a WCF service is supposed to be accessed by more apps.

I want the user to log in on the Asp.Net application and let WCF know the credentials as well. Is there some kind of session in WCF in which to specify a logged in user? How do pros handle security in this case? I know you can secure the WCF services with message security, but how do Asp.Net and WCF sync on a single logged user? I want to secure WCF operations depending on the user for authorization means.

View 2 Replies

Access :: Syntax Error (missing Operator) In Query Expression / Get Conflict With CommandText Syntax

Aug 8, 2010

I'm having problem in inserting text from a textbox in which user write or copy some text which may contain special characters ( " , . ) etc. If there is any special character it get conflict with CommandText Syntax and generates error in inserting. I want to insert all these characters. How could i do it?

Code:

[code]....

View 1 Replies

Why Can't Use C# Syntax In Inherits Attribute For A Closed Generic But CLR Syntax Is Fine

Jan 15, 2011

The following CLR syntax works fine in my aspx page:

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="Website.MyBasePage`1[HomePageViewModel]" %>

But this C# syntax does not:

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="Website.MyBasePage<HomePageViewModel>" %>

Note, I am not using ASP.NET MVC, but this works fine if using System.Web.Mvc.ViewPage<> from ASP.NET MVC.
My MyBasePage looks like this:

public class MyBasePage<TModel> : Page where TModel : class {
public TModel Model
{
get { return (TModel)HttpContext.Current.Items["model"]; }
}
}

View 1 Replies

State Management :: How To Expire The Session Means No Used After Logout Form A Page Without Login

Jun 2, 2010

If at any time i m login in that time if i want to logout from this page then i'll used response.redirect() but that time how i'll expire the session means no used after logout form a page without login...

View 5 Replies

MVC :: 3 RC2 - Convert ASPX Syntax To Razor Syntax For Asp:Hyperlink?

Dec 15, 2010

For reporting we used report RDLCs and displayed using an ASPX form. We implemented using the route as shown below. This resulted in forcing us to use the page route below and also to use the hyperlink instead of the normal Action Link. The question is how do we convert the asp:hyperlink ASPX syntax to Razor syntax.

//Custom route for reports routes.MapPageRoute( "ReportRoute", // Route name "Reports/{reportname}", // URL "~/Reports/{reportname}.aspx" // File );
<li><asp:HyperLink ID="hypReport" runat="server" NavigateUrl="<%&#36;RouteUrl:routename=ReportRoute,reportname=StaffRpt%>">Staff Report</asp:HyperLink></li>

View 2 Replies

Forms Data Controls :: How To Insert Data To Gridiew Without Using Datasource[means Temp Data]

Oct 18, 2010

in one on my page i am using to add the data from popup window to grid view without using the backend means databasethis is my popup window code

[Code]....

[Code]....

View 2 Replies

The Column Is Dragable Means The Order Of The Column Can Be Changed By Drag And Drop?

May 5, 2010

i am making a website and i get a requirement that in GridView or ListView whatever control you used but the column is dragable means the order of the column can be change by drag and drop.Along with that i want to give option to the client that add more column if he check mark some column then that column should be added client side.So i am looking for some dll in ASP.NEt or Jquery for <table> Operation or javascript anything help me out

View 1 Replies

Reference Path - Want To Know What "<% =QDAB.Constants.SiteURL %>" Means

Aug 27, 2010

I want to know what "<% =QDAB.Constants.SiteURL %>" means in the following line of code in my aspx page. I did google and didn't really find any information on this.

<td align="center" style="background-image: url(<% =QDAB.Constants.SiteURL %>images/Docs/Plans/myImage.jpg);

So what exactly does this mean?

[Aditional Details]

I changed url(<% =QDAB.Constants.SiteURL %>images/Docs/Plans/myImage.jpg);

to this url(<% =QDAB.Constants.SiteURL %>images/myImage.jpg);

I copied myImage in the "Images" folder.

Why would it access the image from "Images" folder BUT NOT "Images/Docs/Plans"?

View 3 Replies

JavaScript - Multiple Create Requests Means Multiple Button Click Events For The Same Time?

Oct 19, 2010

I have a form which inserts data in DB on Submit button click but the problem is when client click the button multiple times its sends multiple create requests means multiple button click events for the same time of same data, which must not be.

I tried to disable the button when client click the Submit button first time but after this it does not call server click event handler or not fire the server click event once it got disabled.

How to handle this multiple click problem..

I used the following code to disable the button

[code]....

View 3 Replies

SQL Server :: EXEC 17P_Comose Will Give Incorrect Syntax Error - Incorrect Syntax Near '17'

Sep 15, 2010

I am working with a sql server database with about 50 stored procedures. The database and stored procedureswere not created by me. The stored procedures all begin with a number in their name.

Example: 17P_Comsetter

The problem I am having is that if I try and execute the stored procedure at the command line in Query Analyzer,the query analyzer appears not to like that the stored procedure begins with a number. For example:

If I try an run the stored procedure as follows:

EXEC 17P_Comsetter

Then I get the following error message:

Msg 102, ..... Incorrect Syntax near '17'

I am using SQL server 2005. Does anyone know why I am getting this error message?

View 1 Replies

ADO.NET :: Not Working Showing Syntax Error Syntax Error:operand Is Missing?

Mar 25, 2011

DataRow[] filterRows = ds.Tables[0].Select("Running Status= case State when 'True' then 'Running' When 'False' Then 'Stoped' end Where Active='1' and State='1'");

this is not working showing syntax error syntax error:operand is missing

View 3 Replies

Web Forms :: Using Properties With Databinding Syntax?

Feb 1, 2010

In an ascx control, it's possible to expose properties - let's assume the property name is a string property with a get accessor called DataField. If the ascx control contains a bindable templated control like a FormView and the FormView has a template that uses the two-way databinding syntax, why can't you provide a reference to the property in the call to the Bind method? I see that using the Bind method in a databinding expression causes the page parser to generate a method that is something like the following:

public System.Collections.Specialized.IOrderedDictionary @__ExtractValues__control8(System.Web.UI.Control @__container)

In which, I see the following line:

@__table["Some_Field"] = TextBox1.Text;

Now, this method (@__ExtractValues__control8) is an instance member on the same generated class that defines our DataField property, but when page parser goes to compile the control, I receive the following error:A call to Bind was not well formatted. Please refer to documentation for the correct parameters to Bind. I assume from this that the page parser requires a string literal to be provided, but I don't understand why.

View 8 Replies

Web Forms :: Updating.Incorrect Syntax ?

Oct 8, 2010

I am wishing to update the existing database value by 1.I am fresher, please modify the below given code to work well, please don't reply alogorithms.I think I am missing to mention couple of lines or else.

Error: Error occured while updating.Incorrect syntax near

View 1 Replies

Web Forms :: Incorrect Syntax Near Keyword Between

Mar 26, 2012

When I use single text box for date it work fine but when a'm check between two dates it gives error this is my code

Dim adp As New SqlDataAdapter("select EmplID='" + TextBox1.SelectedValue + "', date between ='" &
TextBox2.Text & "' and '" & TextBox3.Text & "' ,RESULT = CASE WHEN exists(select * from AtdRecord where RecDate between ='" & TextBox2.Text & "' and '" & TextBox3.Text & "'  and EmplID='" + TextBox1.SelectedValue + "')
THEN ('P')ELSE ('A ' ) END,ResultType= CASE WHEN exists (select * from AtdRecLeave where StDate between = '" + TextBox2.Text & "'and '" & TextBox3.Text & "' and EmplID='" + TextBox1.SelectedValue + "')
THEN (SELECT ResultType FROM AtdRecLeave WHERE EmplID='" + TextBox1.SelectedValue + "'
and stDate between = '" + TextBox2.Text & "' and '" & TextBox3.Text & "') else ('-') END", con)eror=

Incorrect syntax near the keyword 'between'.Incorrect syntax near '='.Incorrect syntax near '='.Incorrect syntax near '='.

View 1 Replies

Web Forms :: String Builder - Syntax Error

Feb 9, 2011

i am using stringbuilder but i have hit a problem. the line below

sb.AppendLine("ctl00_ContentPlaceHolder1_rptNav_ctl00_AssetsTreeControl_1_pnlAssetsContext");

i need this to be passed as a string value ie

ctl00_ContentPlaceHolder1_rptNav_ctl00_AssetsTreeControl_1_pnlAssetsContext
'ctl00_ContentPlaceHolder1_rptNav_ctl00_AssetsTreeControl_1_pnlAssetsContext'

the problem is if i do this i get a js error of
Error: syntax error
Source Code:
return ShowContextMenu(event,
StringBuilder sb = new StringBuilder();
sb.AppendLine("<b Id='");
sb.AppendLine(assets_item.Id.ToString());
sb.AppendLine("' oncontextmenu='return ShowContextMenu(event, ");
sb.AppendLine("ctl00_ContentPlaceHolder1_rptNav_ctl00_AssetsTreeControl_1_pnlAssetsContext");
sb.AppendLine(")'>");
sb.AppendLine(assets_item.Title);
sb.AppendLine("</b>");

View 7 Replies

Forms Data Controls :: What Is The Name Of The DataTable In The Following Syntax

Oct 19, 2010

What is the name of the DataTable in the following syntax:

[Code]....

DataTable named

View 16 Replies

Web Forms :: Syntax For Redirecting Multiple Values?

Sep 14, 2010

i have this code for redirecting one value Response.Redirect("contact.aspx?Pat=" + row.Cells(0).Text.Trim()

i try doing this Response.Redirect("contact.aspx?Pat=" + row.Cells(0).Text.Trim() & "contact.aspx?Nam=" + row.Cells(1).Text.Trim()) but on my landing page it concatenates the 2

this is my landing page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
PatID.Text = Convert.ToString(Request.QueryString("Pat"))
Patname.Text = Convert.ToString(Request.QueryString("Nam"))
so basically it puts everything in my PatID parameter

View 3 Replies

Web Forms :: Value Is Passed When Taking Out DirectCast Syntax?

Jul 27, 2010

In my immediate window I get the following:

?DirectCast(Me.FindControl("txtFName"), TextBox).Text.ToString().Trim()
Referenced object has a value of 'Nothing'.
?txtFName.Text
"Lisa"

So .. if I take out the DirectCast syntax, the value is passed but with DirectCast I get the Referenced Object has a value of nothing .. why and do I even need DirectCast here?

View 1 Replies

Web Forms :: Remove The Syntax Error 'Addapplication_Click'?

Nov 8, 2010

How do I remove the syntax error 'Addapplication_Click'

Source Error:

[Code]....

Source File: I:WebsitesCMPHostJewelite BackupDefault.aspx Line: 125

Associated with the following front page snippet

[Code]....

View 19 Replies

Web Forms :: SqlDataAdapter / Incorrect Syntax Near Order

Jun 11, 2012

I Am getting Error "incorrect syntax near Order"

public DataTable GetOrderId()
{
SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["MyConnection"].ToString());
MyConnection oconnection = new MyConnection();
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select OrderID from Order", connection);
for (int i = 0; i <= dt.Rows.Count; i++)
{
da.Fill(dt);
}
return dt;
} 

View 1 Replies

Web Forms :: SqlDataAdapter With Parameters Causes Sql Exception 'incorrect Syntax Near'?

Jan 18, 2010

This is doing my nut in,

Dim sa As New SqlDataAdapter("C_CUSTOMER_SEARCH", ConfigurationManager.ConnectionStrings.Item(1).ToString)
Dim ds As New DataSet
Dim dt As DataTable
sa.SelectCommand.Parameters.Add("LASTNAME", SqlDbType.NVarChar, 20).Value = Request.QueryString("LASTNAME")
sa.Fill(ds)
dt = ds.Tables(0).DefaultView.ToTable()
gvReport.DataSource = dt
gvReport.DataBind()

In the SQL tracer, I get:

exec sp_executesql N'C_CUSTOMER_SEARCH',N'@LASTNAME nvarchar(20)',@LASTNAME=N'smith'

An 'Incorrect syntax near' sql error bubbles upto the ASP.NET runtime. Running this in SQL studio also causes the same error. What is causing this error?

I would also like to know if its possible, to add QueryStringParameters to the SqlDataAdapter or not. I've tried (not very successfully I might add), to add QueryStringParameters programmatically to both SqlDataSource and SqlDataAdapter objects which have been created in code and not in the Markup. But each time I get 'nothing' when I call the Select() method on the SqlDataSource.

View 2 Replies

Forms Data Controls :: GridView Operation Syntax?

May 4, 2010

Request to updated me with the syntax for update gridview rows in asp.net 2005.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved