|
Ok Olivier, this is how you can open your pop-up from a GridView, and pass data bound parameter to the pop-up. In your .aspx source, paste the following templated column:
<asp:TemplateField HeaderText="Click on Url to open new window" SortExpression="COLUMN_1">
<ItemTemplate>
<asp:HyperLink ID="yourHyperLink" runat="server" NavigateUrl='<%# Eval("EVENT_ID", "~/yourPath/yourPopUp.aspx?yourSessionVariable={0}") %>'Target="_blank" Text='<%# Bind("COLUMN_1") %>'></asp:HyperLink>
</ItemTemplate>
<HeaderStyle Width="180px" />
</asp:TemplateField>
Note that yourSessionVariable={0} will send the value of the FIRST column to your target page. Now, in your pop-up you will have to first get Request.QueryString["yourSessionVariable"], do type casting as you see necessary. But, you are now sending data via GET method which is not exactly safe
You can play around with all the options that you have, and see what works best!
Nila
"...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea
|
|
|
|
|
Here are a set of rules to be a good member. Other members will love you for it:
1. Don't use a descriptive heading to your message/question. Something like "NEED HELP" or "URGENT" should be good enough.
2. Don't ask a specific question. Questions like "How to make a webpage" is fine.
3. Don't try to solve the problem yourself. Many here will do your work for you. Just ask for source code.
4. If/when you get your answer, NEVER say "Thank you" or respond in any way to the person that helped you solve your problem.
Keep these rules in mind, and you will be embraced by this community, and you will become a valued member
|
|
|
|
|
|
Guffa wrote: 6. Use as many smilies as possible to show what you mean.
doh!!! Guilty as charged
|
|
|
|
|
|
How to make my web user control take the dimensions of tablecell...
///
<uc1:endmenucontrol id="EndMenuControl1" runat="server">
////
|
|
|
|
|
Does width="100%" height="100%" not work? or perhaps height="292px" width="200px"?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
How to create a table with browser page dimensions..
Best Regards
|
|
|
|
|
See reply above
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi,
I want a web page (aspx) needs to be active even user doesn't touch anything more than 20 Minutes, basically how to make a web page active for long hours?
Ram
|
|
|
|
|
Change the session timeout in the web.config.
<system.web>
<sessionstate mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="60">
Specifies the number of minutes a session can be idle before it is abandoned. The default is 20.
|
|
|
|
|
use javascript, search google for javascript timer and when time passed just submit form back to server
Pilo
|
|
|
|
|
Hows it is possible to tell when rows in SQL database have been updated by the update command?
My page does need to know if the row is now renewed with the data, and how many rows was updated.
Your help is needs must.
|
|
|
|
|
|
I read this but it does not make clear to me.
|
|
|
|
|
If you are using 2.0 look at SqlDependency or SqlCacheDependency
only two letters away from being an asset
|
|
|
|
|
Perhaps i not make myself clear.
I code the SqlConnection with Update command manually and update the record. Inot use any DataSet or others. When i run Update it update the informations.
This is good.
But how do i see how many rows records have been updated?
Please your help for i read the dependencies infos but not mean anything to me. This is not right for my problem i think.
Thank
|
|
|
|
|
ExecuteNonQuery
"For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command. For all other types of statements, the return value is -1."
only two letters away from being an asset
|
|
|
|
|
Many Thank For Answer.
My question is how do i find this information to make us of please?
I know not how i get this return value from Insert statement.
|
|
|
|
|
marconi Flangepants wrote: how do i find this information
Microsoft is very clever, they keep this stuff hidden very securely on a public site called MSDN[^]. Perhaps you've heard it mentioned a few million times in these forums.
only two letters away from being an asset
|
|
|
|
|
Is my question make angry?
Sorry that my brain does not knows these things yet.
|
|
|
|
|
I don't see a problem... I suppose you use SqlCommand to run your UPDATE statement, right? And SqlCommand.ExecuteNonQuery method returns you number of affected rows...
Or do I not understand what you mean?
Pilo
|
|
|
|
|
Yes,
I do like this
<code>SqlConnection6.ConnectionString = "connstring goes here";
string sql = "update string goes here";
SqlCommand cmd = new SqlCommand(sql, SqlConnection6);
SqlConnection6.Open();
cmd.ExecuteNonQuery();
SqlConnection6.Close();</code>
So how from this must i get number of rows please?
|
|
|
|
|
int rowsAffected = cmd.ExecuteNonQuery();
we call it return value
Pilo
|
|
|
|
|
Hi,
I would like to ask you what is the best way to localize applications in .NET 2.0 and
how Microsoft do it in Vista?
Wojtek
|
|
|
|