|
Why not use session vars?
you can also change the hyperlinks to link buttons, then do your server.transfer there.
|
|
|
|
|
The true is that I pass ~20 parameters and I don't think that is a good idea to pass them through session vars.
You suggest to use the linkbutton.
Let me explain and simplify my problem,
I have a gridView with 2 columns: First column is an hyperlink of "item name" and the second column is the string containing "URL" for the first column. The second column is visible=false
The problem is that the URL string is very long and contain ~20 parameters. So when the user click on the link, we can see on the URL a long string, I would like to get the same action than I call to server.transfer.
Perhaps, you have got another idea.
Thanx
-- modified at 2:28 Friday 17th November, 2006
Eric H.
|
|
|
|
|
You can try something like this:
protected void GridView1_RowCreated(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
LinkButton lnkbtn = new LinkButton();
lnkbtn.Text = "Add New";
lnkbtn.CommandName = "Add";
e.Row.Cells(0).Controls.Add(lnkbtn);
}
}
and on the aspx page change the gridview declaration to:
< asp:gridview id="GridView1" runat="server" onrowcreated="GridView1_RowCreated" >
</ asp:gridview >
|
|
|
|
|
Thanx I will try this
Eric H.
|
|
|
|
|
Guys i created a site with Visual Studio 2k5 over windows Xp, one form must create a folder inside the site root folder, this task is sucessfull on developed site, but i fired up a error when the site is running over W2k3. Could you Help me?...
keep Learning and you never will be out of date...
|
|
|
|
|
|
I think so
All the user have all the permissions, i can delete an object (picture) but i cant write a new picture at the same place, the same case with folders.
I using the fileupload control and the command SaveAs..
Any suggest.
-- modified at 11:45 Thursday 16th November, 2006
keep Learning and you never will be out of date...
|
|
|
|
|
Sounds like a create permission problem on the server (if server is Win 2003 the user is NETWORK SERVICE by default). You also may want to set it to create one level down from you website's root. Something like "mywebsite/uploads" or something like that.
Right-click a folder where you want the account to have write permission, choose "Properties" and then Security tab, add the account into user account list, and then set proper permissions to the account.
You may also want to look at impersonation.
|
|
|
|
|
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|
|
I follow the Edboe suggest and finally, right now im creating folders over the server site, Thanks guys
keep Learning and you never will be out of date...
|
|
|
|
|
I have...
-formA (web form) it contains a listbox and pop up button
-formB (pop up window from formA) using window.showModalDialog in a javascript within a "script" tag in form A.aspx file, it contains two text boxes and submit button
what i want is to take two value of text boxes in formB
and use them to add a new list item (the first formB textbox value is the value of the list item and the second formB textbox value is the listitem's text) in formA listbox
how can i implement that?
Thanx in advance
Best Regards
3ala2
|
|
|
|
|
could i ask you why you do not want to use a session variable ??
whats wrong with this !!!!
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
because many things are related together, if u have read the details you would know ...
In other scenarios i might
first, it's not in one form, it's 2 forms parent and pop up
second, i want to access if from javascript
third, to get highest performance u need to reduce the sessions in ur app
hope u got me
Best Regards
3ala2
|
|
|
|
|
just3ala2 wrote: first, it's not in one form, it's 2 forms parent and pop up
so what?? the popup could be any page with.aspx
just3ala2 wrote: third, to get highest performance u need to reduce the sessions in ur app
they are just 2 variables !!!
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
can u reach the variable from both forms??!
and if u think like this, 2 variable * 1,000 user = 2,000 session opened with the server, that would exhaust the server
so what about 10,000 user
what would happen?
anyway, i implemented it by myself without using sessions
if u need the code tell
Best Regards
3ala2
|
|
|
|
|
Put the values in an array and assign the array to window.returnValue, then close the window. The array becomes the return value of the showModalDialog call.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
i have class in asp.net appication Like
Public Class AsyncTaskHandler
Implements IRequiresSessionState, IHttpAsyncHandler
Public Function BeginProcessRequest(ByVal context As HttpContext, ByVal cb As AsyncCallback, ByVal extraData As Object) As System.IAsyncResult
end function
end calass
when and how BeginProcessRequest is called
|
|
|
|
|
Hi,
I want to implement a DropDownList control in IE with the same features as the drop down lists seem to have in Mozilla. In IE I currently have a DropDownList of width 150px, but the text that is displayed in the drop down takes up more than 150px. I'd like to be able to have the list of choosable items to stretch to allow all text to be seen, but at the same time keeping the combo box itself to 150px width. This happens by default in Firefox, does anyone have any ideas how this is done in IE?
Thanks,
Stuart
|
|
|
|
|
how to avoid caching in show modal dialogue box?
sree
|
|
|
|
|
Hi,
In my website, I have used a Master Pages concept, wherein I have created a pop down menu in the master page and called various child pages in the Master's container.
One of the child pages have a following style applied at page level
<style type="text/css">
<!--
a:link{color:Blue;}
a:visited {color:Red;}
-->
</style>
Because of this whenever the user goes to this page, the Master page's menu Root options also change color to Red or Blue, depending on which was clicked earlier. When I saw the View Source of the whole page, it shows the menu rendered as Hyperlink.
How can we stop the menu options from changing colors ?
Pls help me.. Else I am gone
Omkar
|
|
|
|
|
Hi there..........
In ASP.NET 2003
I created one web page and i used inline codings in that with validation controls.
In local machine, it's working very fine. But if i uploaded in remote server, validation controls are not working....
So, i include this line in my page as :
</b>
and also i gave the specific location for the src in that. Now the validation working very fine, but the clicking event[ no other event ] can't generated.....
Please help me..........
Regards n Thanks n Advance
Sam.M
|
|
|
|
|
hello to everyone,
i want to upload only doc file.but i m unable to do dat.
can any body help me to solve dis problem.
thanx
rahul saini
|
|
|
|
|
Try using the FileUpload Control
and the command FileUpload1.PostedFile.SaveAs(SaveToAddress);
keep Learning and you never will be out of date...
|
|
|
|
|
a little comment:
you should check if a file was really sent before trying to save it
<br />
if(FileUpload1.PostedFile != null)<br />
{<br />
}<br />
have fun.
|
|
|
|
|
Dear Talkain,
thanx for ur comment, can u help me to sort out other problem.
please check my new post.
again thanx
rahul saini
|
|
|
|