|
Thanks..I debug the code the value is getting assigned to the textbox correctly..but not displaying..may be viewstate is not refreshed. Is there any solution for this?
|
|
|
|
|
Amit viewstate or any such thing has no relevance with this.
Just put another textbox and try with that as now i cant find anything wrong in it.
|
|
|
|
|
Hi,
I am using Query String in my webapp, I would like to know :
> How to Encode Query String ?
Plz Help.....
|
|
|
|
|
|
I tried EncodeUrl() function earlier, but when i Decode that i cud'nt get the querystring , Plz tell me how to decode the querystring.
|
|
|
|
|
There is a method called HttpServerUtility.UrlDecode. Maybe you give it a try...
|
|
|
|
|
Hi, query string is a variable that you can pass to another webform
like this
in your webform1
button event: response.redirect("webform2.aspx?VAR=" & textbox1.text)
if you want to get the your variable
Webform2 load event: textbox1.text = request.querystring("VAR")
Hope this one can help.
Thanks
|
|
|
|
|
Hi,
There is a browser issue between IE / Firefox
Actaully i have one javascript method like this,
if (text == "")
{
alert("Enter Text Value");
text.focus();
return false;
}
but focus is not working in Mozilla but in IE is perfect. If any one knows plz answer me..
kannak
|
|
|
|
|
Hi, try to configure the setting of your browser(moz) go to option within your browser and look for security or something enabled the javascript.
Mybe your javascript are uncheck.
check it then click OK.
|
|
|
|
|
Try to use
document.getElementById('ControlName').focus();
in place of document.all('ControlName').focus();
document.all('ControlName') works well in IE but not in Firefox.
Regards,
Kaushal Arora
|
|
|
|
|
can any one guide me how can i display a website inside a webpart??
i have a button and textbox on page user want to enter url in it and that site should display inside webpart..
i have used iframe inside webpart but first time website is displayed correctly but when i refresh page it is vanished... does any one have idea how to solve this problem?
Government Dyal Singh College Lahore.
|
|
|
|
|
Hi,
I need to implement a functionalty in vb.net 1.1 web apllication for a datagrid in which i am having a text box, a grid having 1000 rows records and a button,
when i give a value in the text box and press the button it should find the same value in the specific column of the grid and will move the scroll bar to that particular row. so that user can view the same row and it should be selected.
Need ur help on the same..........
Thanks
|
|
|
|
|
fill a DataView as dataset to the gridview.
DataView has Sort and FILTER options.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
but this will remove all the other rows and i want all the rows to be displayed and the selected row in the current view.
|
|
|
|
|
Hi, do you have source code? pls post it.
you can try
sqldataadapter da = new sqldataadapter();
datatable dt = new datatable();
da.fill(dt);
grid1.datasource = dt;
grid1.databind()
|
|
|
|
|
Dear all,
I am using VS2005, asp.net with c# and sql server2005. I am storing my picture path in database. Can anyone suggest me how can i display the picture according to the picture path in database into a gridview?
In my case,the grid view will show name and description then the last field will be the image.
Any opinion or suggestion are welcom.
regards
cocoonwls
|
|
|
|
|
Hi, you can Add in your grid a image field.
<asp:GridView ID="GridView1" runat="server">
<Columns>
<asp:ImageField>
</asp:ImageField>
</Columns>
</asp:GridView>
then this imagefield have properties to call the image from your database.
like: DataImageUrlField = dr("image").tostring();
Hope this one Can Help
Thanks
|
|
|
|
|
Hi sayrecollado,
thanks for your quick reply. But may i know where to add the DataImageUrlFiled?
regards
cocoonwls
|
|
|
|
|
Add the tag in the Gridview like this.
<asp:GridView>
<Columns>
<asp:imagefield dataimageurlfield='<%# DataBinder.Eval(Container.DataItem, "imagepath") %>'/>
</columns>
</asp:GridView>
Where imagepath is the Column of the Dataset having image path.
This will automatically display the image when you will bind the dataset to gridview.
Regards,
Kaushal Arora
|
|
|
|
|
Hi, thanks
I will try it and come back to you
regards
cocoonwls
|
|
|
|
|
Hi,
DataImageUrlField from your Grid properties
Like this:
<asp:GridView>
<Columns>
<asp:imagefield dataimageurlfield="ImgURL"/>
</columns>
</asp:GridView>
ImgURL field from your database tablename.columnfield
|
|
|
|
|
cocoonwls wrote: I am using VS2005, asp.net with c# and sql server2005. I am storing my picture path in database. Can anyone suggest me how can i display the picture according to the picture path in database into a gridview?
Yes!
Displaying Image in Gridview from Database
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi Abhijit,
That is a great article for a newbie in asp.net like me. But my image are located in C:\myFolder, so how can i display it from there? the path which i store in database is "C:\myFolder\img.gif". I saw in your article you always have the symbol "~", could you tell me why is like that?
thanks in advance,
and thanks for those reply me question~
regards
cocoonwls
|
|
|
|
|
Hi All,
Another problem i've is how do i handle events in dynamic usercontrol.
Actually i've a User Review Form in which i'm saving data on submit click event but as soon i click on submit the page goes off... as the page is also a dynamic page so what do i do. Moreover the submit even doesn't work as no data is being saved. I tried with
Response.write but nothing comes on page.
So please help me with this.
Regards
Paritosh Tripathi
B.Tech. (C.S.)
BrainTechnosys Ltd.
|
|
|
|
|
Hi, please post your code.
Thanks
|
|
|
|