|
I think that there is some problem while creating the application object and session object.
Application object is created for the application(only one) while session objects are created for ecah user separately, that keeps track of the user.
Deepak Nigam
|
|
|
|
|
hi Deepak,
Thanks for reply... can you please tell me how to create session object for each user separately?
or do u have any link for it?
Please reply.
Pravin
|
|
|
|
|
hi,
in the database..i have a field named username(in the table)..........
these values should be displayed in the textboxes(aspx page)......but i dont have the textboxes in aspx page(means i have not created statically)..but these textboxes should be created dynamically ....if the username has three fileds then 3 textboxes has to be generated with username values..
how can i do this ?
Ramesh
|
|
|
|
|
beklo.com/rameshgoudd wrote: .if the username has three fileds then 3 textboxes has to be generated with username values..
3 rows ?
|
|
|
|
|
|
Use a Gridview/DataGrid , put a TemplateColumn and add a TextBox there. Bind Gridview/DataGrid with data from the table. It will give you 3 TextBoxes(depends on no of rows returned).
|
|
|
|
|
take one gridview control and one textbox in ItemTemplte and bind with the dataset.
beSt ReGard
PathAn.
|
|
|
|
|
please give me the code for using checkboxes in dropdown list
its urgent! please help.
alok
|
|
|
|
|
alok2171 wrote: checkboxes in dropdown list
|
|
|
|
|
Well never tried coding it.
But yes..you can find something similar in AjaxToolkit.
Its PopUpControl. I guess its something similar you would like to have.
Hope it helps you
Cheers
Menon
|
|
|
|
|
this is available in C# 3.0 Windows template but i think this is not available with you.
You will have to create your own control by rendering it.
Google the subject you can also find third party controls that you can use
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi,
I have the below code in my code-behind file.
protected string ConvertPercent(object number)
{
if (number == DBNull.Value)
return "-";
else
return String.Format("{0:F}", number);
}
Currently only negative numbers having '-' sign.
How can i make positive numbers having '+' sign?
Thx....
|
|
|
|
|
try
private static string FormatMyNumber(object Number)
{
float myFloat;
if (!float.TryParse( Number.ToString() , out myFloat))
return "ERROR";
if (myFloat < 0)
return string.Format("{0:F}" , myFloat);
else
return string.Format("+{0:F}" , myFloat);
}
There are most probably better ways, but it's too early for me at the moment...
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
|
deepaknigam11 wrote: SqlConnection con;
string str= ConfigurationSettings.AppSetting["Coonectionstring"];
con=new SqlConnection(str);
This looks fine. Have you checked the spelling ? Try printing str and check what you are getting over there
|
|
|
|
|
it is the same code i have tried to connect with the database.
Deepak Nigam
|
|
|
|
|
deepaknigam11 wrote: string str= ConfigurationSettings.AppSetting["Coonectionstring"];
Is it really coonectionstring, or is it ConnectionString?? (double o vs double n)
-------------------------------------------
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Just bugger off and leave me alone!!
|
|
|
|
|
Sorry dear
there is no meaning of o or n.
bcoz it is just the name of variable that i have taken in the web.config like this..........
<configuration>
<appSettings>
<add key="CoonectionString"
value="server=localhost;database=Northwind;uid=sa;password=secret;" />
</appSettings>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Deepak Nigam
|
|
|
|
|
I want to implement treeview in my asp.net 1.0 web application. The data for that will come up from sql database. But in my installed .net version it is showing treeview tool in toolbox but disabled.
So what can I do. can any one give me sample code for it.
Thanks!
|
|
|
|
|
I have a table in Master file like this;
<table border="0" cellpadding="0" cellspacing="0" WIDTH=500 height=100%>
<tr>
<td colspan="2" WIDTH=500 height=100> TITLE </td>
</tr>
<tr>
<td WIDTH=20 valign="top">
<table>
<tr>
<td WIDTH=20 HEIGHT=10> row1 </td>
</tr>
<tr>
<td WIDTH=20 HEIGHT=10>row2</td>
</tr>
<tr>
<td WIDTH=20 HEIGHT=100%>row3</td>
</tr>
</table>
</td>
<td WIDTH=480 height=100% VALIGN=TOP> ContentPlaceHolder</td>
</tr>
</table>
Problem: I want to change row3 height dynamically. How? For example; Row1 height is 10 and Row2 height is 10 so total 20px. If ContentPlaceHolder height is 100 so Row3 hight must be 80px. How can I do?
Best Regards...
|
|
|
|
|
First of all, you'd do well to make your code XHTL. This means putting quotes on all your attributes. Better yet, use css instead. If you make your values reference code behind varables, then they can be calculated.
width="<%=Width%>"
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
I am new to asp.net and C# and I just want to know what application servers are out there. I know there is IIS but are there any others. Also how much does IIS cost? or is free?
|
|
|
|
|
steven3311 wrote: I am new to asp.net and C#
The most important tool you have for learning new languages is google.
There are other servers, but I'm not sure which ones work with ASP.NET. IIS is built into higher versions of Vista and XP. I don't believe it's possible to buy it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
Yes Google has been a big help for me throughout the years.
So IIS is an application server that is built into XP, Vista, and Win Server? I was just wondering if there was a price because i am trying to add up my production costs.
|
|
|
|
|
Correct. Not in XP Home and not in some of the lower end Vistas, but it's built in the XP Pro and the higher Vista's. It's with Windows Server, for sure.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|