Friday, 15 July 2011

c# - xVal and jQuery Submit Button -


I have a simple form, it has a field and a submit button. I hide the submit button. The submit button is actually triggered with an anchor tag which calls a JavaScript method that uses jQuery to get the element and executes a click () it works fine Does, form posts and records have been successfully written in DB

So now I am trying to add xVal for verification to the simple client side verification.

It does not work when I click on the anchor tag. However, if I un-hide the submit button and try to post the form with it, instead of using the anchor tag, which is called the JS method, it works. So basically I'm trying to figure out why this does not work when using the JS method to click on the submit button.

Any great ideas? thanks a lot!

This is some code ...

  & lt; Div id = "manufacturerButtons" class = "moduleRow" & gt; & Lt;% = Html.ActionImage (Url.Content ("~ / content / Icons / bullet_go_back.png"), "Back to Admin", "Admin", "Admin")%> | & Lt; A class = "action image" href = "javascript: addManufacturer ();" & Gt; & Lt; Img border = "0" src = "& lt;% = Url.Content (" ~ / content / icons / accept.png ")%>" & Gt; & Amp; Nbsp; & Lt; Span & gt; Add productive & lt; / Time & gt; & Lt; / A & gt; & Lt; / Div & gt; & Lt; Div class = "moduleContent" & gt; & Lt; Div id = "manufacturer firm" & gt; & Lt; Div class = "moduleRow" & gt; & Lt; H3 & gt; New Creator & lt; / H3 & gt; & Lt; / Div & gt; & Lt; Div class = "moduleRow" & gt; & Lt;% Html.BeginForm ("new creator", "administrator", FormMethod.Post); & Gt%; & Lt; Table class = "Nobber" range = "0" cellpadding = "0" cell area = "0" & ​​gt; & Lt; TR & gt; & Lt; Td style = "width: 125px" & gt; & Lt; H6 & gt; Name: & lt; / H6 & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt;% = Html.TextBox ("name")%> & Lt; / TD & gt; & Lt; / TR & gt; & Lt; Tr style = "display: none;" & Gt; & Lt; TD & gt; & Amp; Nbsp; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Input type = "submit" id = "btnAdd" name = "btnAdd" /> & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt;% Html.EndForm (); & Gt%; & Lt;% = Html.ClientSideValidation & lt; Tool manufacturer & gt; ()%> & Lt; / Div & gt; & Lt; / Div & gt;  

Javascript:

  function addManufacturer () {// $ ('form'). Submit (); // does not work either while attempting to validate $ ('# BTNAD'). Click (); Back true; }  

What do you need to do to verify jQuery on your form? Try:

  $ ('form'). Valid ();  

To submit a form to successful validation, try:

  $ ('form'). Validate ({submitHandler: function (form submit);}}};  

Note that 'form' should be a valid jQuery selector for your form ...


Retrieving SQL Server Extended Properties From C# -


We detail the details of our SQL Server database by creating table and column levels, we expand detailed properties, we usually enter them via SSMS .

My question is this. I am creating a C # application, where I want to read the expanded properties of a specific table and its related column

Can anyone show me how I can go about doing this?

Thanks - Randy

Read this: And see if there is anything that you In your situation, you can do it.


Using SVNBridge with TFS (not CodePlex) -


I am trying to use my TFS server using SVN Bridge so that I can disconnect. I tried to use a server-based and client-based solution. I'm just returning the internal server 500 errors. I'm not sure I'm connecting properly on the site.

The other posts I have read about SVN Bridge are specially about codepacks and connect it through a CodePlex specific URL.

I am trying to connect to my own TFS server and wondering how to properly formulate the URL. Do I need to do something special for this? I feel like I have tried everything, is there any success in doing any such work?

Therefore the problem is partly related to TFS 2010 beta 2. This issue is being tracked here:

Thank you.

Not sure that you are still looking for an answer, but I just better my weekend This is happening to work, mostly with trial and error, so here's what I learned.

You can download no zip files and if you are using TFS-2010 then do anything. Instead, you download the Essential source code and compile this thing for yourself

You must do this on a computer that installs the IIS to use the website's project.

If you do not have VS-2008 installed, you can upgrade the entire solution of VS-2010 and everything will be OK. I also changed the goal of website project to 4.0 framework with the least issues. I had to unload the testrequirefitties client project and tools.Hipsepend project to achieve the remaining projects for the construction of projects.

After you have created this project, you need to follow those two steps which are given on the order of obtaining bits in the right place on the web server once it is complete You web The config file needs to be tuned.

Here are the app settings you need to change and the values ​​you want to use:

  & lt; Add key = "logpath" value = "- directory-URI tokie plug in in" /> & Lt; Add Key = "DomainIncludesProjectName" value = "False" /> & Lt; Add key = "TfsUrl" value = "http: // - tfsServerName--: 8080 / tfs / - Project Selection -" /> & Lt; Add Key = "ReadAllUserDomain" value = "- yourDomain--" /> & Lt; Add key = "ReadAllUserName" value = "- domainUserName--" /> & Lt; Add key = "ReadAllUserPassword" value = "- domainUserNamePassword--" />  

If you have decided to upgrade website to 4.0 frame, do not forget that you need to update the application pool because it was probably made as 2.0.

You've almost done that the website has been established. You still need to install some functionality counter from SvnBridge. PerfCounter.Installer After complexity of the project, just copy those bits to the same server on which you have installed the website and have run the exe.

This does not work

OK is the last but not least security. I am not using digest protection because all of my Users have Windows login, so I used anonymous access and then disabled all other types of access except for Windows authentication.

Windows authentication did not work for all users, after seeing some remote source code, it became clear that basic authentication was the only option that was going to work. I needed the users to log in as their form and then that user name was passed in TFS so that it can be done as check-in, to be recorded to the right user.

RP


javascript - jQuery html() converting braces to html entities (sometimes) -


असल में:

मेरे पास यह HTML है:

  & lt; Div id = "foo" & gt; & lt; img src = "/ foo / bar / {var} / foo" alt = "{var}" & gt; & lt; / div & gt;  

कॉल करते समय (फ़ायरफ़ॉक्स में jQuery का उपयोग करते हुए):

  $ ("# foo")। Html ()  
< P> मुझे मिलता है:

  & lt; img src = "/ foo / bar /% 7bvar% 7d / foo" alt = "{var}" & gt;  

मेरा इच्छित आउटपुट है:

  & lt; img src = "/ foo / bar / {var} / foo" alt = "{var}" & gt;  

यहाँ क्या हो रहा है? यह कैसे हल करने के लिए कोई सुझाव है?

मुझे लगता है मुझे समाधान है अगर समाधान HTML संस्थाओं रूपांतरण को पूर्ववत करने के लिए regex का उपयोग करने के लिए होता है ब्रेसिज़ के बजाय पैनर्स का उपयोग करना एक ही परिणाम (विभिन्न HTML संस्थाओं के साथ) का कारण बनता है।

संपादित करें : मैंने इसे स्क्वायर ब्रैकेट्स ( [ और < ] ), और पैरों और ब्रेसिज़ के विपरीत, ब्रैकेट HTML संस्थाओं में परिवर्तित नहीं होते हैं। क्या पैरों और ब्रेसेस के पास कुछ विशेष अर्थ है?

आप शायद जावास्क्रिप्ट यूनेशस्क फ़ंक्शन का उपयोग कर सकते हैं


iphone - how to select multiple image with UIImagePickerController -


संभव डुप्लिकेट:

मैं iPhone विकास में एक नौसिखिया हूं, साइट मुझे बहुत मदद देती है लेकिन अब, मैं एक मुसीबत से मिलती हूं, मैं एक फोटो सेल्बम में एक से अधिक फोटो का चयन करना चाहता हूं, लेकिन जब मैं UIImagePickerController का उपयोग करता हूं, तो मैं सिर्फ एक फोटो प्राप्त कर सकता हूं, क्या आप मुझे बता सकते हैं कि अधिक फ़ोटो कैसे चुनिये? धन्यवाद।

सबसे अच्छा संबंध है,

ofllm

आपको अपना खुद का दृश्य नियंत्रक बनाना होगा जो कि आप वर्तमान में चयन कर रहे फिल्मों की सूची करेंगे। एक समय में अपनी सूची को एक छवि बनाने के लिए UIImagePickerController का उपयोग करें UIImagePickerController में कोई भी एकाधिक चयन उपलब्ध नहीं है।


c++ - Updating text in a C Win32 API STATIC control drawn with WS_EX_TRANSPARENT -


I have some static labels and buttons on it I make all the labels a transparent background so I can call background red . In the callback, I process the WM_CTLCOLORSTATIC message, set the control ID with GetDlgCtrlID () and then:

  SetBkMode (HDC) wParam, TransNet); // Stable Control BKGD Transparent Return (INT_PTR) (HBRUSH) GetStockObject (NULL_BRUSH);  

So far the form is drawn, the background is red and the label text is drawn to the top.

After the user interaction, I need to change the text, so I issue a SetDlgItemText () message and attract the new text. The problem is that the old text is not being erased, and the new text is pulled over it.

After reading today to some extent, it seems that the problem is the controlling parent (form) which is responsible for the drawing background. This means that when you change the label text, the control overlines the new text, but the form does not automatically show the background again.

The question is how do I redo rectangle area labeled control (preferably without subclassing)?

Added:

I have tried the following:

  HWND hctrl; Hctrl = GetDlgItem (HWD, Control ID); Redrawondo (HTTRL, 0, 0, RDW_UPDENEVE) RDWOOLHLRRNRDW_FRAMAMANDU || RDWYADADT || RDW_ARAC (RDWNTNLPANT); // RDW_UPDATENOW  

and:

I do not handle WM_PAINT messages at all, only:

  case WM_CTLCOLORSTATIC: SetBkMode ((HDC) WPAMAM, transnenet); Return (INT_PTR) (HBRUSH) GetStockObject (NULL_BRUSH); Int Library: :: SetCollectText (Int'l ControlId, String STECT) // Dialog Out {Ent Rated; Retal = Setdalguitum Text (hwd, control id, sText.c_str ()); RECT RECT; Hw & htl; Hctrl = GetDlgItem (HWD, Control ID); GetClientRect (hctrl, and rect); Map Window Points (HTTL, HWND, (PINT *) and REXT, 2); Invalid note (hwd, and riket, true); Return rate; }  

Mark, thank you for doing this work.

Use illegal use on capture rectangle by control.

RECT rect; GetClientRect (hctrl, and rect); Invalid note (HTTL, and Riket, true); Map Window Points (HTTL, HWND, (PINT *) and REXT, 2); Redrawondo (HWD, and reactivity, faucet, RDW_ARAC | RDWNAVANDAdit);

c# - embedding a simple ActiveX control got Class not Registered error -


I have just developed a very simple ActiveX control (using a VSNet wizard, also a line) Not changed), and compiled it. After running "Regsvr32 ax1.ocx", I have created a new C # WinFrom project and drag the ActiveX control into the form. Then I create and run it, the error says:

  registered Class (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))  

In this line:

  ((System.ComponentModel.ISupportInitialize) (this.axax11)) . EndInit ();  

The entire function is:

  Private Zero initial element () {System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager (typeof (Form1) ); This.axax11 = New Axax1Lib.Axax1 (); ((System.ComponentModel.ISupportInitialize) (this.axax11)) BeginInit () .; This.SuspendLayout (); // // axax11 // this.axax11.Enabled = true; This.axax11.Location = new System.Drawing.Point (103, 90); This.axax11.Name = "axax11"; This.axax11.OcxState = ((System.Windows.Forms.AxHost.State) (resources.GetObject ("axax11.OcxState"))); This.axax11.Size = New system Drawing Size (100, 50); This.axax11.TabIndex = 0; // // form1 // this. Auto Scalements = New System. Drawing. Size F (6f, 13f); This.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; This.ClientSize = New system Drawing. Size (284, 262); This.Controls.Add (this.axax11); This.Name = "Form 1"; this. Text = "form1"; ((System.ComponentModel.ISupportInitialize) (this.axax11)) EndInit () .; This.ResumeLayout (wrong); }  

I think you wrote your anticox control in unmanaged C ++ code is. You will either need to create a 64-bit version of this control or you will need to force it to use the .NET program to run in 32-bit mode. The latter is fine soon, project + properties, build tab, platform target = x86.