Atulpatel's Q&A profile
.NET Development Use Master Page in root
The website has three folders named: images, enduser, agent. I have a master page Website.master at the root. I have a page name EndUserIndex.aspx in folder "enduser" and I use Website.master as its mater page. I use "images/Logo2.gif" in Website.master. The problem is, I cannot see the images in EndUserIndex.aspx unless I reference the image using http://localhost/images/Logo2.gif in master page. Is it possible to use Website.master in EndUserIndex.aspx and reference the image in a simple way EndUserIndex.aspx <%@ Page Language ="C#" MasterPageFile ="~/Website.master" Title ="End User Management" %> <script runat="server"> protected void Page_Load(object send ...Show All
Visual Studio Express Editions How to use MySQL VB.NET
How to create database connection in VB.NET to connect to a MySQL Server. Can anyone help me to establish a connection using system objects, or using a shared resource. First step is to have a provider...there are a couple of freebies(SevenObjects) out there on the net...second is to have the proper connection string for that provider: http://www.connectionstrings.com/ carrier=mysql ...Show All
Visual Studio Express Editions how to convert textfile to mdb
Hi, How to convert delimiter based text file to mdb. Actually I need create table structure and mdb also runtime. If any has coding like that pls send to me ASAP by thiyagu Hi, In the issue of creating an mdb file and datastructure, my approach here is to hide a blank database mdb. This would just serve as a template if i want to create a new database. I would just copy this template to whatever location I want to create a new mdb. After that, I'll connect to it through a connection object and just Issue create commands to create my tables, etc... CREATE TABLE <tablename> cheers, Paul June A. Domag ...Show All
Visual Basic Webbrowser.Showprintdialog
Hi folks, I've got a problem writing a CRM Software. I'm using the Webbrowser Control to fill in text into a HTML form and to print this filled form. It works great (thanks to HTML-DOM), but when the user wants to print more than one clients data, the software should show the print dialog of the webbrowser control (I'm using WebBrowser.ShowPrintDialog()). The difficulty is to show the Print Dialog only for the first page. The other pages I want to print with the simple Webbrowser.Print() method. The problem I have is I want to stop the code running till the user has clicked the OK-Button of the Print Dialog. But I don't know how ! ! ! Or is there any other way of changing the print settings for the Print method of the Webbro ...Show All
Smart Device Development Specify control which will have focus?!
Hello. I've got what's an almost definitely stupid question to ask, but what will specify which control will have focus on the form after that form gets created and displayed in VS2005 projects! I could use a focus() control method call in the form's load event handler, but that would be a hack IMHO. I arrange tab index values of all the controls on the form in the ascending order, meaning, the one control I'd like to have focus after the form is created and displayed has the lowest tab index value = 1 (I tried using 0 also, but to no effect). Then I setup that other controls get higher by 1 tab index values, in the order I'd like them to get the focus after tab key is pressed. But, it seems no matter what I set, it's always th ...Show All
Visual Studio Express Editions Matrix free function problem
Hi everyone, My program creates a matrix with the specified size. And it also some additional function that can free the matrix. However, when I call the below main function, my free function does not work properly so how can I fix it For example the outpt that I gave when I ran the below application; Sorry,we can not perform the add operation since the sizes of matrices are different 1 2 3 4 2 5 6 7 3 6 8 9 4 7 9 10 0134526920134526944134526968 134526920 5 6 7 134526944 6 8 9 134526968 7 9 10 so how can I correct this 0134526920134526944134526968 134526920 5 6 7 134526944 6 8 9 134526968 7 9 10 The codes for .cpp file; #include ...Show All
Visual Studio Express Editions NEED HELP with this piece of code !
HEY GUYS i am developing a program while learning Visual C# so here what i am trying to do .... getting htm links from the database ( access ) and view it in the WebBrowser Control and, i have a button to the next link in that database to get it and view it in the WebBrowser so here is the code for that button but it doesn't work :( when i click on it this is the function i am using when button is clicked private void Next(string lesson) { string StrConnection1 = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\anything\database.mdb" ; &nbs ...Show All
Software Development for Windows Vista access controls in infopath form programatically
hi.. we are building a user interface layer for windows workflow foundation that would enable users to create workflows without having to do a lot of coding. we thought of using infopath so the user could build workflow forms using it i need to know how could i access a controls inside infopath form programatically if any had a sample code about this that would be great.... thanks You should try asking this question in the SharePoint - InfoPath Forms Services forum found at http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=1206&SiteID=1 or the SharePoint - Workflow forum found at http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=1207&SiteID=1 . ...Show All
Visual C++ inline assembly functions
Hello, either I am missing some small stupid thing or there is an interesting bug in the way Visual C++ 2005 passes parameters to a function. Any help would be wonderful ^^. The following is the code I have at the moment. It simply reads in 3 values and sorts them least to greatest. According to what i know of how variables are passed in a function call, the top of the stack should have the return address followed by the variables passed to the function. When I do this however the passed in values and the top of the stack are several hundred bytes away from eachother seperated by junk 0xCC word values. #include <iostream> using namespace std; void asmSortThree( int& , int& , int& ); void main() ...Show All
SQL Server SQL Express Advanced with Sharepoint Services.
Hi I've recently upgraded from MSDE (SBS 2003 SP1 with .NET 2.0) to SQL Express SP1. I am trying to enable full text sarching on the Sharepoint instance but whenever I go to Sharepoint central administaton and text sarching it reports that the SQL server installed does not suport this. I can't find any documentation on this anywhere. Admidatley the machine is a domain controller and I know this isn't recommended but surely this shouldn't stop this from working All components where selected when installing SQLExpress and I recieved no errors. Any sugestions would be greatly appreciated. Many kind thanks Gareth Gareth.Hunter@gmail.com Hey, I was under the impression that it would swi ...Show All
Visual Studio Tools for Office Can't update MS Access with C++
I'm trying to write data from a C++ program to an MS Access Dbase i have. however i can't geet certain values to save. here's some code void CConnectorTestView::OnSaveButton() { // TODO: Add your control notification handler code here CString string; UpdateData(TRUE); string = GetAnswer(m_CorrectLengthYes); m_pSet->m_WireLength = string; // MessageBox(m_pSet->m_WireLength); string = GetAnswer(m_BillMaterialYes); m_pSet->m_BillofMaterials = string; // MessageBox(m_pSet->m_BillofMaterials); string = GetAnswer(m_ConnectorYes); m_pSet->m_ConnectorAssembly = string; string = GetAnswer(m_DrummelToolYes); m_pSet->m_DrummelTool = string; string = GetAnswer(m_WireGaugeYes); m_pSet->m_WireGauge ...Show All
Visual Basic How can I find and modify the correct control on my form?
Hello, say, if you have several of labels (Label1, Label2, ..., Labeln) on your form, and also a textbox and a button. If you put, for instance, "label5" in the textbox and click the button, how is it then possible to find Label5 and, say, change its back color Hope it does not sound too cryptic... Any suggestions :-) Iterate through the controls collection until you find the control you are looking for.... For Each ctrl As Control In Me . Controls If ctrl . Name = "Label5" Then ctrl . BackColor = Color . Blue End If Next ...Show All
Visual Studio Express Editions open a file into treeview
hy i have a problem with a treeview i have a file named file: now i want it to open the file and: when website (like www.google.com ) add the website (this is working), but i also want it to make a new root and add al later websites to that root when there is a + in the file. Also when there i a - it must go to the top level. i now have this code but it gave me no results private void openFavorites() { try { FileStream list = new FileStream ( "favorites.txt" , FileMode .Open); StreamReader reader = new StreamReader (list); while (reader.EndOfStream == false ) { string line = reader.ReadLine(); if (line == "+" ) { TreeNode root1 = new TreeNode ( ...Show All
Visual Studio Express Editions short cut activation over network not allowed
Hi, I installed one vbe express project(which creates some excel file) in server. I am trying to access that vbe express edition project exe file from server to terminal system. But i can't. That exe file working fine in server. Error message is: short cut activation over network not allowed what is the problem. Any suggestions please Thanks details: PLATFORM VERSION INFO Windows : 5.2.3790.60051 (Win32NT) Common Language Runtime : 2.0.200.42 System.Deployment.dll : 2.0.200.42 (RTM.0500-4200) mscorwks.dll : 2.0.200.42 (RTM.0500-4200) dfdll.dll : 2.0.200.42 (RTM.0500-4200) SOURCES Deployment url : file://server/tspolicies$/officeuser/StartMenu/Programs/Range.exe.appref-ms ERROR SUMMARY Below is a ...Show All
Smart Device Development Why does Emulator seem to drop the network connection after 1-2 minutes
I had spoken too soon to regards to the ability to ping my emulator instance. It works great in the first 1-2 minutes and then seems to drop out. I did install the virtual network driver as suggested yesterday and that gave me the initial capability. Is there a known issue with the CTP arm emulator that I don't know about Thanks in advance for any help :) Bob Hanson Hello Bob, There isn't any known issue for the problem you are facing. Since you have built a custom WinCE image, is it possible for you to share the image or share/point to corresponding BSP (you can mail me at mohit[DOT]gogia[AT]microsoft[DOT]com) . If not can you please debug the NE2000 driver a bit and give us a little more information on exactly where ...Show All
