Select Categories Below
Advertisement
Start Your Own Q&A Site
Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.
Status: Open Points: 75 Time: 21:00 - Aug 27, 2007
Devan Madhusudanv
Hi If I have webpage named it CUST.ASPX being accessed by two events from SEARCH.ASPX, how CUST.ASPX be able to direct to the correct process in their page_load event: CUST.ASPX Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load UnlockTextBoxes() If Not IsPostBack Then If blntrigger(Session("trigger") = ddlAProc.SelectedItem) Then InitializeForm() strSQL = "CALL A" strParamStr = Trim(Session("A").ToString) objDatAccess = New clsDATACCESS(strSQL, CommandType.StoredProcedure, strParamStr, "@DESC", SqlDbType.VarChar) dtsCust = objDatAccess.getData Session("DataA") = dtsCust.Tables(0) ElseIf blntrigger(Session("trigger") = ddlBProc.SelectedItem) Then strSQL = "Call B" strParamStr = Trim(Session("B").ToString) objDatAccess = New clsDATACCESS(strSQL, CommandType.StoredProcedure, strParamStr, "@DESC", SqlDbType.VarChar) dtsCust = objDatAccess.getData Session("DataB") = dtsCust.Tables(0) I tried using session variable as above:Session("trigger") = ddlAProc.SelectedItem and Session("trigger") = ddlBProc.SelectedItem) but doesnt seem to be workable. Thanks
Categories:
Add Categories
When adding more than one category, separate them with commas.
PeterNZ
Date:: Aug 29, 2007
Time:: 15:50
I am not sure what "If blntrigger(Session("trigger") = ddlAProc.SelectedItem) Then " does? What is "blntrigger()"? Why can't you do a "If (Session("trigger") = ddlAProc.SelectedItem) Then "? I suggest to debug and see if "Session("trigger") contains what you expect. Another way to pass information to another web page would be using Query String Parameters in your URL. For example you amend your URL like this "http://myserver.com/mypage.aspx?trigger=... and in your code you use "Request.Params("trigger")" and get the value. Hope this helps Cheers Peter
Time:: 21:00
Thanks Peter, Yup that blnTrigger does nothing here as the if then block works on boolean already. However could you let me know further to use that query string param in my URL. Cheers, Devan
admin
Date:: Mar 04, 2009
Time:: 09:56
The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points. The Quomon Team
Answer this Question
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Forgot Your Password?
Enter your email address below and we will resend your login information to you.
Login Information Sent
Questions
whats the best food to eat during midnight?
How to identify the tiffany jewelry? www.tffanycheapmall.com.
Send an email alert to each user of the php application based on criteria
How I Increased My AdSense Earnings?
how to choose the lady dress ?
How can I fulfill the minimum requirement to make your computer support 3D?
You have 100 characters to use
Rank
Expert
Points
1.
10354
2.
6493
3.
5596
4.
4848
5.
3487
6.
2840
7.
2770
8.
2303
9.
1820
10.
917
Register today to share your knowledge with the community and be recognized and rewarded for your contributions.
Register Here
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
Language Options
English:
Español:
Sponsors
Questions and Answers Software