|
Yes, network credential.
Like this:
service.ClientCredentials.Windows.ClientCredential = (NetworkCredential)System.Net.CredentialCache.DefaultCredentials;
but DefaultCredentials are null even though i have the following settings in web.config:
<authentication mode="Windows" />
<!-- Windows is used, Kerberos is configured as authprovider in sharepoint -->
<identity impersonate="true" />
<!-- Sharepoint is setting impersonate=true as default... -->
<authorization>
<deny users="?" />
<!-- Force authentication by denying anonymous users. Default: allow users="*" -->
</authorization>
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);
Morgonen är tröttmans mecka
|
|
|
|
|
Hi,
Ar u working behind the proxy server ?
1.If, No and to assgin empty credential
WebProxy _proxy = new WebProxy();
2. If yes then:
WebProxy _proxy = new WebProxy("http://192.168.10.5:8080",true);
NetowrkCredential nc = new NetworkCredential(username, password, domain);//if any
Then u can assign _proxy and nc object to respective property of your calling code.
Regards
Anil Pal
|
|
|
|
|
Hi,
I am having a gridview at runtime in which I add row or column on click action of add row and add column buttons.
however in the Postback event I am not able to retrieve the text box in the templated column.
Kindly provide any idea, what I need to do
Thanks and regards
|
|
|
|
|
Hi,
Could u please send your code n requirement?
Regards
Anil Pal
|
|
|
|
|
It's a viewstate issue. Which event are you using to create the GridView ? Read about the page lifecycle and viewstate management. ASP.NET will not maintain viewstate for controls created after viewstate events in the page life cycle.
|
|
|
|
|
I am using a linkbutton in a grid view in one of the forms in VB.Net. When i tried to click the linkbtn keeping the shift btn pressed i got the error: Microsoft JScript runtime error:: Object expected and when it went to __doPostBack('ctl00$ContentPlaceHolder1$gridview1$ctl04$lbtnSelect','')
any solution for this?
Thanks in advance.
|
|
|
|
|
Hi,
May i know why u want to keep shift button while click on link button?
Regards
Anil Pal
|
|
|
|
|
I was trying to open the page which i have referred through the link button in a new window. if i use the option by right clicking the link button and choose the option open in new window the same error occurs.
any solution?
Thanks in advance.
|
|
|
|
|
Hi,
Please use HyperLink control in place if linkbutton. then use its Targte property
And then set Targat= _blank, in order to open a page in new window.
Feel free to ask.
Regards
Anil Pal
|
|
|
|
|
Hi,
Any one please help on the below issue.
We change the some text in the Footer control and Deployed the user control in Production
It is working fine in Dev box when we move to production we got the below error
Code
]]>
Copyright ©
2009 Standard Chartered Bank. All rights Reserved.
|
Runtime Error
An Application error occur on the server the current custom error settings for the application prevents the details of the application error from being\(reasons) I t could however be viewed by the browsers running on the Local server machine
Details
To enable the details of the specific error message to be viewable on remote machines. Please create a <customerror> tag within a "web.config" configuration of the current web application. This <customeerrors> tag should then have its mode arrribute set to "Off"
Do i need to build the Project and place the Dll in the production server, I changed the user control design only i didn't change any code level change.
Please help on this.
Thanks in Advance.
Regards,
Ranga
|
|
|
|
|
9 out of 10 intelligent people change the web config and get the real error message in this situation, so they can find out what is actually wrong.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi,
Could please explain your steps which u have perform to deploy user control on production server.
Like. How u r building your application.
2. Is there any specific assembly name.
Did u copied all the files which r required. etc.
So thats i can understand better
Regards
Anil Pal
|
|
|
|
|
Hi Anil Pal,
Thanks for your quick reply
We just copied the Footer.ascx from Dev box and pasted in the Production on respective location.
I copied the specific File only not all the files.
Thanks,
Ranga
|
|
|
|
|
Hi,
You also need to copy the concern Dll of the user control in the concern directory. and restart the IIS.
Regards
Anil Pal
|
|
|
|
|
Hi Anil Pal,
Thanks for your quick reply.
We will build the solution and deploy the Concern DLL in the production on next week change.
Let you know the status on next week.
Thanks for your help.
Thanks,
Ranga
|
|
|
|
|
Here's the deal!
I'm creating two drop down lists dynamically in a GridView control and populating the second dropdownlist(let's call it ddl2 from now on) on the basis of the selection on the first dropdownlist control. The crisis is that, for multiple rows on the gridview the ddl2 starts appending values to itself and therefore ends up having repeats of the data it should originally hold.
How do I stop this repeat from happening? My code is as below.
<asp:GridView ID="grd" runat="server" OnRowDataBound="grd_RowDataBound"> <Columns> <asp:TemplateField HeaderText="names"> <ItemTemplate> <asp:DropDownList ID="name" runat="server" OnSelectedIndexChanged="onSelectChangeddl"></asp:DropDownList> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="age"> <ItemTemplate> <asp:DropDownList ID="age" runat="server" AutoPostBack="true"> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>
In c# code, i am trying to change the values of the second drop down list based on the value selected in the first. I am doing this as below:
foreach (GridViewRow row in grd.Rows) { DropDownList ddl1 = (DropDownList)row.FindControl("name"); DropDownList ddl = (DropDownList)row.FindControl("age"); if (ddl.SelectedValue.ToString() != "---Select---") { } else { ddl.Items.Clear(); } SqlCommand SPComm = new SqlCommand("someStoredProcedure", myConn); SPComm.CommandType = CommandType.StoredProcedure; SqlParameter param = SPComm.Parameters.Add("@something", SqlDbType.NVarChar, 50); param.Value = something; dr = SPComm.ExecuteReader();
In the above code, all the values in the second drop down list are getting duplicated based on the selected index changed event handler of the first drop down list.
Can anyone help me with this? Been trying all kinds of stuff with this since three weeks now! H-e-L-p!
scarface
|
|
|
|
|
Hi,
I am also seeing the you are facing same kind of problem sice last couple of week. Please send me your complete requirement. at anil.bly@gmail.com
I will develop complete solution for you and send it to u.
Regards
Anil Pal
|
|
|
|
|
hi i am praneeth,
i have populated gridview with hyperlinq column ,it is int column ,if the records is showing zero then i will insert text in gridveiw , the text column linq should navigate to 2 page , whole column exccept the text will be navigating to 1 page , i am having the problem with how to navigate text hyprlinq to 2nd page ,please help me for this requirement.
|
|
|
|
|
Hi,
Please can u come with little bit more details. If you are talking about second page link. What does exatcly u mean to say?
Regards
Anil Pal
|
|
|
|
|
hi , i am populating retailer id column ,in that some are 0 ,so in place of 0 , i am assigning text as "assign id" ,all id's will navigate to edit particuar id page and this "assign id" should go to add page.
|
|
|
|
|
Soory dear, but still i have confusion.
But i am assuming that in case of "0" retailer ID you want to assign some text.
So here is two case:
Case 1: If you dont want to naviagate user to any page. then please assign "#"
Case 2: If you want to navigate user to some particuler page then u need to assign url of the page.
Now please let me know where exactly u r facing problem?
Regards
Anil Pal
|
|
|
|
|
hi , i am navigating whole column to edit retailer page,by using this code in source page
<asp:hyperlinkfield datanavigateurlfields="qretid" datatextfield="RETAILERID" headertext="Retailer ID" xmlns:asp="#unknown">
and assign id is also in same column , assign id should navigate to add retailer page.
|
|
|
|
|
Hello friends . I have proplem receive mail from my asp.net project. I didnt make how can write codes then I can recive mail using pop3. and attachments I want receive mail and attachment then I will download tihs attachment. Pelase Help me my mail : mugla_vedat@hotmail.com please this is my project helpme.
|
|
|
|
|
This is a general C# task, it has nothing to do with .NET. Posting your email address is stupid, it will just get you spam. Have you bothered to try google ?
If you want to receive mail FROM your ASP.NET project, then you want to send mail. Read my article on how to use google for the answer to that question, and examples of how to use google to answer it.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
please send me your link I dint find please help me.
|
|
|
|