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 
GeneralRe: news article pagememberJoshua Omundson9 Jul '12 - 13:27 
I'm sure the OP is asking if a database would be a good way to store the news articles, pictures, etc.
AnswerRe: news article pagememberzhxhdean11 Jul '12 - 19:28 
hi,
text,images's path into database,images into files of server Laugh | :laugh:
Generalasp.netmemberrinku rlsual7 Jul '12 - 7:00 
what is the beginner coding for creating web designing.
AnswerRe: asp.netmvpSandeep Mewara7 Jul '12 - 7:59 
Sounds like you are into web and started with ASP.NET.
 
Start from here: ASP.NET Tutorial: Your first website[^]
 
Look at these too to learn more:
ASP.Net get started[^]
ASP.NET Projects from CodePlex [^]
MSDN: ASP.NET Developer Center[^]
ASP.NET website[^]

AnswerRe: asp.netmember@amitgajjar10 Jul '12 - 22:40 
My Favorite C# book[^] please refere once if you are interested in C#
GeneralRe: asp.netmemberzhxhdean11 Jul '12 - 19:31 
you must study html/css/javascript/asp.net/sqlserver etc
QuestionGroupvalidation in asp.netmemberdeeptul7 Jul '12 - 1:32 
i have login page conatiend two button login and other for regsitration my login page i applyed validation textbox1 and textbox2 as i left it blank click on Registeration button it will not allow to move regsteration page bcoz all this validation.
tell me how can i group text box with login button
AnswerRe: Groupvalidation in asp.netmvpSandeep Mewara7 Jul '12 - 8:15 
Just do something like:
<tr>
  <td style="width: 100px"> First Name</td>
  <td style="width: 100px">
    <asp:TextBox ID="txtFirstName" runat="server" ValidationGroup="Name_Group"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName" ErrorMessage="Enter First Name" ValidationGroup="Name_Group" Width="149px"></asp:RequiredFieldValidator>
  </td>
</tr>
<tr>
   <td style="width: 100px">Last Name</td>
   <td style="width: 100px">
     <asp:TextBox ID="txtLastName" runat="server" ValidationGroup="Name_group"></asp:TextBox>
     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLastName"  ErrorMessage="Enter Last Name" ValidationGroup="Name_Group"Width="152px"></asp:RequiredFieldValidator>
   </td>
</tr>
<tr>
  <td style="width: 100px"></td>
  <td style="width: 100px">
    <asp:Button ID="btnRegister" runat="server" Text="Register" ValidationGroup="Register_Group" />
  </td>
</tr>
ValidationGroup="Register_Group" takes care of your scenario.
 
Following illustrates on how you can group them:
Validation group in ASP.Net 2.0[^]
MSDN: Specifying Validation Groups[^]

GeneralRe: Groupvalidation in asp.netmemberdeeptul11 Jul '12 - 6:56 
hey thankz for reply can you help me out for caching asp.net i m beginners
AnswerRe: Groupvalidation in asp.netmvpSandeep Mewara11 Jul '12 - 7:18 
You can just start from this article: Exploring Caching in ASP.NET[^]

QuestionC# web app -not see variable valuesmemberclassy_dog6 Jul '12 - 21:19 
When I am debugging a C# 2010 web form application that is running against iis7 from my visual studio.net 2010 professional ide, I get messages like the following:

this Cannot obtain value of local or argument '' as it is not available at this instruction pointer, possibly because it has been optimized away. Damport.DImportDataContext fileOrServerOrConnection Cannot obtain value of local or argument 'fileOrServerOrConnection' as it is not available at this instruction pointer, possibly because it has been optimized away. string mapping Cannot obtain value of local or argument 'mapping' as it is not available at this instruction pointer, possibly because it has been optimized away. System.Data.Linq.Mapping.MappingSource

This kind of error message occurs in different sections of the code. Some sections I do not have this problem.

Basically when this kind of error message occurs, I can not see the value in different variables. Thus can you tell me what I can do so that I can see the value of the variables when this error occurs?
AnswerRe: C# web app -not see variable valuesmvpSandeep Mewara7 Jul '12 - 8:05 
Try deleting the solution user options file. (It's a hidden file next to solution file with the extension .suo)
 
If that does not resolve then here are couple of tricks to solve it: How to disable optimizations during debugging[^]

Questionasp.net file name problemmemberrachel_m6 Jul '12 - 6:28 
I have a C# 2010 web form application that uses linq to sql connections. I am having problems with the visual studio.net 2010 ide opening up very slowly.
The problem looks like I need to change part of the name for a dbml file. Here are the names I am working with;
1. testapp.dbml,
2. testapp.dbml.layout, and

3. testapp1.designer.cs.
 

I know the problem is the name called testapp1.designer.cs.
 
I do not know how to change the name of this element. The visual studio.net ide will not let me change
the name from testapp1.designer.cs to testapp.designer.cs.
 
Thus can you tell me how to change the name?
 
If you think something else is causing the problem, can you let me know what it is and how to solve the problem?
AnswerRe: asp.net file name problemmvpRichard MacCutchan6 Jul '12 - 21:24 
You need to apply the rename to the parent file testapp1.cs.

GeneralRe: asp.net file name problemmemberrachel_m7 Jul '12 - 10:37 
I changed the higher level file name to:
testapp1.
 
Then the lower level file name became the following:
testapp11.
 
Do you have other suggestions?
GeneralRe: asp.net file name problemmvpRichard MacCutchan7 Jul '12 - 23:07 
Strange, there must be some other naming system in web applications; I have never seen this before. Maybe you should create a new project and see if it follows the same pattern. I also forget why you need to change this name, perhaps you could clarify what the problem is.

Generalweb app default connection string problem [modified]memberdcof6 Jul '12 - 4:47 
I am having a problem with the default behavior of linq to sql when I added a new table to the app.dbml file to an existing C# 2010 web form app. . The application changed the connection string from appConnectionString (Settings) to OtherConnectionString (Settings).
 
I am trying to get the app.dbml file file to allow me to change it back to appConnectionString (Settings). However the designer is not allowing me to do that unless i create a new connection string.

Basically I am opening the app.dbml file so I can see the designer. From here I click on properties and I see the connection string settings.

Thus can you tell me how I can get access to change the setting back to appConnectionString (Settings)?

modified 6 Jul '12 - 16:24.

QuestionNothing happens when create file with HTMLReportEnginememberMonetto6 Jul '12 - 4:25 
Hi All,
 
I'm using HTML Report Engine to create reports in my ASP.net pages (framework 3.5), but I'm receiving false when will save the report.
 
I'm trying to figure out why of this false return, and in the folder where the file should be in, there´s no file.
 
Something wrong with my environment?
Anybody can help me please?
 
Thanks in advance
Regards
Alex
AnswerRe: Nothing happens when create file with HTMLReportEnginemvpSandeep Mewara7 Jul '12 - 8:36 
Monetto wrote:
Something wrong with my environment?

Anybody can help me please?

Whatever you have shared is insufficient to comment. There is some unexpected behavior and you ask us why so without any further reference or clue.
Have a look at the sample implementation of HTML Report engine here and see if you find any discrepancy: The HTML Report Engine[^]

QuestionCaptchamemberElham M6 Jul '12 - 1:58 
Hi
I'm looking for an asp.net captcha that free and doesn't have a reference to any site but I couldn't find any Frown | :( please help me
AnswerRe: CaptchamvpSandeep Mewara6 Jul '12 - 3:49 
Did you look here: http://www.codeproject.com/search.aspx?q=captcha&x=0&y=0&sbo=kw[^]...
What about: CAPTCHA Graphic in ASP.NET[^] ?

GeneralRe: CaptchamemberElham M6 Jul '12 - 9:09 
Thanks for your help it's really usefulThumbs Up | :thumbsup: Smile | :)
GeneralRe: CaptchamvpSandeep Mewara6 Jul '12 - 22:55 
Good to know it helped.

QuestionHow to Merge a particular column in gridview using asp.net ?membersharmila rao6 Jul '12 - 1:35 
Please somebody post reply to this. I am a new developer, and am searching for merging rows of particular column alone.
Thanks,
Sharmi

AnswerRe: How to Merge a particular column in gridview using asp.net ?memberHum Dum6 Jul '12 - 1:54 
Merge column of table (data source).
 
you have select statement like
Select A, B, C from tableName
 
so modify it like
Select A = A+B, C from tableName
 

If you can't access select statement, then you have to modify datasource object prior setting to grid !
GeneralRe: How to Merge a particular column in gridview using asp.net ?membersharmila rao6 Jul '12 - 2:03 
Sorry Let me clearly ask the question again. I am binding the data from stored procedure. I must not touch the SP now. I just need to write a code in rowbound function for merging. I find only the below code in all blogs. It is merging rows of all columns in grid, i need it for only 1 column.
 
for (int rowIndex = REGrid.Rows.Count - 2; rowIndex >= 0; rowIndex--)
{
GridViewRow gvRow = REGrid.Rows[rowIndex];
GridViewRow gvPreviousRow = REGrid.Rows[rowIndex + 1];
for (int cellCount = 0; cellCount < gvRow.Cells.Count; cellCount++)
{
if (gvRow.Cells[cellCount].Text == gvPreviousRow.Cells[cellCount].Text)
{
if (gvPreviousRow.Cells[cellCount].RowSpan < 2)
{
gvRow.Cells[cellCount].RowSpan = 2;
}
else
{
gvRow.Cells[cellCount].RowSpan = gvPreviousRow.Cells[cellCount].RowSpan + 1;
}
gvPreviousRow.Cells[cellCount].Visible = false;
}
}
}
 
This is the code. Could you please help me in this, how to re frame this loop for just 1 column. Lets assume for the first column in grid. thanks in advance
Thanks,
Sharmi

AnswerRe: How to Merge a particular column in gridview using asp.net ?memberElham M6 Jul '12 - 2:11 
Visit this link http://marss.co.ua/MergingCellsInGridView.aspx[^]
GeneralRe: How to Merge a particular column in gridview using asp.net ?membersharmila rao6 Jul '12 - 2:24 
 Hi , I already saw that link, It is merging all columns right. I need to merge just for 1 column. I dint get it properly,the code. If possible could u pls explain each line. 
 
:confused: 
Thanks,
Sharmi

GeneralRe: How to Merge a particular column in gridview using asp.net ?memberElham M6 Jul '12 - 8:55 
so you should remove
for
in your perevious code and on GridView1_RowDataBound event
try this code: as an example if you want to merge cells 2 of your grid
e.Row.Cells[2].ColumnSpan=2;
Help people is help yourself

AnswerRe: How to Merge a particular column in gridview using asp.net ?membersharmila rao6 Jul '12 - 2:44 
 Friends, Please help me with this as soon as possible. By monday i need to show a demo to my Manager. Kinldy do the needful
Thanks,
Sharmi

GeneralRe: How to Merge a particular column in gridview using asp.net ?membersharmila rao8 Jul '12 - 22:48 
Big Grin | :-D I got it done myself. It is working fine now.
Thanks,
Sharmi

AnswerRe: How to Merge a particular column in gridview using asp.net ?memberashjassi17 Aug '12 - 3:02 
Hi dear you can first add column to the datatable before adding to datasource acording to the datatype
QuestionAdding kooboo to existing Mvc functional websitememberMihir Naik5 Jul '12 - 20:50 
Hello,
 
I have Mvc 3.0 functional web site but i need to add CMS into this for static pages. On Kooboo documentation, i saw adding new module to Kooboo site. But is there any way of adding kooboo(for static pages) into my existing mvc functional website ? This will be very helpful to me.
 
Thanks !
QuestionExport data to ExcelmemberMember 91698875 Jul '12 - 17:09 
How to export few sets of data to excel in different worksheets under same book in c#?
I have tried using for loop to call the function which export to excel but it stop after open 1 excel book.
What should I do?
AnswerRe: Export data to ExcelmvpAbhinav S5 Jul '12 - 17:18 
Export multiple DataSets to multiple Excel sheets dynamically formatted according to the record's data type[^] could give you some ideas on how to do this. Searching on the internet might give you some other options as well.
Build your own survey - http://www.factile.net

GeneralRe: Export data to ExcelmemberMember 91698875 Jul '12 - 19:35 
Thanks alot Smile | :)
GeneralRe: Export data to ExcelmvpAbhinav S5 Jul '12 - 19:37 
You are welcome. Vote if it helped.
Build your own survey - http://www.factile.net

Generalweb app dll files [modified]membersc steinhayse5 Jul '12 - 6:52 
I am wondering what configuration settings(s) are incorrect in a C# 2010 setup and deployment project in the following two situations:
 
1. My goal is to recover some lost C# .net source code files by looking at the setup and deployment project.
 
Right now when I use decompiler software, I obtain only the *.cs files that are generated by the .net framework. I do not have any *.cs files that were written by people.
 
One of my options I have setup in my visual studio.net 2010 professional version is to debug code generated by the .net framework and code written by people. Would I need to change my debug options to 'just my code'?
 
2. I am wondering if I am looking for the wrong type of files and/or possibly looking in the wrong place for the files?
 
I am looking at the dll files in the bin directoy fo where the C# 2010 web form application has been deployed to.
 
Let me know if you have any answer(s) to my question(s).
 
Thanks!

modified 5 Jul '12 - 22:11.

AnswerRe: web app dll filesmvpAbhinav S5 Jul '12 - 17:19 
You have posted a very similar question in the C# section as well.
It is always advisable not to crosspost.
Build your own survey - http://www.factile.net

GeneralRe: web app dll filesmembersc steinhayse6 Jul '12 - 3:19 
sorry. I did not realize that was not a good isea. from now on, i will only post in one forum
QuestionDatalist BackgroundmemberDeepak-Tamil4 Jul '12 - 20:42 
In datalist i have to show the images... Before that i have to set background for every image.. how can i give background image in datalist..?
 
Example: http://www.csstemplateheaven.com/demo/classic_luxury_demo/gallery.html
 
In this they have used White backgroud image with some shadows for every image from the database.. Likewise i have to do it in datalist..
 
I have to set white backfround with some shadows for every images from database...
 
Please help to solve the above issue..!
aaryanvlb

AnswerRe: Datalist BackgroundmemberDeepak-Tamil5 Jul '12 - 4:06 
I have got the solution using div tag.. Thank You...
Generalasp.net 2010 code compare [modified]memberdcof3 Jul '12 - 10:56 
I would like to know what a good open source (free) tool that I can use to compare C#.2010 web form code. Basically I want to compare code that is in a visual studio.net professional environment to the same some that is obtained from Jetbrains dotPeek decompiler tool.
 
I want to see if the source code I have is the same as the decompiled code.
 
Does visual studio.net 2010 professional edition have a code compare feature in it? (I am not using team server foundation.) If so, I do I access the code comparison feature in visual studio.net 2010 for web forms?

modified 3 Jul '12 - 17:19.

GeneralRe: asp.net 2010 code comparememberjkirkerx3 Jul '12 - 11:53 
I'm just curious, what do you really want to do?
 
Do you have a DLL in the Bin Folder, and you need to inspect the code, or compare it to replacement code that you are writing to replace the DLL?
 
If so, do you have the source project to create the DLL?, or your not able to get or obtain the source project code.
GeneralRe: asp.net 2010 code comparememberdcof3 Jul '12 - 15:09 
The contract shop that wrote the application gave us a 'copy' of the production code. When we try to make any changes to that code the website has bad error messages. The production executables do not act this way.
 
Thus we are assuming that the contract shop gave us incorrect 'production' code. If we want to enhance the web application, we know that we can not start with that code base.
 
The bin directory has alot of dll files. I want to inspect that code and compare it with
the code we are told is the 'good' production code to see what the differences are.
GeneralRe: asp.net 2010 code comparememberjkirkerx3 Jul '12 - 18:03 
File dates and version numbers are a good start.
 
The newer the file, the better the code.
 
Do you have any of the source projects to the DLL's?
 
Not that many programmers know how to write a server control compiled as a DLL, because they don't understand the page life-cycle. So what appears to work in development, bombs in actual production use.
 
In the asp.net website forum server controls, about 3/4 of the OPPs have no clue what there doing. The most common mistakes are classic asp programmers using response.write like it's a php program, to create html tags. The other is not creating html object in OnInit, and loading data in OnLoad.
 
If you have the source code to the DLL, or at least 1 DLL, post a server control page from it, the whole page, and let me check it out. A server control page should have a header that looks like this, or similar in c#
 
If the sample looks really bad, then it's a positive indicator that the code needs to be cleaned up, and reformatted, and will represent the quality of all the other code you purchased from the contractor.
 
Or post 1 page of the decompiled output at least. It will save you a lot of time and trouble, and others will be able to monitor the response, so that's its genuine.
 
<DefaultProperty("Text"), ToolboxData("<{0}:browser_File runat="server"></{0}:browser_File>")> _
Public Class ckEditor_file_Browser
    Inherits WebControl

GeneralRe: asp.net 2010 code comparememberdcof4 Jul '12 - 14:45 
The bad code I am referring to looks like the contract shop obtained the code from the following url:
 <a href="http://www.asp.net/community/control-gallery/Item.aspx?i=69"> 
The code listed above is embedded in a C# 2010 web form application that uses 2010 master pages alot. There is no MasterPages.dll (assembly) on the server production server.
So could the 'old' master pages code I am referring hurt (interrupt) the regular master pages from working correctly?
Generalmasterpagesmemberjkirkerx5 Jul '12 - 7:08 
The Project is writen in c#, so if your project is vb, then you have to translate the MasterPages.cs to vb and rename it MasterPages.vb
 
The MasterPages.cs file needs to be located in a folder called App_Code. This folder is for non dll class objects, and asp.net will compile everything in that folder to a dll in the background. In other words, the Dll's are located in the
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files 
folder, as shadow copy files.
 
I use the MasterPage webform, which does the same thing. You make a folder called MasterPages, and place a MasterPage webform type in it. Then you copy and paste your template web markup in it, assign your content region names, and create a regular webform that uses a masterpage, assign the masterpage, and populate your content regions.
 
The MasterPage has replaced the MasterPages.cs, has a standard item in asp.net, years ago probably back in 2004.
 
Do a new masterpage as a test, This is a new blank masterpage. The first line is required to tell asp.net that it's a masterpage. I think you can just paste this in, and change your
 
<%@ Master Language="C#" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
 
</script>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
 
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>
 
replace this
<%@ Register TagPrefix="mp" namespace="Microsoft.Web.Samples.MasterPages" assembly="MasterPages" %>
with this
<%@ Master Language="C#" %>
 
replace this
<mp:region runat="server" id="region1">
with this
<asp:ContentPlaceHolder id="head" runat="server">

GeneralRe: asp.net 2010 code comparemembermark merrens3 Jul '12 - 16:35 
See my answer here[^]. Not exactly what you want but it will allow you to decompile and inspect the dll code and is very easy to use.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
 
me, me, me

GeneralRe: asp.net 2010 code comparememberBillWoodruff5 Jul '12 - 13:41 
The obvious question that "leaps out at me" on this thread, when you disclose there's some discrepancy between two files that came from a "contract shop:"
 
Why aren't you able to get the correct code from the contract shop, or get them to resolve this ?
 
Something happened that prevents you from getting any support from them ?
 
best, Bill
The glyphs you are reading now: are place-holders signifying the total absence of a signature.

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


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