VS 2008 - Is Any Meaning Of # Char In Page Url
Apr 21, 2010is any meaning of # char in page url... u can see this in below [URL] see in last #tile=outlook...
View 12 Repliesis any meaning of # char in page url... u can see this in below [URL] see in last #tile=outlook...
View 12 Repliesi'm a new developer...i have been given a project to generate a user name of 6 chars. the user name has 1st 2 char the 1st 2 letters of the name and remaining 4 char as any random numbers. alone with that i have to send a random password with it..
View 2 RepliesBelow is my page code. Getting a error on Page, line 741, Char 5. Object expected.
<%@ Page Title="" Language="VB" MasterPageFile="~/Home.master" AutoEventWireup="false"
CodeFile="HSDDetails.aspx.vb" Inherits="_Default" %> [code]....
Inside an HTML code you can insert embedded code blocks some looks like <%= .... %> and some looks like <%# .... %> i was looking for an information about those syntaxes and their meanings, but with no luck. can you enlighten me or give a link to enlightment.
View 4 RepliesI was asked by my office non Web Developers what is the meaning of CODEBEHIND and where about is it referring to.
Here are the 2 sets of sample coding:
Coding from HTML
Code:
[code]....
What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState?
View 5 RepliesCan anyone tell me what does the term Output Assemblies designate to. Are these the compiled pages of the Website Project or something else ?
View 2 RepliesOBJECT_ID(N'AdventureWorks.Person.Address');
what does the "N" mean or do in this statement?
I have this code that once a column in gridview is clicked, it sort the record. Can someon explain to me what does
static Int32 cntsortSecurityID = 0; // declare var to hold 0 or 1 // what is this, I dont understand why. what is the meaning of zero or One in this case . Oh yeas, the code is working for me, but I need to understand the concept behind it.
if (e.CommandName == "sortSecurityID")
{
DataView dv = ((DataSet)(Session["data"])).Tables[0].DefaultView;
if (cntsortSecurityID == 0)
{
dv.Sort = "SecurityID asc";
cntsortSecurityID = 1;
}
else
{
dv.Sort = "SecurityID desc";
cntsortSecurityID = 0;
}
gvTrans.DataSource = dv;
gvTrans.DataBind();
}
I have been using Sql Server since 2003, and still encouter situations that are just hard to solve :)I know it's a an sql server question, but since it's from a methodology and architecture point of vue, I thought it fit in this forum I am facing a sort of conflict with my current customer :An old sql server database, migrated from sql server 2000 to sql server 2008 (2003 project), which serves an asp.net application and cubes.naming of tables are like the following : tbl_ and Vw and yet procedures have no underscores. The database contains no functions.All object names are abbreviated, without any dictionary to understand what they mean. We have to ask every time.We developed a new module, and followed Pascal Casing, with clear words for the tables meaning.The customer makes a code review and says, that object are not correctly named :) and the meaning of tables is not clear. Names like AnalyticsAxis, is simply not clear. We also are asked to follow tbl.
View 1 Replieswhen I add "%" character to the mvc url prject I get bad request from server , how to let such character to be allowed in the url I want this to work if possible/Home/%2fContentFiles%2fImages%2f2.jpg/194/184/w if I remove "%" it work fine
View 4 RepliesI have a list XML elements that I need to compare to chars in an array. Some of the XML elements start with uppercase characters and some dont.
So I need to convert the XML elements to lowercase to compare them against "alphabet".
I'm doing this by converting the XML element to a string. Then setting that to lowercase. Then converting that to a char. Then comparing that to each char in "alphabet".
Is there a better way to get the XML into lowercase? IE without the two conversions
[Code]....
how to change
XXX@YYY.ZZZ into XXX_YYY_ZZZ
One way i know is to use the string.replace(char, char) method,
but i want to replace "@" & "." The above method replaces just one char.
one more case is what if i have XX.X@YYY.ZZZ...
i still want the output to look like XX.X_YYY_ZZZ
I am trying to interpret the meaning of "mscorwks.dll!StrongNameErrorInfo+0x7688". I guess it means, that the assembly loaded by the mscorworks.dll has no StrongName? If yes, does this have any negative impact for a web application?
Is it safe to assume that the thread count of 107 means, that web application needed at a peek a maximum of 107 concurrent threads to handle incoming requests?
I am using SQL Server 2008 Web Edition and it seems my SQL queries are automagically having the double quotes replaced with ' + CHAR(34) + '. I am trying to pin down why this is happening, I am using Delphi with ASP.NET and using the ADO.NET object for the SQL.
Has anyone come across this before?
When I try to run the following code it always spits out the hex representation, not the integer representation. Most of the examples I found on MSDN said this should work. What am I missing?
var stringBuilder = new StringBuilder("8");
int j = 0;
foreach (char item in stringBuilder.ToString())
{
j = Convert.ToInt32(item); //returns 38, need return to be 56
}
edit I should have made clear that I know the difference it's returning the hex value. I'm outputting the value to a file, and in that file, it still shows the hex value, not the integer, so I don't think it has anything to do with the debugging environment. edit2 Looks like a PEBKAC problem. Looked at the code that was writing to the file, and it was using a .toString("X") method, changing it to a Hex value. The fact that it was hex in my debug environment was what confused me.
i wanna convert char to double type and convert it to date.char->double then double -> date type.I have a whole string and i trim it into 3 parts. In my item(2) is a UNIX Timestamp i'm trying to convert it into date type.
[Code]....
I was looking for how to make a password char in console. I solved it it with this [URL] ....
But is there anyway to read the password and if its GOOD, it change the pass tthe word "RIGHT Password" And if its wrong make it "Bad password", then make a new line with again. "Enter password"....
What is the meaning of "strongly typed view" in ASP.Net MVC.
View 1 RepliesI use asp.net + MVC1.0 and in a webpage I have several forms, within each forms I have called the following function
AntiForgeryToken() to generate a hidden value, and in Controller function I have a validate attribute.
When I use JMeter and capture the token using regular expression then post the token with my form to server, I found it throw such a exception:
<html>
I am building a page which has to search an access table with the text input entered by the user. The thing that is puzzling to me is that the functionality works only when a '%' is explicitly added to the text input at the begginning and end.
If I add '%' programattically in the code behind file, it does not work.
code snippet ( asp page):
<asp:AccessDataSource ID="AccessDataSourcex" runat="server"
DataFile="~/App_Data/company.mdb"
SelectCommand="SELECT [ID], [emp name] AS emp_name, [emp title] AS emp_title FROM [EmpMain] WHERE ([emp name] like [code]...
//the below line is of no use, the % char has to be in the text input
//txtSearch.Text = "%" + txtSearch.Text + "%";
GridView1.DataBind(); <---- this works fine
<--- this does not work, even if I add % chars programatically..
My question is: why does it not work when I programattically add the '%' chars to the search string..
What are the basic difference between the char and varchar datatype ?
View 5 RepliesI'm using DAAB from MS Ent Library 4.1. I have this function in my DAL that returns a dataset.
[Code]....
However, it is failing with this error:Failed to convert parameter value from a String to a Boolean.
But if I use SqlDbType.VarChar instead it works fine. I want to use Char b/c that is the correct datatype in SQL.In my SP the param is @CUSTNMBR char(15). In my database table the field is also char(15).
Let's say I am pulling data from SQL using a function that returns one field - date. I can see that in my model code for a getter, setter, and other things are set for DateTime. What happens if I go into the function and convert selection of my date field into char(10)?
View 6 RepliesI have the following string stored in a char column of sql server (there are several this one is just an example):
Code:
ROix5LkY0Zps4MPcWnSmiw==
I also have the key used to generate the string:
Code:
6B9245B1A88A82FC328C8A1B8870E34D
And I found the following solution to decryp and encrypt:
Code:
Dim des As New TripleDESCryptoServiceProvider
Dim md5 As New MD5CryptoServiceProvider
'hash function
Function md5hash(value As String) As Byte()
Return md5.ComputeHash(ASCIIEncoding.ASCII.GetBytes(value))
End Function
[Code] ...
It works like a charm when i encrypt and decrypt values set by me in the page;
But when i use the value stored in the DB it throws the following error;
"An exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll but was not handled in user code
Additional information: Bad Data."
I am i using the wrong crypto class ? it's a length issue? the string is not base64?