|
I read both articles and am still having problems. I read an article about conditional markup and have tried that. In my case I define the stylesheet theme in the content page such as below and the master page inherits it from the content page. NO problem.
<%
@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" StylesheetTheme="Theme" %>
Now when I try to add the following in the master page the theme is not applied and it tells me that text can not be added between the head element:
<title>
<asp:contentplaceholder id="head" runat="server">
head>
I try adding the conditional text in the content page and still get errors and the theme is not applies. Can anyone help?
Thanks,
Steve Holdorf
|
|
|
|
|
Hi there,
I am looking at the singleton pattern as described by www.dofactory.com. There is also a web project that I am browsing, and it sets all the basic stuff of the website by using the singleton pattern. It sets stuff like the page title, meta tags, javascript, etc etc etc.
When does the static methods in this single pattern get disposed? Once no one is using the website, or when the current user's session is over? Why set the website settings using a singleton pattern?
They mention thread safety as well, what is this and how does it relate to the singleton pattern?
Regards,
Brendan
modified on Friday, May 14, 2010 3:35 PM
|
|
|
|
|
Can you give the link of the webproject to download it that you are browsing?
|
|
|
|
|
Search for BlogEngine.NET on Google.
|
|
|
|
|
hi,
in ASTreeViewDemo7.aspx had a problem i.e, if i drag child node from first ASTreeViewDemo7 into second ASTreeViewDemo7, don't delete the child node from first ASTreeViewDemo7 and prevent duplicate nodes in
second ASTreeViewDemo7 .could you please help me.
|
|
|
|
|
Hi
why i am getting this error when running my solution to run "System.Data.SqlClient.SqlException: Cannot open database "ASPState" requested by the login. The login failed."
i have run the framework tool aspnet_state exe too and still getting same error...
|
|
|
|
|
Are you sure that the username & password provided in connection string for aspState in web.config are valid?
|
|
|
|
|
|
Are you able to directly login to SQL server using the same credentials?
Also, can you please post the querystring?
|
|
|
|
|
hi
thanks for reply and i got run successfully by putting an AllowCustomSql=true in session state
|
|
|
|
|
hi
After running InstallSqlState.sql and all the initial steps , i faced webpage parser exception error, for this i given enablevalidation=false in <% page enablevalidation=false %> but again i got webpage request error finally i checked code and found that i have assigned a Dataview to a session and so i got the error and finally Replacing dataview to dataset i got error solved.
thanks
|
|
|
|
|
This software can quickly convert a word document to a help CHM file, according to the outline structure generated chm file, and html sites.
Main features:
- automatic processing of the outline structure, according to the outline generated pages and directory structure.
- you can set whether to display headers, footers.
- automatic processing of anchor for the link.
- you can choose the outline level of progression processing documents.
- can be set to generate the cover.
- can automatically delete the word bibliography and index.
- bottom of the page can be customized copyright information.
- can generate chm files, and html sites.
Download:http://www.word2chm.com/soft/SWCHM(en).zip
|
|
|
|
|
If you want to advertise you have to pay for it.
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|
|
I ask, that where I should pay?
|
|
|
|
|
Send the cash or money order to me
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I do not have U.S. credit cards,
You help me to buy software, I'll give you the cost.
|
|
|
|
|
Send cash then, $5000USD
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Look here, to start with: Advertising with CodeProject[^]
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|
|
Oh, my god
Price of 50 dollars of my software.
Not enough to pay for advertising Cost.
|
|
|
|
|
If you like my software,
Can I give you for free.
|
|
|
|
|
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Safa"].ConnectionString); string branchid = ""; protected void Page_Load(object sender, EventArgs e) { branchid= Session["branchid"].ToString(); if (IsPostBack == false) { Image1.ImageUrl = "left1.ashx?BranchId=" + branchid; Image2.ImageUrl = "left1old.ashx?BranchId=" + branchid; } protected void Button1_Click(object sender, EventArgs e) {// update code SqlCommand cmdupdate = new SqlCommand("left1update", con); cmdupdate.CommandType = CommandType.StoredProcedure; con.Open(); cmdupdate.Parameters.AddWithValue("@BranchId", branchid); if ( FileUpload1.HasFile) { FileInfo left1info = new FileInfo( FileUpload1.PostedFile.FileName.Trim()); byte[] left1content = new byte[left1info.Length]; FileStream left1stream = left1info.OpenRead(); left1stream.Read(left1content, 0, left1content.Length); left1stream.Close(); cmdupdate.Parameters.AddWithValue("@imgleft1",left1content); } cmdupdate.Parameters.AddWithValue("@notel1",txtnotes.Text); if(cmdupdate.ExecuteNonQuery()!=0) { Functions.ShowAlertMessage("Updated....."); txtnotes.Text = ""; System.Threading.Thread.Sleep(2000); Image1.ImageUrl = "left1.ashx?BranchId=" + Session["branchid"].ToString(); Image2.ImageUrl = "left1old.ashx?BranchId=" + Session["branchid"].ToString(); }
procedure iam using
create procedure left1update(@BranchId nvarchar(50),@imgleft1 image, @notel1 nvarchar(200))
as
update tblImages set imgleft1old= CONVERT( image,imgleft1)
,imgleft1=@imgleft1 ,notel1=@notel1 where (BranchId=@BranchId)
GO
when iam clicking the button my current image should store in imgleft1old field and the newly browse one should store in imgleft1 field
but it giving error
System.Data.SqlClient.SqlException: SQL Server Internal Error. Text manager cannot continue with current statement.
can you correct my code which helps me
|
|
|
|
|
Posting the same question several times won't help...
|
|
|
|
|
hi , sir i am very very sorry , next time i wont repeat.
sir please give any suggestion for this post which i have posted , iam waiting for your positive reply
|
|
|
|
|
|
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Safa"].ConnectionString); string branchid = ""; protected void Page_Load(object sender, EventArgs e) { branchid= Session["branchid"].ToString(); if (IsPostBack == false) { Image1.ImageUrl = "left1.ashx?BranchId=" + branchid; Image2.ImageUrl = "left1old.ashx?BranchId=" + branchid; } protected void Button1_Click(object sender, EventArgs e) {
procedure iam using
create procedure left1update(@BranchId nvarchar(50),@imgleft1 image, @notel1 nvarchar(200))
as
update tblImages set imgleft1old= CONVERT( image,imgleft1)
,imgleft1=@imgleft1 ,notel1=@notel1 where (BranchId=@BranchId)
GO
when iam clicking the button my current image should store in imgleft1old field and the newly browse one should store in imgleft1 field
but it giving error
System.Data.SqlClient.SqlException: SQL Server Internal Error. Text manager cannot continue with current statement.
can you correct my code which helps me
|
|
|
|