|
Hi,
I am beginner to ASP.Net.
I just learned Application[] class and session[] class. My question is which one is better? And where i have to use application[] object and where i have to use session[].
I have one more doubt:
I have two asp pages,
Page 1: take the choice from the user where i have three check boxes.
check 1. person names start with 's'
check 2. person names starts with 'a'
check 3. person name starts with 'g'.
So page one is contains above three check boxes. When user selects check box and submitted, it goes to second page where i have to write code for get the values from data base based on check boxes user selected.
For this kind of problem can i use Application[]. Or any other method to write solution for this.....
Thanks in advance .....To invent something, you need a mountain of junk in your mind.
---------------------Thomas alva edison
|
|
|
|
|
<blockquote class="FQ"><div class="FQA">sampath-padamatinti wrote:</div>where i have to write code for get the values from data base based on check boxes</blockquote>
then Redirect to 2nd page use query string for id of check box...
get the values from db by using the id of check box from 1st page
|
|
|
|
|
Application is Shared among all the users so if you want to seperate the storage for each user use Session
Ex.// If you want to get Count of All Users then use Application
And if you have to store UserName then use SessionBest Regards,
Chetan Patel
|
|
|
|
|
you can use Session object to passing parameter among pages.
if you want to share this info for all users in your application, the Application is the choice.
|
|
|
|
|
Hello friends,
I want to develop the drag and drop functionality in my web application
I found better solution to implement using webparts. But i have one issues, the drag highlight style is not looking good while drag and drop from Zone1 to Zone2.
I want to change the drag highlight style.
How to change the drag highlight style while drag and drop
using webparts?
Thanks in Advance.damodharan
|
|
|
|
|
hi all
I have problem regarding Forms Authentication .
it's working fine in IE browser but it does not work in mozilla firefox ...
In IE, when i click on LOGOUT button, it does log out ..and when i click on "back" button of IE browser , it doesn't redirect back to logged in form .instead it remains on "login.aspx" page....this doesn't work in firefox.
what could be the error???..plz help
|
|
|
|
|
Did you think no one would notice you posting the same question as two different users? I know the language. I've read a book. - _Madmatt
|
|
|
|
|
dude if u dnt know the answer then keep ur mouth shut
|
|
|
|
|
hi all
I have problem regarding Forms Authentication .
it's working fine in IE browser but it does not work in mozilla firefox ...
In IE, when i click on LOGOUT button, it does log out ..and when i click on "back" button of IE browser , it doesn't redirect back to logged in form .instead it remains on "login.aspx" page....this doesn't work in firefox.
what could be the error???..plz help
|
|
|
|
|
|
Dude, learn how to speak and type before answering. Text speak is for children not professionals. Understood
<hr />I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi there,
I'm using ASP.NET to send newsletter to some email addresses. the news letter is an html file with an image in its background. but the image cannot be displayed in Outlook 2003,2007.
Is it completely impossible to displaythe background in Office Outlook?
if not, what's the solution?
|
|
|
|
|
Outlook displays these images fine. However any end user can set outlook to not display images by default. Personaly I never want to see a background image in an email. It reduces readability and increases the size of the email. But each to their own.
However, I suspect your problem is on the sending end rather than the receiving end. The image must be properly embedded in the email, and I am not sure that .Net does that particularily well natively. I have had no end of trouble generating emails from word mail merges and having the images lost on the way through.
|
|
|
|
|
hi, i am new in asp.net
i want to create webservice which used as an intermediate between webportal and real system.
means online bookings which are done through my client's webportal i want to check that user's id in my system and if he is new then ask him for registration if he is older user then check his id and password in my system's database and do the remaining transaction for that i want to create the webservice which is used to intermediate media between client's web portal and my system..
how can do that, will please explain me.... please i am new so didnt know how can i do????
|
|
|
|
|
i teach u dotnet , u teach me English
my msn : fly1126@live.cn
|
|
|
|
|
How row index of a gridview is call onRowClickEvent in javascript?
Also provide some code plz...........
|
|
|
|
|
you have to code in row click event of the grid view
code is
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onClick", "alert("+ e.Row.RowIndex +")");
}
}
|
|
|
|
|
i hav 2 grid s in javascript i hav 2 move s4lected row from one grid to another thru btn
when i clik selected row it gives me index but when i move the selected row to gv2 after cliking movebtn it also gives me index.
but how 2nd time index is move?
i am little confuzed
i hav to call row index on grid's onRowClick event.
how all of this scenario is called ?
|
|
|
|
|
HI
how to convert decimal to INR currency in asp.net C#.
like-
28999345 into 2,89,99,345
thanksYou get the best out of others when you give the best of yourself.
|
|
|
|
|
You could try something along the lines of this:
CultureInfo culture = new CultureInfo("en-US", true);
substituting the code for the Indian culture (you can look that up) for 'en-US' and then apply that to however you are displaying or using the number.Tychotics: take us back to the moon
"Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars."
H. G. Wells
|
|
|
|
|
Hi
will you tell me the code for writing checkbox within gridview whether it is check or uncheckable.
|
|
|
|
|
CheckBox Chk1 = new CheckBox();
for(int i=0; GridViewName.Rows.Count; i++)
{
Chk1 = (CheckBox)GridViewName.Rows[i].FindControl("checkboxname");
if (Chk1.Checked == true)
{
///operation which you want to perform
}
}Life Is Beautiful
|
|
|
|
|
use
<asp:TemplateField>
<HeaderTemplate>
<asp:CheckBox ID="cbSelectAll" runat="server" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
</ItemTemplate>
</asp:TemplateField>
|
|
|
|
|
did you try any thing?? first google their lots of articles about that..
|
|
|
|
|
Hi
Url rewriting not working on live server in asp.net but locally working fine.
but locally it's not case sensitive.
thanksYou get the best out of others when you give the best of yourself.
|
|
|
|