Hello everyone ,I want to show xml which is loade fom sql server with the following code bu I dont know for showing that in web which control is suitable?the code is as follow:
con = new
View Complete Post
View Complete Post
i am binding images dynamically(back end)for a datalist .iam applying a slideshow for it .I am getting a problem to apply slideshow for dyanmically binded images.If the define in a div statically it working perfectly
for example pls go through my code below:
<div class="slideshow"> <img src="images/30_dummy.jpg" width="200" height="200" /> <img src="images/aquarius.gif" width="200" height="200" /> <img src="images/star.gif" width="200" height="200" /> <img src="images/the-proud-indian-flag-1.jpg" width="200" height="200" /> </div>
I above code works perfectly and the slide show e
i am using create user wizard and capturing other information within content template when a new user
registers. Some of the textboxes are binded to required field validators.
there is a validation control on the page and ShowMessage box is True.
If they dont complete some of the text boxes then the message box pops Up with the error message.
It does not however include information errors like "User already exists" or Email address already exists
from the create user wizard membership UserName and Password Textboxes
is it possilbe to hook all of these up so I get one message box with all errors including membership ones?
I've created a SetupWizard, but can't get it to show the Icon for the shortcut on desktop and program menu. The installation goes fine without any errors, the only problem is the icon.
I've made a shortcut of my exe file in the Application Folder and dragged the shortcut to the Desktop folder, then on the shortcut properties, I assigned it an icon picture located in Application Folder.
Any suggestions will be very much appreciated.
// Update these variables to values whatever you are storing in your table
// If you are storing as CARD NUMBER, update this Card Number Attribute Name to CARD NUMBER
string strCardNumberAttributeName = "Credit card number";
// string strCardTypeAttributeName = "1";
string strExpiryDateAttributeName = "Expiry date";
DataTable dtPaymentDetails = new DataTable();
string queryString = "SELECT tbl_Payments.PaymentId, tbl_PaymentDetails.AttributeName, tbl_PaymentDetails.Value, tbl_Payments.PaymentType FROM tbl_Payments INNER JOIN tbl_PaymentDetails ON tbl_Payments.ID = tbl_PaymentDetails.PaymentId WHERE ATTRIBUTENAME IN ('" + strCardNumberAttributeName +
"','" + strExpiryDateAttributeName + "') ORDER BY PaymentId";
string connectionString = "data source=.\\SQLEXPRESS;Integrated Security=SSPI;" +
using (SqlConnection connection = new SqlConnection(connectionString))
SqlCommand command = new SqlCommand(queryString, connection);
SqlDataReader reader = command.ExecuteR
Hey, I need some help modifying the menu adapter code to give child <ul> elements a class value indicating that the parent is selected. It should render like this:
< ul class="AspNet-Menu">
< li class="AspNet-Menu-WithChildren AspNet-Menu-ChildSelected">
< a href="/rockit/admin/Default.aspx" class="AspNet-Menu-Link AspNet-Menu-ChildSelected">
< span>Mypage< /span>< /a>
< ul class="AspNet-Sub AspNet-Sub-Selected">
< li class="AspNet-Menu-Leaf AspNet-Menu-Selected">
< a href="/rockit/admin/Default2.aspx" class="AspNet-Menu-Link AspNet-Menu-Selected">
< span>Test< /span>< /a>
< li class="AspNet-Menu-Leaf">
< a href="/rockit/Default3.aspx" class="AspN
I have a form where I took 2 dropdownlists. In 1st ddl I displayed all Religions and in 2nd DDL I displayed related castes. When my user filled the form so everything saved it. But when user logged in I unable to show him his choosen caste. Religion I displayed throgh RellgionId. But I don't understand how to do that?
Can anyone tell me where I am doing mistake?
I would like to make the build information for the running web application but I dont know where I set or configure this nor do I know how to retrieve this information.
In a project you may set the build information in the file AssemblyInfo.cs under the projects Properties folder. Here is a snippet of the AssemblyInfo.cs file:
// Version information for an assembly consists of the following four values:
// Major Version
// Minor Version
// Build Number
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
But there is no such file for an web application project, so I have to get this information from one of the compiled DLLs that is in the same assembly as my web application then? Or how is this done?
The reason I want this information is because my customer would like to have a webpage within the web application where he could see the current version. This is also nice to have when testing and debugging etc.
i have a table there is 17 columns in 17 column 3 are number and other are varchar . when i try to display all data of that column error occures.
one more intersting think is when i try to display 6 column then grid show there data an no more error occures.
when i run my project this error occures in grid view
Arithmetic operation resulted in an overflow.
I have Two Checkbox in my asp.net textbox..
First what i want is
based on two checkbox user has to be select any one only..
if checkbox1 is selected then Panel1 visible true without postback
if checkbox2 is selected then Panel2 visible true without postback
Hi guys. I have two little problem.
I have database with one table and it has 4 rows.
1. I want to show a zero in front of all number. Actually i added but it doesn't show.
2. If i don't put any value in column is it possible to have minus for example instead of 0?
I post it like that because i can't see how to post pics directly.
P.S. The columns with numbers have checked "allow nulls".
I draw in paint so it's not so good but i think it's understandable.
10x in advance.
thanks a bunch,kowalsky
OK, what is the problem here?
I do a gridview code that when displaying the information that come from the database is not showing any error at all, but is not displaying the right picture.
The problem, I think, is that the (Eval("....") is not reading the values that are coming from the DataKeysNames. Due to this the right pictures are not displayed. But in another column, just for testing purposes I was able to display the values from DataKeysNames with the Eval. So I do not know what is going on and to make worse browser is not giving me any error.
So, this is the line that is not processing, reading or executing well:
ImageUrl='<%# IIF( (Eval("TUDTIWasItemUpgraded")) = "Yes", string.Format("~/Images/ItemUpgradedTo.gif"), string.Format("~/Images/ItemNoUpgradedYet.gif") ) %>'
And this is the complete code for the GridView
When my users run a search against a site with a bunch of document libraries they will often search for terms that are in the title of the doc, if they do know the title they will put that in. What I would like to do is have the results ordered
such that if any hits are on the document metadata (eg Title) then they are presented first and any results that are from hits on the content of the documents are presented later.
So, if they get the title spot on in their search query that document will appear first .... if they don't get it right then the likelyhood is that the title is something like what they entered so similar titled docs are presented first and then those
with matching content ....
How can I achieve this?
I configured a FileShare content source, the crawl about this source works very fine, but when a end user perform a search on it ,he can show into the search result files that are no access on the file server, but when he click on it of course he received
an access is denied.
How I can filter the search result about FileShare content source to see only files with authorized access?
Thank you for your help,
Hi,I just created a custom field type to show all the users of the site.
public class UserFieldControl : BaseFieldControl
protected DropDownList ddlUsers;
protected override string DefaultTemplateName
public override object Value
this.ddlUsers.SelectedValue = (string)this.ItemFieldValue;
protected override void CreateChildControls()
if (this.Field == null || this.ControlMode == SPControlMode.Display)
this.ddlUsers = (DropDownList)TemplateContainer.FindControl("ddlUsers");
if (ddlUsers == null)
throw new Exception("Error: cannot load .ascs file");
SPSite siteCollection = new SPSite(SPContext.GetContext(System.Web.HttpContext.Current).Site.Url);
SPWeb site = siteCollection.OpenWeb()