|
I've been putting together the first pages of a site and clicked the debug button and get a message that I can't debug. In going through the exercise of settings to debug I come across a page of system requirements- ASP.NET Debugging: System Requirements. It lists Visual Studio Edition,,Express, Standard and Pro/Team. And has a nice list of "no's" for visual basic, C#, C++ J# and Visual Web Developer beside express.
I have difficulty believing MSFT goes to the trouble of writing the visual web development 2005 express application and doesn't have any way to debug it, except to buy a Professional edition of Windows XP. I have the Windows Media Center Edition of Windows. Further down the page it lists Windows XP Professional as needed for local debugging. Which is unfortunate. Too bad when I downloaded VWD express it didn't say I need a professional version of windows.
I am sure I don't need all of windows XP Professional. I'll bet I already have a lot of it, whatever it is. Is there some way of getting the routines I need for debugging and not loading an entire operating system into a computer that works fine as it is?
Mark H.
|
|
|
|
|
have you checked out the video on debugging here :[^]
|
|
|
|
|
I'm not sure, but I'd guess that the major missing bit would be IIS (think the exp editions use cassini)...I believe you can install it from an XP pro disk if you can get one....
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Can I apply CSS attributes such as background-color to user controls. For example the page I’m dealing with has multiple user controls with tag prefix =”UserCon1” and tagName = “MyHeader” and tag prefix =”UserCon1” and tagName = “MyFooter”.
Now I’m doing this
<br />
UserCon1 { background-color: ; }<br />
But it doesn’t seem to be working. Is it possible to change the values of user controls this way??? If so please could you tell me what I’m doing wrong here.
Thanks
~TINA
|
|
|
|
|
You can't apply it to the user control itself. A user control is just a container for other controls, it isn't a rendered element itself. You could place all of you controls within the user control in a div and set the backgound of the div.
only two letters away from being an asset
|
|
|
|
|
Thanks alot Mark, I tried that and it worked great!
Thanks
|
|
|
|
|
In my webform i
have 4 dropdowns , 5 textboxes and 6 radiobuttons 5 buttons.
if i select 1st ddl then relevant data will be displayed in 2nd ddl.
if i select 2nd ddl then relevant data will be displayed in 3rd ddl.
if i select 3rd ddl then relevant data will be displayed in 4th ddl.
1st ddl,2nd ddl,3rd has autopost back=true;
In this two radio buttons has autopost back=true;
whenever iam selecting one of the radio buttons 3rd ddl is going to the zero index
i.e.. whenever data is sent to server then 3rd ddl is lossing its selected value and then showing the value with zero index.
i already binded the data at the required places.but the problem is not solved.
emial to---- kemisetti_net@yahoo.com
|
|
|
|
|
It's because you're posting back....the simplest way to do this would be to use javascript's document.getElementById method to get hold of the dropdown, and set its value manually...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
wrote: i already binded the data at the required places
And where is that? It sounds like the problem is that you are binding the 3rd ddl and wiping out the existing items and selections.
only two letters away from being an asset
|
|
|
|
|
I have the following code:
Protected Sub Page_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles Me.Load
Dim strConn As String = MRMFunctions.WebConfigConnString
dsTitles.ConnectionString = strConn
Dim strTitleSQL = "SELECT * FROM tblTitles WHERE [Deleted] = 0;"
dsTitles.SelectCommand = strTitleSQL
cboTitle.DataSourceID = dsTitles.ID.ToString
cboTitle.DataTextField = "Title"
cboTitle.DataValueField = "TitleID"
End Sub
The purpose of this code is to retrieve the connection string from the Web.Config file and place that into a variable called strConn.
Next, I assign the SqlDataSource(dsTitles)control to that connection string.
I retrieve the data I want from the Sql Server Database with the strTitleSQL statement by selecting every field from the tblTitles table where the field named ‘Deleted’ is equal to false. I set the Datasource select command to the strTitleSQL variable.
I am now going to databind the control cboTitle by assigning the DataSourceID equal to the dsTitles datasource ID.
I assign the cboTitle.DataTextField to the Title field from the SQL statement. This is the information that will be placed in the drop down list.
Logically, I should be able to assign the record ID number to the DataVieldValue by assigning the cboTitle.DataValueField to the TitleID field. Instead I am getting the error, “Conversion from string ‘TitleID’ to type Decimal is not valid.”
I understand that it is seeing the string ‘TitleID’ as the string for the DataValueField. What I don’t understand is why is the DataTextField is seeing ‘Title’ as the field name from the SQL statement, but the DataValueField is not seeing ‘TitleID’ as the same?
Thank you,
Quecumber256
|
|
|
|
|
It seems the error is coming from somewhere else where you cast that string to the decimal type. Is that all your sample code? If so, can you also post the stack error?
|
|
|
|
|
You are correct. I was trying to retrieve the value from the cboTitle.DataValueField instead of decTitleID = CDec(cboTitle.SelectedValue)
I get the record ID number this way.
Thank you,
Quecumber256
|
|
|
|
|
Hi, I have a 2 textboxes .. one for the username and one for the password. Now when i try to login, i enter the username then the password and then when i press the ENTER key i wish that the button (Login) will be clicked. But right now when i wrote the user and pass and press the enter key it does not make anything
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Go to the login form and set the AcceptButton property to be the ID of your Login button. You can also set the CancelButton if your login form has one.
|
|
|
|
|
hi, i am using asp.net .. i cannot see any acceptbuttons in the property .. can you help me please
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Confirm whether UseSubmitBehaviour of the button is set to True
|
|
|
|
|
hi all,
i have a list of pictures and i want to display all on one page. please give me some idea how to do this.
|
|
|
|
|
Use a repeater or datalist control
only two letters away from being an asset
|
|
|
|
|
I need to return on the page from which I had navigated to the current page.in some conditions the page i have to return is the third or fourth previous page. is their any code to remember the sequance of pages.
I need it plz
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
Use a generic list object, adding each new page to it, and then storing it in the session object. You can then iterate down the list seeing all the pages visited to get to the current page.
Regards
Angel
*********************************************
|
|
|
|
|
No need to maintain a collection, one is alreay present. History
only two letters away from being an asset
|
|
|
|
|
Use the Javascript history object in the browser.
history.back(1) or history.back(3)
only two letters away from being an asset
|
|
|
|
|
Hi,
I have written a loop which iterates through all the directories and gives a list of files whose filenames contain a specific search word that has been specified by the user on GUI.
Now I need to display this file list with a hyperlink for each item, so that user can directly click that link and the file associated with that item will open.
How do I do that ?
Pls guide me
Thanks and best regards
Omkar Ghaisas
|
|
|
|
|
How about iterating through the array and creating hyperlinks for each file? One thing to consider is the files are going to be on the server, the user is on a client machine. The list might have drive letters in the path, ie c:\\myshare\\myfile.txt whereas the user would really want to see these as \\server\myshare\myfile.txt .
<br />
<br />
Array<string> mylistofFiles<br />
<br />
<br />
foreach( string myFile in mylistofFiles )<br />
{<br />
HyperLink lnk = new HyperLink();<br />
lnk.Text = "Click to view " + myFile;<br />
lnk.NavigateUrl = myFile;<br />
yourForm.Controls.Add( lnk );<br />
}<br />
This is from memory, and really a 'concept', not a concrete solution. If the file extension is registered on the users system, the correct app will open it for viewing.
Regards
Angel
*********************************************
|
|
|
|
|
Hi,
Thanks for replying. I tried using the above mentioned solution. Worked perfectly fine as far as creating the Hyperlnk is concerned. But the problem here is that when I click on the hyperlink, nothing happens.
What should I do for that.
Thanks a lot for responding quickly.
Best regards
Omkar
|
|
|
|