|
|
Hello,
I am trying to build a master detail functionality...
At present, there is a web page i.e. page1.aspx with search functionality. When the criteria is entered then the search button can be clicked and then the GridView gets populated with data. In this GridView, a number of the fields of the selected row can be edited as per business requirement.
Now I would like the user to be able to see and edit more fields related to the selected row in the gridview. These are extra fields which are not viewable in the gridview.
Question:
Is it best to have another page i.e. page2.aspx to see and edit these extra fields or is it better to have these extra fields (One in each control) just below the gridview in page1.aspx ?
Thanks
|
|
|
|
|
If it is just few items, mostly single-line text / dropdown values then do it on the same page. If you need to edit more than one multi-line text then use page2.aspx
|
|
|
|
|
There are about 25 fields.
|
|
|
|
|
Then it would be best to do it on a 2nd page. You can consider using AJAX pop-ups instead of conventional postback or pop-up.
|
|
|
|
|
How will that work as opposed to be redirected to page1.aspx?
|
|
|
|
|
Based on my work experience, I understand that users generally don't like to open a new page just in order to edit some values pertaining to a single classification. In simpler words, users would be happy if they can view and edit the data on the same page instead of navigating to a different page and then coming back to results page.
So, if you can let them edit it on the same place nothing like it. Since, in this case the users have to edit close to 25 fields, the users wouldn't be happy to edit so many fields in-line. So, we have to either redirect them to a new page or show the edit page in a pop-up.
Any day naive users would be happy with pop-ups, but advance ones hate them and might have them disabled. So the safe option would be to use a AJAX modal pop-up extender and display the edit form in AJAX pop-up. Naive users would be happy and advance ones wouldn't complain.
|
|
|
|
|
The buttons are not able to get focus if we set tabindex on safari. While googling i
got few settings to be done in Safari browser. But this we can't tell the user to do.
So anyone please help me to do it through coding.
Thanks
|
|
|
|
|
i have upload a website which run fine but it upon show an error message which show that page cann't b displayed due to high trafic while there are only 3 user accessing the sites.
amirzada
|
|
|
|
|
I have some files listed on a listbox and want to upload them to the server. The values doesn't need to be selected. But I can't even get it working. Below is my source code:
Protected Sub uploadButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles uploadButton.Click
If (foundFilesList.Items.Count > 0) Then
Dim _fileUpload As New FileUpload()
For i As Integer = 0 To foundFilesList.Items.Count - 1
_fileUpload.SaveAs("~\InputFiles\" & foundFilesList.Items(i).ToString())
Next
messageLabel.Text = "The displayed files has been uploaded."
Else
messageLabel.Text = "No file path has been specified."
End If
End Sub
Where is the bug in the code above?
I appreciate you usual support.
Thanks.
|
|
|
|
|
The path "~\InputFiles\" & foundFilesList.Items(i).ToString()) would refer to the "application root\InputFiles" on the server. Why would you want to upload from the server to the server??
HTH!
|
|
|
|
|
Thanks Mani,
The path "~\InputFiles\" & foundFilesList.Items(i).ToString() is my server/application path where I want to save the files displayed on the listbox (foundFilesList ). Since the file names have been on the foundFilesList(listbox).
Do you understand what I am trying to do?
|
|
|
|
|
I'm afraid you cannot do it this way. The source file name is a readonly property on the file upload control and can be set only from the client. You cannot set it in server code and try and start the upload from the server.
Only the client browser has to initialize the upload.
|
|
|
|
|
Hi,
I have four textboxes in my web page. I want to apply required field validator such that atleast one of the text box value is required,it is mandatory to have value in any one of the four . how to validate that.
|
|
|
|
|
You can use requiredfiledvalidator property of textboxex.
Your name:
<asp:textbox runat="server" id="TextBox1">
<asp:requiredfieldvalidator runat="server" id="reqName" controltovalidate="TextBox1" errormessage="Please enter your name!">
<asp:button runat="server" id="btnSubmitForm" text="Ok">
Use the Textbox name as per ur project.
|
|
|
|
|
My requirement is that i need only one textbox out of four to be validated, it can be any textbox.
If i use required field validator for all textbox, it validates all four textboxes which is not my need.
It is sufficient to have value in any of these four
|
|
|
|
|
Take Foyr textbox on the page...
make one function "txtnull"
and copy the code...
------------------------------------------------------------------
protected void Button1_Click(object sender, EventArgs e)
{
txtnull();
if (n == 4)
{
Response.Write("alert('Atleast one')");
return;
}
}
int n = 0;
private void txtnull()
{
if (TextBox1.Text == "")
{
n++;
}
if (TextBox2.Text == "")
{
n++;
}
if (TextBox3.Text == "")
{
n++;
}
if (TextBox4.Text == "")
{
n++;
}
}
------------------------------------------------------------------
|
|
|
|
|
I think it is not possible for requiredfield validator to validate multiple controls.
Try with custom validator.
|
|
|
|
|
|
As sugested, use customvalidator and in the js function write your code to check your requirement.It can't be done through requiredfieldvalidator
Cheers!!
Brij
|
|
|
|
|
hi friends
<td style="background: url(http://localhost/images/main.jpg) no-repeat top left; width: 684px;>
In my html mail template,i have used above code for backround image,my problem is the backround image not display in gmail,yahoo,hotmail..etc
how can solve this?
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
saravanan05 wrote: td style="background: url(http://localhost/images/main.jpg)
The URL specified here would cause the browser to look for main.jpg on the client machine since localhost refers to 127.0.0.1 which is the self IP for all machines.
Change localhost to your Server.DomainName , if it is exposed over the internet or else host your images on a external host and refer it from there.
HTH!
|
|
|
|
|
hi thanks for reply
Already i tried in live server what you have mentioned(http://192.158.74.120/images/main.jpg)..but it is also not working...
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Are you able to view the images from outside your home/work network? Did you check if Gmail is not just preventing the image display??
|
|
|
|
|
yes,i can see from outside home
Known Is Drop.Unknown Is Ocean
|
|
|
|