|
If you don't set the locale, you will not use the correct sort order for each language.
If the sort order is similar, there may still be some differences. Like for example if v and w are sorted together or not, and if characters like å, ä and ö come last in the alphabet (as in swedish) or are considered forms of the characters a and o.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
I use n-tier architecture in my day to day programming.
If I use a sqldatasource to connect to a database then it seems the select query gets generated within the aspx page. So this to me does not seem to be n-tier because the database access is within the aspx page itself rather than using another layer.
Question:
1)
How can sqldatasource be used in an n-tier architecture developemnt.
2)
Am I right to say that the answer to my question is ObjectDataSource?, if so, does this have limitations to the coding the connection, command, etc, in the code ?
Thanks
|
|
|
|
|
Every Wizard that you will use in VS will have limitations. it is better to Write your DAL and your BLL. you right if you use the datasource control,your DAL will now be in your PL(Presentation Layer) and that will not be "N-tier" Style.
Hope this helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I just started a new contract and the tech lead told me that he wanted me to become familiar with something called "JROC" (among some other tools).
I've been searching the web and I haven't found any dev tool called "JROC."
Based on the name of the tool, it sounds like it encapsulates some javascript functionality.
I have tried searching for different spellings - "JROK" / "JROCK" / "JROQ" but I haven't found any matches.
Have you ever heard of a dev tool by this name?
|
|
|
|
|
I am getting a weird error when I try to create a user through Web Site Administration Tool - http://tinyurl.com/3qww3y[^]
The root causes does not appear to be clear. Any suggestions on how to debug this issue?
|
|
|
|
|
I am using VS2008 and I am can't seem to figure out how to open the "Web Site Administration Tool."
MSDN says - "To access the Web Site Administration Tool, on the Website menu, click ASP.Net Configuration."
However, I don't see "Website" as a top-level or child menu item or under "View>Toolbars>Customize."
Am I missing something here?
|
|
|
|
|
It's right between Refactor and Build on the toolbar if you are actually working on a web application.
|
|
|
|
|
I don't see the Refactor menu item.
Here are screenshots of the default menu bar, the available toobars and the About box for instance of VS2008 - http://tinyurl.com/4ng994[^]
What are your thoughts on this?
|
|
|
|
|
How did you create this project?
|
|
|
|
|
Found it. In my version of VS2008 it's under "Project > ASP.NET Configuration"
|
|
|
|
|
i have a gridview and it has 2 rows.
in each row there is a button (Show Details).
i would like to take the user to another page page when he cliks the button. and in this page show the details of the particular row from the 1st page.
this is my gridview:
<br />
<asp:gridview id="GV1" runat="server" autogeneratecolumns="False" xmlns:asp="#unknown"><br />
<columns><br />
<asp:buttonfield text=" Show Details " headertext="Show Details" buttontype="button" commandname="ShowDetails" /> <br />
<asp:boundfield headertext="ID Number" datafield="IDNumber" readonly="true" /><br />
<asp:boundfield headertext="First Name" datafield="FirstName" /><br />
<asp:boundfield headertext="Last Name" datafield="LastName" /><br />
</columns><br />
</asp:gridview><br />
how can i do this from the code behind page?
|
|
|
|
|
when the user clicks the button, how can i identify the "IDNumber" of that particular row?
can anyone help me?
|
|
|
|
|
I created and referenced the following gridview dynamically
which provides more flexibility. Consequently, you have an onclick attribute that gets the value and reset the function/procedure
protected void Page_Load(object sender, EventArgs e)
{
grid1.Visible = true;
setGridValues();
}
private void setGridValues()
{
grid1.Visible = true;
grid1.AutoGenerateColumns = true;
DataTable dt = new DataTable(); // dataTable
// column names ...
dt.Columns.Add("ID");
dt.Columns.Add("DateRequested");
dt.Columns.Add("ServicePartNo");
dt.Columns.Add("qty.");
dt.Columns.Add("VIN");
dt.Columns.Add("RoNo");
dt.Columns.Add("GCQIS");
dt.Columns.Add("Status");
// add hyper link to add to grid1........................
HyperLinkField linkX = new HyperLinkField();
string[] fldS = { "ID","Status" };
linkX.HeaderText = "ReqID";
linkX.DataTextField = "ID";
linkX.DataNavigateUrlFields = fldS;
linkX.DataNavigateUrlFormatString = "summaryReqNo.aspx?reqNo={0}&status={1}";
linkX.Target = "_self"; // = "_blank"
grid1.Attributes.Add("BackColor", "#CCCCCC"); // add attributes to grid
grid1.Attributes.Add( "BorderColor", "#000099");
grid1.Attributes.Add("BorderWidth", "3px");
grid1.Attributes.Add("ForeColor","#333399");
grid1.Attributes.Add("Width", "7in");
grid1.Columns.Add(linkX); // adding hyper link devined above to grid
cRequests reqS = new cRequests(userX); // values from classto loade into grid
// adding rows to grid1 ......................................
foreach (cRequest item in reqS)
{
object[] aryX = new object[8];
aryX[0] = (item.reqID);
aryX[1] = (item.reqDate).Value.ToShortDateString();
aryX[2] = (svcPN.prefix) + "-" + (svcPN.basePart) + "-" + (svcPN.suffix);
aryX[3] = (svcPN.svcQty);
aryX[4] = (item.reqVIN);
aryX[5] = (item.reqOrdNo);
aryX[6] = (item.reqGCQISNo);
aryX[7] = item.status;
dt.Rows.Add(aryX);
}
grid1.DataSource = dt;
grid1.DataBind(); // gridX.DataSource = arryLstX;
}
hope this helps; Signed... Linda
xxx
|
|
|
|
|
Hai
I need to send E-mails to 1000 clients every end of the month automatically, so please tell me some ideas that how i can do that.
i will have all 1000 client address stored in a DB and on a specific date
mails need to get dispatched.
Thanks in Advance
|
|
|
|
|
sathimailin1 wrote: Mailing thru Asp.net
ASP.Net is a web technology and every web technology works on request response method. So from where do you think are going to trigger the sending of email automatically?
sathimailin1 wrote: i will have all 1000 client address stored in a DB and on a specific date
What I suggest is create a Windows Application to do this for you and schedule it accordingly.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi
Thanks for your reply but i want to do that in ASP.NET ,
|
|
|
|
|
sathimailin1 wrote: i want to do that in ASP.NET
Uh, Why? If you can't answer that adequately, stop and think. Answers that are not adequate include but are not limited to "because the rest of the project is ASP" or "because the client wants ASP". It's completely and utterly the wrong platform. It will get you nothing more then a horrendously complicated solution to a fairly trivial problem.
Like Manas said, create a windows app or service.
Bar fomos edo pariyart gedeem, agreo eo dranem abal edyero eyrem kalm kareore
|
|
|
|
|
Many email servers "throttle" email sending, limiting you to only so many emails per hour, or requiring a certain number of seconds between emails, or limiting the number of recipients on a single email. This is to keep the mail servers from being blacklisted as spam-generators!
So you might want to find out what limits, if any, are imposed by the email server(s) you will be using, and design accordingly.
other than that, System.Net.Mail does a fine job but I suggest you write a class/component to do the work so you can call it from asp.net or a winforms app or a service or whatever you end up with. Though it is possible to do what you want from asp.net, (a) there's no real need to do it that way and (b) it will be problematic to figure out how to trigger it appropriately on schedule
good luck!
|
|
|
|
|
Thanks for your kind reply
|
|
|
|
|
Hi,
What is best machinsm to check whether the server is UP or not?
How far ping mechanism is reliable?
If any good machanism is there to check whether server is UP or not?
Kindly help me
|
|
|
|
|
Obvious really, post it on multiple forums gets more answers - not.
Its rude to post to multiple forums.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Don't cross post. That's rude.
Now, you could always just ping a packet to the server, and if you get a reply, it is up.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
ping if pretty reliable, assuming the server is configured to respond to a ping request, but -
- you may want to wait until the server has failed, say, three pings in a row before flagging it as 'down', depending on how often you ping it, and
- don't ping it too often
if you need to verify something other than 'the server responds to pings' then a better option might be to write a program that tests the server functionality that you want to verify, and have it run as a scheduled task; no response w/in a certain timeframe means your server is down (or your test program has failed). Alternately, your test program could be presented as a web service from the server and called periodically remotely. There may be other options as well, it depends on precisely what you need to verify.
good luck!
|
|
|
|
|
This seems like an easy task but I havn't mangade to figure it out.
I have a table like this:
<table cellpadding="0" cellspacing="0" class="tabAdminUser" width="257px" border="0">
<tr>
<td style="width:103px" rowspan="8"></td>
<td class="lblStyle1"><br />$User_usergroups$</td>
</tr>
<tr>
<td style="height: 9px">
<asp:LinkButton ID="lbtnUserSearch" runat="server" Height="9px" CommandName="userSearch" CssClass="lbtnStyle8"
onclick="lbtnGoToPage_Click">$Search_for_user$</asp:LinkButton>
</td>
</tr>
<tr>
<td><asp:LinkButton ID="lbtnNewUser" runat="server" Height="9px" CommandName="newUser" CssClass="lbtnStyle8"
onclick="lbtnGoToPage_Click">$New_user$</asp:LinkButton>
</td>
</tr>
<tr>
</table>
The problem is that I want the LinkButtons to be closer to each other.
I belive I've tryed everything, from setting the hight on the tablecell and linkbutton, but
no mather what, the tablecell always is 19px high.
Thanks
Thomas
|
|
|
|
|
try setting margin-top:-2px; on the bottom linkbutton.
I didn't get any requirements for the signature
|
|
|
|