|
thanks for reply.
First time i have using skin file.i want to use many ui for single page. please if u have any example or link then please give me.
thanks
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
|
Hi All,
I need to Implement Remember Me functionality using ASP.NET 2.0. When I enter user name and password for the first time then windows ask me that whether u want to save this passowrd or not, but I dont want it in this way.
When check the checkbox of Remember Me on this Computer then it should be saved and next time when i press first letter of login name then it should display the list of all names starting with that first letter. When I select the user name it should automatically displays the password and when I clicked on login button tis should all the FormsAuthentication and redirect to valid page.
Please help me...
|
|
|
|
|
Use cookies to manage
I Love SQL
|
|
|
|
|
Thanks for replying.
I did that but Im not getting how to display list of user names visited the site from my machine or say how will I get the list of user names in the User name textbox??
Please help me...
|
|
|
|
|
You have to store the UserName in Cookie and when the request occure then you have to check the cookie for UserName is Exists then assign to textbox
Best Regards,
Chetan Patel
|
|
|
|
|
Thanks Chetan, it will be very greatful if u help me with some code also.
Thanks again.
|
|
|
|
|
this is the code i am using
BloodUnit.Number when i give enter in textbox the page getting posted
i dont know y this is happening ?
Any one Give me a Solution....
sathimailin
|
|
|
|
|
The code lines you have given is ok there is no problem in it can you give me whole code between tag
Best Regards,
Chetan Patel
|
|
|
|
|
Thanks for taking this issue.
sathimailin
sathimailin
|
|
|
|
|
Hi friends..
Can anyone give me the code to generate random numbers in javascript..?
Pls do the help at the earliest..
Thanks & Regards,
Balaguru
|
|
|
|
|
check the Math.random() funtion
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
hi,
i have a some datagrids in my web based application, and want to convert them to the new Telerik RadGrids.
Initially, i just changed the ID of the Telerik grid to the id of the old datagrid, but that gives me an error stating, that it cannot convert.
can anyone advise me on the subject
thanks
|
|
|
|
|
Hi all,
I am using Asp.net , C# Visual studio 2005.
I want to export data that contains images and textual data to word.
Please give me some useful link ……
Thank you.
imran khan
|
|
|
|
|
You have to use Graphics object to write to the .doc file it provides different method to write to word document.
Use following link
http://www.codeproject.com/aspnet/wordapplication.asp
Best Regards,
Chetan Patel
|
|
|
|
|
I am using AutoComplete control in AJAX. I have following method in my web service. But it is giving me following error
Cannot implicitly convert type 'string[]' to 'string'
[WebMethod]
public string FindEmails(string prefixText, int count)
{
ArrayList filteredList = new ArrayList();
String constr = System.Configuration.ConfigurationManager.ConnectionStrings["MySqlServer"].ConnectionString;
SqlConnection objConn = new SqlConnection(constr);
SqlCommand objCmd = new SqlCommand("SELECT Emails From t_Users", objConn);
SqlDataReader objRdr;
string[] str;
str = new string[12];
int x = 0;
int i = 0;
objConn.Open();
objRdr = objCmd.ExecuteReader();
while (objRdr.Read())
{
str[x] = Convert.ToString(objRdr.GetValue(i));
x = x + 1;
i = i + 1;
}
foreach (string name in str)
{
if (name.ToLower().StartsWith(prefixText.ToLower()))
filteredList.Add(name);
}
return (string[])filteredList.ToArray(typeof(string));
}
seema
|
|
|
|
|
method FindEmails have to return array string instead of only string
public string[] FindEmails(string prefixText, int count)<br />
{<br />
.<br />
.<br />
.<br />
.<br />
}<br />
I Love SQL
|
|
|
|
|
Hello,
I work in a mutinational company that allocates http://myCompany/myCountry/.... for my web applications.
I develop an ASP.NET 2.0 app that works OK when run at http://myHost/myApp but when moved to the company's server (http://myCompany/myCountry/myApp) it fails to load some ASP.NET javascripts that the framework needs.
I'm talking about the javascript framework code that performs postbacks, event validation, etc. So the page doesn't work.
Looking inside the generated HTML, I find scripts references to
<script src="/MyApp/WebResource.axd?d=cgvtpYkUMiZVT5qyFbc_EA2&t=633167444770355332" type="text/javascript"></script><br />
So the browser, to load this javascript from ther server, prepends ONLY the hostname to the src value, and requests
http://myCompany/myApp/WebResource.axd?d=cgvtpYkUMiZVT5qyFbc_EA2&t=633167444770355332
instead of
http://myCompany/myCountry/myApp/WebResource.axd?d=cgvtpYkUMiZVT5qyFbc_EA2&t=633167444770355332
Everything would work (both in my computer and in the company host) if the reference were relative:
<script src="WebResource.axd?d=cgvtpYkUMiZVT5qyFbc_EA2&t=633167444770355332" type="text/javascript"></script><br />
But I don't know the way to modify the output code that ClientScriptManager class generates. For example, if I would know under which type / key this script is generated, I could be able to register another Script include for that type / key in the ClientScriptManager, overriding the first one. But I don't know how to find it. I cannot debug into the class (or I don't know how to do it)
Anybody can help me ?
Thanks in advance
Carlos
|
|
|
|
|
I'm designing like a shopping cart and have a product list which is an xml file consisting of products and prices which is loaded into a dataset then bound to a datagrid
There are buttons next to each product by clicking one of these should direct the user to another form showing the choice of product and price in textboxes.
I can load 1 selection like the example in the code below for Jam Doughnut fine into the textboxes on the 2nd form but can't load any others depending on the selection, the rest of my code is below
1st form code
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Set the path of XML file and schema
Dim strPath As String = Server.MapPath(".")
' Declare a dataset
Dim dsProducts As New DataSet
' Apply the XML schema to the dataset
dsProducts.ReadXmlSchema(strPath & "\Products.xsd")
' Read the XML into the data set
dsProducts.ReadXml(strPath & "\Products.xml")
DataGrid1.DataSource = dsProducts
DataGrid1.DataBind()
End Sub
Private Sub btnJam_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnJam.Click
Session.Item("Product1") = JamDoughnut
Session.Item("Price1") = 0.40
Server.Transfer("order.aspx")
2nd form code so far in load event procedure
txtdescription.text = "Product1"
txtprice.text = "Price1"
Any advice would be appreciated
Thanks in advance
Simon
SIMON GOUGH
|
|
|
|
|
First piece of advice. Check how you are holding your session variables. If you are using In Process, this limits your application to single processor single servers.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I'm trying to use session.item to do this, I'm relatively new to ASP.Net so just need some advice on how to go about loading the session variables depending on the selection made on the first form
Thanks
SIMON GOUGH
|
|
|
|
|
txtdescription.text = Session["Product1"].toString();
txtprice.text = Session["Price1"].toString();
Best Regards,
Chetan Patel
|
|
|
|
|
Chetan many thanks for your help
That works in terms of loading 1 value but I have 5 buttons, depending on which one is clicked should load the relevant info in the textboxes on the 2nd form, I will have to create session variables for all these, do I have to use a select case to get this to work, any advice would be appreciated
Thanks again
SIMON GOUGH
|
|
|
|
|
helo all...,
i have make register and display in formview(insert mode) with usesqlsource1. when customer register a same userid, the error is
"Violation of PRIMARY KEY constraint 'PK_user'. Cannot insert duplicate key in object 'dbo.user'.
The statement has been terminated."
now i want to change that error, i put a errorlabel. i want errorlabel show "sorry, your id has been use.please use other id."
my code is:
Protected Sub SqlDataSource1_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Inserted
Dim label As Label = Me.FormView1.FindControl("label1")
If Not e.Exception Is Nothing Then
label.Text = "sorry, your id has been use.please use other id."
e.ExceptionHandled = True
End If
End Sub
the label is not show anything when i insert two same userid..
which is wrong?
plss.. help...
|
|
|
|
|
1. be sure that you can find control named label1 in FormView1
2. be sure label1 is visible = true (if exists in FormView1)
I Love SQL
|
|
|
|