|
yes. for example when you have two drop downs for country, and cities in that country, you can populate city drop down on the change of country drop down etc. I personally do not use it because it can be a bit annoying as user can mistakenly chose wrong option and then have to wait for reload, a better option will be to give addition button for post back.
Regards
Shajeel
|
|
|
|
|
Thanks mate,any tips on how fast i can grasp asp.net?
will be greatful for any other assistance offered.
cheers
Waskira
|
|
|
|
|
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
' Dim GridView1 As New GridView
Dim Login As Businesslayer.Users = New Businesslayer.Users
'Check for empty date fields and give usera message
Dim str As String = " SELECT Rejected, Total_Hours, Category, Bill, Description, Hours, Date, Occupation, Project_Manager, Project_Member, Client_Site, Project_Name, Id_Number FROM Timesheet " & _
"WHERE (Date >= CONVERT(DATETIME, " & txtSDate.Text & " ))" & _
" AND (Date <= CONVERT(DATETIME," & txtEDate.Text & ")) ORDER BY Date "
Dim bLayer As New Businesslayer.GlobalFunctions
Dim reader As Data.SqlClient.SqlDataReader = bLayer.returnRecords(str)
'Test for record count > 0, give message to user for 0 records.
If reader.HasRows Then
Session("Client_site") = reader("ClientSite")
Session("Project_Name") = reader("ProjectName")
Session("Date1") = reader("SDate")
Session("Date1") = reader("EDate")
Response.Redirect("ViewTimesheet.aspx")
Response.End()
Else
UserMsgBox("Please select the Start Date and End Date")
End If
End Sub
*************
I want this button to display the gridview on the other page after the user select the starting date and Ending on to different calenders(according to the selected dates).
oga m
|
|
|
|
|
The same manner you are assigning the value to session object, you can read the value from the session object and you can populate the grid.
But in your question you are asking, "I want this button to display the gridview on the other page".
What do you mean here?
Regards
R.Arockiapathinathan
|
|
|
|
|
I have disabled my session statement,but it still giving me the same problem.
And when I say select all it diplay all the information inside the table in the gridview on the nextpage
oga m
|
|
|
|
|
Will You please explain in detail about Garbage Collection Process
|
|
|
|
|
Garbage Collection Process take a look
[^]
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Excellent response. I'm astounded by the number of questions that can be 'answered' by a simple Google search.
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Hi Vikram
I know it was not proper answer but many times users post the query without searching they should first try to get from web then after reading if they have any doubt then they should post the query in the Forum.
What you think ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Warnings-Errors wrote: they should first try to get from web then after reading if they have any doubt then they should post the query in the Forum.
Absolutely. Which is why I agreed in the first place.
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
i want to make a netcafe software.For this i need coding how i hide the desktop and task bar
suhail
|
|
|
|
|
And what does this have to do with ASP.NET? Posting it in the correct forum is more likely to get you answers.
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
hi guys i would like to ask how can i get the current loged in username
if i am using standard provider for the authentication
in asp.net2 2005 c# in the coding side
so i am think its suppos to be something like this
string current_loged_in_user_name = ____________;
(previous post got error) so i repost >.<
|
|
|
|
|
neodeaths wrote: standard provider
What does it mean ? If you are using Database then it is easy
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
i mean:
i log into my website which uses standard provider to do the authentication
is there a method to retrun the current loged in user name?
if there is pls do tell
thx
|
|
|
|
|
|
thx
it works
how you find the sysntex?
|
|
|
|
|
|
what is difference between session variable and state application variable
explain in detail
suhail
|
|
|
|
|
Taking some ones interview Please Take some help from your best friend Google
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
i have serach about this but i could not get good matirial about this.I request u to help me.
|
|
|
|
|
both are used for State Management
ASP.NET session state enables you to store and retrieve values for a user as the user navigates the different ASP.NET pages that make up a Web application
as HTTP is a stateless protocol But the life span is upto that session only .
Application state is a data repository available to all classes in an ASP.NET application. Application state is stored in memory on the server and is faster than storing and retrieving information in a database. Unlike session state, which is specific to a single user session, application state applies to all users and all sessions. Therefore, application state is a useful place to store small amounts of often-used data that does not change from one user to another. The topics in this section provide information on how application state works and how to use it.
e.g As you logged in Code Project by any user name , Your activities are in one session but at the same time you can see total number of Users Logged in that is Application variable
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Warnings-Errors wrote: can see total number of Users Logged in that is Application variable
Is this correct ?
|
|
|
|
|
Sorry its a grammer mistake But we can use Application variable as a count to store the number of users Logged in ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Hi all,
I have a formview from which I manage to insert the data in to the database.now I want to handle the System.ArgumentNull Exception.So please give some hints regarding the same.
P.S. I have Added code in ObjectDataSource_Inserted Method.
Thanks in Advance
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|