Click here to Skip to main content
       

ASP.NET

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
QuestionWCF Hostingmemberprakashpp4 Oct '12 - 0:58 
Dear All,
 
My another question is that what is the security level for hosting wcf web services on server.how we can procetc our web application ...
 
Thanks once again ...
AnswerRe: WCF HostingmvpSandeep Mewara4 Oct '12 - 20:52 
There are lots of information on web regarding it.
Sample, look at this one: WCF Service Method Level Security using Message Contract[^]
Sandeep Mewara
Microsoft ASP.NET MVP
 
[My latest Article]: Server side Delimiters in ASP.NET[^]

QuestionWCF Hosting problemmemberprakashpp4 Oct '12 - 0:56 
Dear All,
 
Please help me, My question is that I have created a web application and wcf services my all business class and data class is define in wcf now i have done add reference.this is working fine at my local pc.Now I am hosting on server ,I have created two site on server for web and Wcf and passed wcf url to web appplication in web config file.Now problen is that it is not communication with our database .after running application when we put userid and password getting error userid and password not valid while both are correct.means it is not connecting database.
 

Thanks to giving reply quickly in advance.guys pls help me.
AnswerRe: WCF Hosting problemmvpSandeep Mewara4 Oct '12 - 20:52 
prakashpp wrote:
I have created two site on server for web and Wcf and passed wcf url to web appplication in web config file.

Ok. But, you made sure that the web service reference is correct and is trying to connect to the hosted WCF only?
 

prakashpp wrote:
after running application when we put userid and password getting error userid and password not valid while both are correct.

Debug and see which username/password is incorrect and when it is being executed.
Sandeep Mewara
Microsoft ASP.NET MVP
 
[My latest Article]: Server side Delimiters in ASP.NET[^]

QuestionControls are not displayed on using Asp:AsyncPostBackTrigger [modified]memberShashank Srivastava1)3 Oct '12 - 20:38 
I am creating Ajax Draggable panels on Onclick event of a button but I'm facing problem while making the use of asp:AsyncPostBackTrigger viz.
 
1)When I use asp:AsyncPostBackTrigger control is created and retains its position but further on click event of button(aspx) newly created controls are not displayed but while debugging it shows that new controls(usercontrol) are being created.
 
2)If I don't use asp:AsyncPostBackTrigger then on every click of the Button(on <b>aspx</b> page) control(<b>usercontrol</b>) is being created and is also draggable but they are not retaining their positions.
 
<b>I'm doing all this stuff on the web form</b>
 
--<b>aspx page</b>--
<div>
      <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true" ></cc1:ToolkitScriptManager>
      <asp:Button ID="btn" runat="server" Text="Add" OnClick="btnAdd_OnClick" />
      <asp:Panel ID="pnl_wrapper" runat="server"></asp:Panel>
</div>
 
--<b>aspx.cs</b>--
   Dictionary<string, string> myControlList;
      protected void Page_Load(object sender, EventArgs e)
      {
 
      }
      protected override void OnInit(EventArgs e)
      {
         base.OnInit(e);
 
         if (!IsPostBack)
         {
            myControlList = new Dictionary<string, string>();
            Session["myControlList"] = myControlList;
         }
         else
         {
            myControlList = (Dictionary<string, string>)Session["myControlList"];
 
            foreach (var registeredControlID in myControlList.Keys)
            {
               UserControl controlToAdd = new UserControl();
               controlToAdd = (UserControl)controlToAdd.LoadControl(myControlList[registeredControlID]);
               controlToAdd.ID = registeredControlID;
              
               pnl_wrapper.Controls.Add(controlToAdd);
            }
         }
      }
 
      protected void btnAdd_OnClick(object sender, EventArgs e)
      {
         UserControl controlToAdd = new UserControl();
         controlToAdd = (UserControl)controlToAdd.LoadControl("ufinal.ascx");
 
         controlToAdd.ID = Guid.NewGuid().ToString();
         pnl_wrapper.Controls.Add(controlToAdd);
         myControlList.Add(controlToAdd.ID,   controlToAdd.AppRelativeVirtualPath);
      }
 
--<b>.ascx</b>--
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
   <ContentTemplate>
      <cc1:DragPanelExtender runat="server" TargetControlID="PnlContainer"
         DragHandleID="PnlHeader">
      </cc1:DragPanelExtender>
      <div>
         <asp:Panel ID="PnlContainer" runat="server" CssClass="dragContainer">
            <asp:Panel ID="PnlHeader" runat="server" CssClass="dragHeader">
               Click and Drag Here
            </asp:Panel>
            <asp:Panel ID="PnlDetail" runat="server" CssClass="dragDetail">
               My name is Shashank<br />
         </asp:Panel>
         </asp:Panel>
      </div>
   </ContentTemplate>
   <Triggers>
      <asp:AsyncPostBackTrigger ControlID="btn" />
   </Triggers>
</asp:UpdatePanel>
 
&lt;script type="text/javascript">
   function setBodyHeightToContentHeight() {
      document.body.style.height = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight) + "px";
   }
   setBodyHeightToContentHeight();
&lt;/script>

-- modified 4 Oct '12 - 4:28.
QuestionMaster Page in ASP.NETmemberhiredotnet3 Oct '12 - 19:11 
A Master page offers a template for one or more web forms. It defines placeholders for the content, which can be overridden by the content pages. The content pages contains only content. When users request the content page, ASP.NET merges the layout of the master page with the content of the content page and produce output.

QuestionHow to connect a database in asp.net farmwork?membersudhabnrj3 Oct '12 - 7:30 
How to connect a database in asp.net farmwork?
AnswerRe: How to connect a database in asp.net farmwork?membersomasundarapandian4 Oct '12 - 4:31 
Three way to connected Database
 
Single tier Application
 
webconfig file used to connected
QuestionRe: How to connect a database in asp.net farmwork?memberVijayChauhan1237 Oct '12 - 20:41 
What you wanted to do my dear?
AnswerRe: How to connect a database in asp.net farmwork?membersarathviper8 Oct '12 - 23:54 
1.go to Tools and click connect to database.
2.enter the server name ex in default .\sqlexpress and enter the new database name.
3.and press ok.
 

IN aspx.cs write this coding.. and add using System.Data.Sqlclient
 

SqlConnection con = new SqlConnection("Data Source=.\\sqlexpress;Initial Catalog=Databasename;Integrated Security=True");
con.Open();
QuestionBenefits of using of ADO.NET in .NET 4.0.memberhiredotnet2 Oct '12 - 21:48 
What are the benefits of using of ADO.NET in .NET 4.0.

AnswerRe: Benefits of using of ADO.NET in .NET 4.0.mvpRichard MacCutchan2 Oct '12 - 21:58 
See here[^].
One of these days I'm going to think of a really clever signature.

AnswerRe: Benefits of using of ADO.NET in .NET 4.0.membersomasundarapandian4 Oct '12 - 4:33 
1.processing speed increase
2.connection mode is steady
3.Using different innovative idea to display data
WTF | :WTF:
Questioninfragistics webdatagrid editing problem please help memembersai.20121 Oct '12 - 13:36 
HI all,
 
in my application i am using infragistics webdatagrid.when i want to edit the selected row i am using edit template.
after click on ok button how to retrive the control values from edit template of the webdatagrid.
 
Please help me
 
Thanks
AnswerRe: infragistics webdatagrid editing problem please help memvpSandeep Mewara1 Oct '12 - 23:14 
If you did not got how to do it from Infragistics help documents, i would suggest you to have a look/post here: Infragistics Forum[^]
 
3rd parthy control specific forums help more in such queries.
Sandeep Mewara
Microsoft ASP.NET MVP
 
[My latest Article]: Server side Delimiters in ASP.NET[^]

QuestionButton Click event is not working on specific case.memberayyappakonakalla1 Oct '12 - 2:54 
Hello,

I have a web portal with traditional webpages.

This website is enabled with multiple languages and translated text is saved/retreived from database.Website works with all languages in all pages except one page for French language.

When I click the buttons(only when current language is Fech ) in that particular page-->form's postback event is fired but no button click event.

Can somebody help me with this problem.
AnswerRe: Button Click event is not working on specific case.memberSandip.Nascar1 Oct '12 - 22:23 
Inspect the page_load "sender" object in quickwatch and see if the button is missing.
Also, check the viewstate of the page.
 
Another probable reason could be validation request. As you gave choose culture french, there could be a possibility of having characters that are recognized as potential dangerous to restrict cross scripting attack.
 
Hope this helps.
cheers
"We know accurately only when we know little. With knowledge, doubt increases.”

QuestionPDF file was demagedmembervinothini dharmaraj1 Oct '12 - 1:13 
Hi, i need to open HTML file into pdf. i'm creating HTML file using String Builder then i will convert that into PDF using HTMLWorker, PDF writer. Here i can open file from my local but once i open from server then i can't open its showing pdf file was demaged.
 
Here is my code to convert pdf
 
//Pdfbuilder is string builder
 
string strPdfContent = Pdfbuilder.ToString();
 

 
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment;filename=AboDetails.pdf");
 
Response.Cache.SetCacheability(HttpCacheability.NoCache);
StringReader reader = new StringReader(strPdfContent);
Document doc = new Document(PageSize.A4, 10, 10, 0, 0);
 
HTMLWorker parser = new HTMLWorker(doc);
PdfWriter.GetInstance(doc, Response.OutputStream);
//PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(AboDetails.pdf, FileMode.Create));
 

doc.Open();
try
{

parser.Parse(reader);

Response.Write(doc);
Response.End();
}
catch (Exception ex)
{

}
finally
{
doc.Close();
}
 

Please its very urgent. If anyone knows the solutions please help me.
 
awaiting for your reply.
 
Regards,
Vinothini Dharmaraj.
AnswerRe: PDF file was demagedmemberEddy Vluggen2 Oct '12 - 4:51 
vinothini dharmaraj wrote:
Please its very urgent.

No, it's not. This is a free service, and you can't rush charity. If your planning did not include research, I suggest you review your planning.
 
FWIW; you first want to know whether the file is generated correctly, or not. If it is, then there's a problem in the transfer, or the viewer - otherwise you could quickly try another PDF-generator.
 
Easiest way to determine is by generating the PDF on the server, copying the PDF by hand, and try to open it on different computers with different viewers (I use both the Adobe-reader and the Foxit reader to verify) Also try to find out the version of the PDF file being generated.
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

Questionconnection string Web.config + ASP.net C# [modified]memberjojoba20111 Oct '12 - 0:09 
Hi every one.
I have copying my database via setup to Program File of customer system.
now how can i give the conection string that can attach the DB (in webconfig):
 
<connectionStrings>
    <add name="SqlConnStr" connectionString="Data Source=.\CMSNegin;AttachDbFilename=%programfiles%\TSMS.mdf;Initial Catalog=NeginDB;uid=sa;pwd=u1$%^ggrf0923" providerName="System.Data.SqlClient"/>
   
  </connectionStrings>
I have used "%ProgramFiles%" but no use...
 
Please Help
 
Thanks in Advanced !

modified 1 Oct '12 - 6:40.

AnswerRe: connection string Web.config + ASP.net C#memberrock_monu1 Oct '12 - 0:16 
<connectionStrings>
<add name="SqlConnStr" connectionString="Data Source=.\CMSNegin;AttachDbFilename=<code>%programfiles%</code>\TSMS.mdf;Initial Catalog=NeginDB;uid=sa;pwd=u1$%^ggrf0923" providerName="System.Data.SqlClient"/>

</connectionStrings>
QuestionRe: connection string Web.config + ASP.net C# [modified]memberjojoba20111 Oct '12 - 0:40 
what ?

modified 1 Oct '12 - 7:05.

AnswerRe: connection string Web.config + ASP.net C#mvpRichard MacCutchan1 Oct '12 - 1:13 
If you use values like this in your connection string then i think you will need to modify it at execution time in order to replace the %programfiles% with the real path. See Web.config File - ASP.NET[^] for some useful information on the web.config file.
One of these days I'm going to think of a really clever signature.

QuestionRe: connection string Web.config + ASP.net C#memberMember 94738091 Oct '12 - 4:23 
Thanks for solution but i didnt get anything..plz give an example how to do that.
Thanks in advanced
AnswerRe: connection string Web.config + ASP.net C#mvpRichard MacCutchan1 Oct '12 - 4:31 
You need to spend some time getting familiar with MSDN, which contains documentation for just about everything you will ever need, including this section on environment variables[^].
One of these days I'm going to think of a really clever signature.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid