|
sneha Choudhary wrote: Actually I am having a gridview. Below the gridview I have two buttons "update" and "delete".
Two records cannot be updated simuntaneously thats why I want to restrict the user from multiple selection.
Two records can be deleted simuntaneously thats why I want to go with the checkboxes.
Then how will you know that what user want?
As per your description, you can select multiple check box and then click delete. It will delete all selected records and for update check box will work as option button.
But is there any way to identify the mode of user operation?
You can give some Dropdown list [ Similar like Yahoo inbox [ Copy | Move etc ] ] and set value as Delete | Update. When user select Delete on dropdown you just allow multiple selection and other wise allow single selection.
And what ever you do, try to all checking using JavaScript, which will decrease unnecessary server hit.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
sneha Choudhary wrote: Two records cannot be updated simuntaneously thats why I want to restrict the user from multiple selection.
If multiple records can't be updated simultaneously, what is the point in putting the update button there? Move it to a new page.
|
|
|
|
|
Hi Sneha,
Did u get solution for your problem,If not check this.
In the Code Behind by making a loop for each row in a grid, if checkbox is checked, then there itself you can update or delete that particular record with the identifier of that particular row. By this we can even update or delete more than One records of the grid.Check this once .If anything reqd,do reply me.
Regards,
Sundeep G
|
|
|
|
|
Hi,
i want to get an alert while clicking the button, so that i am using page.registerclientscriptblock()
The code looks like
private void BuildClientRecipientValidation()
{
string ValidationMessage = @"<script>
function GeneratingErrorMessage()
{
alert('Please Enter UserName');
}
</script>
";
Page.RegisterClientScriptBlock("ABC", ValidationMessage);
// throw new Exception("The method or operation is not implemented.");
}
but i am not able to get the click event.
any solution please let me know.
|
|
|
|
|
Hi,
Please clear yr problem.
1. If u simple want an alert in java script the u can call java script function on "OnClientClick" of button.
2. Now if u want alert message after doing certain functionality on code hind , means after excuation of some c# code then there is another way . The way u r trying
So please clear
Regards
Anil Pal
|
|
|
|
|
hello,
i have a problem with my asp.net application.
Description of the bug:
while i am attending to create a directory or a file in my server, i use the Filedirectory /Directory but the problem is some times while i put \\\\ it is not understanded by the framework and sometimes \\ is also not recognized.
Do something exist like a standard to avoid this kind of problem
regards
dghdfghdfghdfghdgh
|
|
|
|
|
ellllllllie wrote: some times while i put \\\\ it is not understanded by the framework and sometimes \\ is also not recognized.
what do you meant it does not recognize?
try
string folder = @"c:\my documents\special folder\projects\test1";<br />
string file = @"c:\folder name\files\file.xml";
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
i have
a remote dir.
so i have to use : \\server\directory
some time i put \\server\dir
sometimes : \\\\server\\dir
is there something commun or standard for this useage?
regards
dghdfghdfghdfghdgh
|
|
|
|
|
Hi,
if your directory is a folder that exists within your server folder,then there is a option for that.
Server.MapPath("FolderName/")
This detects the folder that your searching for.Check this Once
regards,
Sundeep G
|
|
|
|
|
Hi all,
I am new in using ajax.
I going to change pop-ups to modal pop-up using ajaxToolkit:ModalPopupExtender.
In my exisiting application i'm calling aspx page as an pop-up.
As far as I search through net, we need to write pop-up content inside <asp:panel xmlns:asp="#unknown">.
But I don't want to do that. I want to call aspx page only using ajaxToolkit:ModalPopupExtender.
Is this possible. If yes can I get example.
If not any alternative? or can I call aspx page in <asp:panel>
Please help me.
Waiting for reply.
Thanks in advance
|
|
|
|
|
You canot call another page in panel.Instead of that you can use iframe.
|
|
|
|
|
put it one iframe inside your panel..and give src your aspx page..
i think you will get that...
|
|
|
|
|
Hi,
i want to change the default values form an CreateUserWizard, ich want to change the password length and the RegExp... in asp.net 3.5
This dosent work
configuration
system.web
membership defaultprovider="AppMembershipProvider"
providers>
add name="AppMembershipProvider" applicationname="MeinApp" connectionstringname="membershipConnectionString" requiresquestionandanswer="false" requiresuniqueemail="false" minrequirednonalphanumericcharacters="0" minrequiredpasswordlength="3" type="System.Web.Security.SqlMembershipProvider"
providers
system.web
configuration
==
Warning 3 The element 'system.web' has invalid child element 'providers'. List of possible elements expected: 'anonymousIdentification, authentication, authorization, browserCaps, clientTarget, compilation, customErrors, deployment, deviceFilters, globalization, healthMonitoring, hostingEnvironment, httpCookies, httpHandlers, httpModules, httpRuntime, identity, machineKey, membership, mobileControls, pages, processModel, profile, roleManager, securityPolicy, sessionPageState, sessionState, siteMap, trace, trust, urlMappings, webControls, webParts, webServices, xhtmlConformance, caching'. C:\Dokumente und Einstellungen\Benny\Eigene Dateien\Visual Studio 2008\Projects\xxx\xxx\Web.config 35 10
THANX!!!
|
|
|
|
|
Hi,
I want to display data from db in 3 columns ;
eg:
Name:XX Name:XXXX
Age :XX Age :XX
Where Name & Age are the two fields in the db.
Plz help.
|
|
|
|
|
where you want to display elaborate your question...
Government Dyal Singh College Lahore.
|
|
|
|
|
|
Hi,
I want to display data from db in 3 columns on the asp.net webform:
|
|
|
|
|
Hi,
So where is yr problem.
R u trying to say that. U have only two columns in DB and u want to display in three column.
Please explain.
Regards
Anil Pal
|
|
|
|
|
What do you want exactly...
|
|
|
|
|
I am developing a webapp and my page is lacking space for listing details,so inorder to save space i have to display data from the db Horizontally instead of vertical alignment.
|
|
|
|
|
You can do that very easily
You have to first spilt the data sourse into two equivalent part
and then you can use two gridview or any data control to display
data using two different data source...
I hope this will definetly work..
If you have any doubt here you can simply mail me
vinod8812@gmail.com
Thank You
Vinod Kr.
Software Engineer
EBC Publishing Lucknow
|
|
|
|
|
hey guys
i have this Exception when i try to call web methos in remote biz-talk server
i can work for a few hours\days but this exception start appering when there is alot of work around this biz-talk
i searched the web and found this article
http://msdn.microsoft.com/en-us/library/aa560610.aspx
is there any this alse to do agains it ?
i dont want to mess with this registry things.. Confused
can i add somthig to my web.config file to avoid this exceptions ?
please help me im desperate
i tried this code but no luck for some reason
protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri);
webRequest.KeepAlive = false;
webRequest.ProtocolVersion = System.Net.HttpVersion.Version10;
return webRequest;
}
P.S
here is the Exception Details:
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted xxx.xxx.xxx.xx:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Bezecom.Logic.BezeqWebService.Callware.getUserDetails(String extension, String password) at Bezecom.Logic.BusinessLogicLayer.Managers.BezeqWSManager.GetUserDetails(String Extension, String Password)
|
|
|
|
|
Hi,
R u working behind the proxy server?
Regards
Anil Pal
|
|
|
|
|
what do you mean ?
im working with webservice object
i added a web reference to class lib that i created and i use this class lib in my web site
to problem seems to be overflow of TCP TIME_WAIT connection as the OS define them to be opened for 240 sec by default.
|
|
|
|
|
Hi i want some forms from project to be copied to my new project. How to achieve it? Can anyone help?
|
|
|
|