|
Well, I would recommend you to put a breakpoint on the code, and see what exactly is happening there. Is it actually called correctly, does it connect to the Database, does it runs the Command correctly.
Just put a breakpoint, and run it line by line, and inspect each of the lines minutely to debug the application.
|
|
|
|
|
As btnShowRec_Click should always trigger on postback, its useless to put
if(!IsPostBack) over here.
remove your if(!IsPostBack) condition then your code will execute.
|
|
|
|
|
i removed that bt still it is not showing records. in fact in drop down menu categories can be seen dat means, it is getting records from database dn why it is not showing on click event. ???
|
|
|
|
|
As Abhishek suggested, put the breakpoint and try to find out which line of your code is creating problem.
|
|
|
|
|
Trying to protect a web service by reading a client certificate in order to validate the client but all of the articles I've Googled are connecting to a web service with a client certificate.
Does anyone know of an article or book that has an example of creating a web service that verifies a client certificate and denies all non-validated requests?
|
|
|
|
|
In IIS enable accept client-side certificates. You can then map the certificates to Windows logins through IIS and use Windows Role Based Security.
In II6 click the properties for your web service, click directory security, in secure communications click edit, check enable client certificate mapping, click edit, map users.
|
|
|
|
|
Have IIS configured and calling the web service with the following code:
string cert_path = @"C:\cert.cer";
web_service.ClientCertificates.Add(X509Certificate.CreateFromCertFile(cert_path));
How do I verify that the client certificate sent is valid on the web service?
|
|
|
|
|
|
|
I am using a client certificate that was provided by a well known CA. Even when trying to access the site with IE (with the client certificate installed in the Other tab) I get the 403 error, requires client certificate.
|
|
|
|
|
hi freds..
I am facing an issue in gridview control(asp.Net,c#), see below code panel
<asp:TemplateField HeaderText="Action">
<ItemTemplate>
<asp:ImageButton ID="imgLiveTest" CommandName="<%#DataBinder.Eval(Container.DataItem,"type")%>"
ImageUrl='<%# GetImageTestLive(DataBinder.Eval(Container.DataItem,"liveServer")) %>'
OnClick="imgLiveTest_click" runat="server" />
<asp:ImageButton ID="Edit" CommandName="<%#DataBinder.Eval(Container.DataItem,"type")%>"
OnClick="Edit_click" ImageUrl="images/edit.gif" runat="server" />
<asp:ImageButton ID="Delete" CommandName="<%#DataBinder.Eval(Container.DataItem,"type")%>"
OnClick="delete_click" ImageUrl="images/cancel.gif" runat="server" />
</ItemTemplate>
</asp:TemplateField>
But I am not able to to see image in gridview, where as path is correct, and in source code ImageButton not renderd as html code they are same as aspx.
Thanks,
Abbas
|
|
|
|
|
Just right click on the image control (which is rendered as no image) and see if the path that its src has can be accessible by directly putting in the browser.
You need to have access previledge to a path from the client to see the image.
Also why do you use :
ImageUrl='<%# GetImageTestLive(DataBinder.Eval(Container.DataItem,"liveServer")) %>'
single quote here while using double quote for all others.
|
|
|
|
|
hi Abhi thanks for answer, actually i was using image path according function returns value, but now we using RowCreated event thats working fine.
Thanks,
|
|
|
|
|
Oh this is great to hear that it solved.
Cheers
|
|
|
|
|
I have a Ajax tab control that is working fine in Internet Explorer but not working in Mozilla.
Tab control is resides in a user control, calling on a *.aspx page.
My page have Two panels .
1) Tab control User control in one Panel.
2) On clicking of Tab control functionality perform on another Panel on the same page.
Please, Provide me solution for that.
nikki
|
|
|
|
|
|
Hi there,
How can i search a text file to see if it contain an image, and desplay the image
Thanx
|
|
|
|
|
As a file is just a collection of data, and an image is just a collection of data how would you know if any data is an image? Bob
Ashfield Consultants Ltd
|
|
|
|
|
i have a text file,n in it I used the to load the image from the folder, because i use 1 web page to load the part of the texfiles, using parameters.
on the same web page i have a link which display the full text file in another web page, in which i dnt want the picture to display only the text.
|
|
|
|
|
You can Search for "<img" tag using regular expression:
<img[^<>]+>
|
|
|
|
|
Well thats rather different from what you first asked about. In this case, you can use a regular expression to find the img tag, or split the string in various ways. Bob
Ashfield Consultants Ltd
|
|
|
|
|
how do i do it, i hv the idea but dnt knw hw to put it in code
Thanx
|
|
|
|
|
Well, have you used the tried and trusted method of MSDN or Google? I am not in the business of writing free code, I have told you the method(s) you can use, its up to you to make an effort and research them. Both regular expressions and string manipulation are pretty basic subjects, if you want to be a developer you need to learn to think for yourself.
If you have a specific problem, post the code and error message and someone will help you.
Also, please use all the keys, don't write in text speak, its just plain stupid.Bob
Ashfield Consultants Ltd
|
|
|
|
|
If u dnt want to help dnt respond there r so many ppl willing to help, keep ur knowledge really, i mean why bother.
Thanx anyway(for nothing)
|
|
|
|
|
I assumed that by telling you which methods to use I was helping. If this is your attitude then I will not bother helping any further, you ungrateful b*gger.
My point about text speak is simple really. Many people who use Code Project do not have English as their first language, and its often hard enough to figure out what they mean when they use full words without havng to try and guess what word they meant from 2 or 3 letters.Bob
Ashfield Consultants Ltd
|
|
|
|