|
In ASP.NET 2.0 there is one new tool called hiddenfield and i want to know the usage of that control
Vimal Joseph
Software Engineer
Quest Informatics
|
|
|
|
|
Hi
HiddenField Contorl is similar to hidden input type(<input type="hidden" id="hidden1">) in Html.You can use this to store values.
eg:-
Assigning value to HiddenField:-
HiddenField1.Value = "Your Value";
Retriving value from HiddenField:-
Response.Write(HiddenField1.Value);
Sandeep Kumar.V
|
|
|
|
|
Hello,
Assigning value to HiddenField:-
HiddenField1.Value = "Your Value";
Retriving value from HiddenField:-
Response.Write(HiddenField1.Value);
* But this is not working for another pages.
Vimal Joseph
Software Engineer
Quest Informatics
|
|
|
|
|
I have a gridview where there should be a column where Delete and if I click on specific record it delet that record from the gridview as well as from datasource. How can I do that.
Thanks in advance
|
|
|
|
|
|
i am using visual studio 2003
primarily i am experiencing difficulties with the range validator..
i am trying to create a range for a password field !
i have the max value set to 12
and the min set to 6
type = string
this was generating an error at compile time.
i read on another forum that this could be solved by switching the type to integer.. the code now compiles but generates an error regardless as to what is put in.
also i was trying to validate a D.O.B field with a regular expression validator.. but my mind is blow here. im completely lost as, date doesnt seem to exist as a regular expression.
any help much appreciated
cheers
John Michael Kinsella
kinsellajohn@hotmail.com
|
|
|
|
|
(0[1-9]|1[0-2]|[1-9])/(0[1-9]|1[0-9]|2[0-9]|3[0-1]|[1-9])/\d{4})$ this is reg exp to validate a date.... mm/dd/yyyy format
mareers
|
|
|
|
|
Hi
For your requirement try to use javascript insted of Range Validator as the Range Validator will not Check the Length.Range Validator checks the Value which u entered in the textbox with the Minimum value and MAximum value.
In your case you are getting Compile time error because whenever type=string then it checks the ASCII values of the Min value and Max Value(Only first Characters) as you entered min value as 6(ASCII value is 54)which is greater than Max value 1(ASCII Value is 49) so it showing compile time error.
So for your requirement you can write a Javascript function to validate that input length.
|
|
|
|
|
thank you for your suggestion,
could you suggest the javascript that i could use as i dont actually have any experience with it..
just a snippet of code that forces a value of between 6 - 12 characters would be greatly appreciated..
John Michael Kinsella
kinsellajohn@hotmail.com
|
|
|
|
|
Hi! Recently I was asked in an interview. What's the difference between 3 layer and 3 tier architecture? I found conflicting answers on the net. Please someone guide me in the right direction.
Thanks
Don't Quit
|
|
|
|
|
Hi, This is very good question. 3 tier means physical separation of the project. The three projects resides on different machines/Single machine.
3 Layered project means logical separation of the project. In this case output exe/DLL can be single.
Please mail me in case more information is required
|
|
|
|
|
N-layers of application may reside on the same physical computor(same tier) and the components in each layer communicates with the components of other layer by well defined interfaces.Layered architecture focuses on the grouping of related functionality within an application into distinct layers that are stacked vertically on top of each other.Communication between layers is explicit and loosely coupled.With strict layering, components in one layer can interact only with componentsin the same layer or with components from the layer directly below it.
The main benefits of the layered architectural style are:
Abstraction,Isolation, Manageability, Performance, Reusability, Testability.
N-tiers architectue usually have atleast three separate logical parts,each located on separate physical server.Each tier is responsible with specific functionality.Each tier is completely independent from all other tier, except for those immediately above and below it.Communication between tiers is typically asynchronous in order to support better scalability.
The main benifit of tier achitecture styles are
1.Maintainability. Because each tier is independent of the other tiers, updates or changes can be carried out without affecting the application as a whole.
2.Scalability. Because tiers are based on the deployment of layers, scaling out an application is reasonably straightforward.
3.Flexibility. Because each tier can be managed or scaled independently, flexibility is increased.
4.Availability. Applications can exploit the modular architecture of enabling systems using easily scalable components, which increases availability.
Ram Balak sharma
.Net Architect
Q3 technogies
Gurgaon
India
|
|
|
|
|
Please Help me How to use FCK Editor
Thank
|
|
|
|
|
kamka411 wrote: Please Help me How to use FCK Editor
This is not the rite forum to give help for FCK Editor. Why don't you check in their website ?
|
|
|
|
|
I'm currently posting the values in an HTML table as follows:
___________________________________________________
cid = Request.Form("stateabbr")
sql="SELECT State, CrossLinkFormID, DORFormID, FinalDraftDate, SubmissionDate, ApprovedDate, SubmissionNotes, AdditionalNotes FROM FormsTable WHERE State LIKE '" & cid & "%'"
rs.Open sql, conn
%>
Forms Submission for
<%Response.Write(cid)%>
<%
' Writing column headings
response.write("")%>
<%for each x in rs.Fields
response.write("")
next%>
'Writing Column values
<%do until rs.EOF%>
<%for each x in rs.Fields%>
<%next
rs.MoveNext%>
<%loop
rs.close
conn.close
%>
Select | " & x.name & " |
---|
| <%
Response.Write ("" & x.value)
%> |
_________________________________________________________________
After clicking the button "Select Forms", how can I grab the values/rows in the table where the check box is check and use an sql statement to add these values/rows into a new table?
|
|
|
|
|
My suggestion is write one counter in the loop and assign unique values for checkbox each time they are created. Something like first checkbox value will be chk1, next is chk2 etc ...
Then you can count the form elements and gets the checkbox. The same thing can be done in ASP.NET with a couple of lines.
|
|
|
|
|
I try to set text (pulled from Database) into a HyperLink and set it for an email.
Here is the code I try to use for it, but it only sets the "mailto" as string in front of it.
<asp:HyperLink ID="email" runat="server"
Text='<%# String.Format("mailto:{0}", Eval("email")) %>'></asp:HyperLink>
Using CommandArgument and couldn't set it in the LocationByArea_ItemCommand either
This is what I tryed:
Protected Sub LocationByArea_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles LocationByArea.ItemCommand
If String.Compare(e.CommandName, "ListAreas", True) = 0 Then
Dim str As String = e.CommandArgument.ToString()
LocationAreas.SelectParameters("areaID").DefaultValue = e.CommandArgument.ToString()
For Each item As DataListItem In Me.DataList1.Items
Dim email As Object = CType(item.FindControl("email"), HyperLink)
email.NavigateUrl = "mailto:" & email.Text
Next
End If
End Sub
Any suggestions how I could solve this?
|
|
|
|
|
I would try this:
<asp:HyperLink ID="email" runat="server"
Text='<%# "mailto:{0}"+ DataBinder.Eval(Container.DataItem,"email").ToString() %>'></asp:HyperLink>
Hope that helps.
Ben
|
|
|
|
|
Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please??
Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear. Thanks alot for any reply
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
|
|
|
|
|
ADY007 wrote: Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please??
Check this article http://www.w3hearts.com/articles/8/[^] and use the class.
ADY007 wrote: Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear
On the page load write
TextName.Text = "Your text"
Then add onclick attribute for textbox on the page load event. It could be something like
TextName.Attributes.Add("OnClick","clearValues();")
function clearValues()
{
document.getElementById('TextName').value = "";
}
|
|
|
|
|
thanks very much m8
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
|
|
|
|
|
Hi
For your second question you can use javascript to complete the required task.
|
|
|
|
|
hii,
i placed the listbox control in the webform. and i added some code in the ListBox1_SelectedIndexChanged but the problem that when i select the different items in the list it doesn't infoke the methode and i tried to debuge it and i found that the selectedindex is always = -1
|
|
|
|
|
Did you set autopostback to true on the listbox?
Ben
|
|
|
|
|
i tried to set autopostback to true and works for the pre defined items in the collection in design mode but if in run time if i clear the listbox items and fill it in the run time using the .Add() method it give me selectedindex=-1
|
|
|
|